summaryrefslogtreecommitdiff
path: root/xterm.go
diff options
context:
space:
mode:
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)
}
+*/