summaryrefslogtreecommitdiff
path: root/xterm.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-23 22:07:57 -0600
committerJeff Carr <[email protected]>2024-02-23 22:07:57 -0600
commitdf4554955832599714f6cf77c40055ebaa85aac1 (patch)
tree8e99fd705740f1bf4a3beeb1e78eb2a99c4251ca /xterm.go
parentc3c3901e9a713bbc6ab6c82a0f19f1f798461179 (diff)
goimport auto syntax changev0.21.1
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