forge config has user xterm settings

This commit is contained in:
Jeff Carr 2025-01-16 10:25:29 -06:00
parent 1534b9fbbc
commit 098c7d3771
1 changed files with 5 additions and 4 deletions

View File

@ -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)
}
*/