summaryrefslogtreecommitdiff
path: root/xterm.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-16 10:25:29 -0600
committerJeff Carr <[email protected]>2025-01-16 10:25:29 -0600
commit098c7d3771d13b39a19cb2f21e7d64cd69acb7e4 (patch)
treef98a4ef97a41ef42f84d56b02b98608a88460c47 /xterm.go
parent1534b9fbbcd883b5820d53c86e4923185574cfe0 (diff)
forge config has user xterm settingsv0.22.22
Diffstat (limited to 'xterm.go')
-rw-r--r--xterm.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/xterm.go b/xterm.go
index a867625..27f6514 100644
--- a/xterm.go
+++ b/xterm.go
@@ -3,7 +3,6 @@ package shell
import (
"fmt"
"os"
- "strings"
"go.wit.com/log"
)
@@ -127,16 +126,17 @@ func XtermCmd(path string, cmd []string) {
// runs an xterm
// waits until xterm exits
func XtermCmdWait(path string, cmd []string) {
- var argsXterm = getXtermCmd(cmd)
+ // var argsXterm = getXtermCmd(cmd)
- log.Info("XtermCmd() path =", path, "cmd =", argsXterm)
+ log.Info("XtermCmd() path =", path, "cmd =", cmd)
// keeps git diff from exiting on small diffs
os.Setenv("LESS", "-+F -+X -R")
- PathRunLog(path, argsXterm, INFO)
+ PathRunLog(path, cmd, INFO)
}
+/*
// spawns an xterm with something you can run at a command line
// then executes bash
func XtermCmdBash(path string, cmd []string) {
@@ -149,3 +149,4 @@ func XtermCmdBash(path string, cmd []string) {
log.Info("XtermCmd() path =", path, "cmd =", tmp)
go PathRunLog(path, tmp, INFO)
}
+*/