summaryrefslogtreecommitdiff
path: root/xterm.go
diff options
context:
space:
mode:
Diffstat (limited to 'xterm.go')
-rw-r--r--xterm.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/xterm.go b/xterm.go
index d51cc96..b06ef33 100644
--- a/xterm.go
+++ b/xterm.go
@@ -59,17 +59,17 @@ func Terminal() string {
pid := os.Getpid()
_, comm := scanToParent(pid)
/*
- ppid, err := GetPPID(pid)
- if err != nil {
- fmt.Println("Error getting PPID:", err)
- return ""
- }
+ ppid, err := GetPPID(pid)
+ if err != nil {
+ fmt.Println("Error getting PPID:", err)
+ return ""
+ }
- comm, err := GetComm(ppid)
- if err != nil {
- fmt.Println("Error getting comm:", err)
- return ""
- }
+ comm, err := GetComm(ppid)
+ if err != nil {
+ fmt.Println("Error getting comm:", err)
+ return ""
+ }
*/
return comm