Skip to content

Commit dc6daa9

Browse files
committed
set the TERM env variable to vt100 in the agent process
1 parent 6a08e28 commit dc6daa9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/termexec/termexec.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ func StartProcess(ctx context.Context, args StartProcessConfig) (*Process, error
3434
return nil, err
3535
}
3636
execCmd := exec.Command(args.Program, args.Args...)
37+
// vt100 is the terminal type that the vt10x library emulates.
38+
// Setting this signals to the process that it should only use compatible
39+
// escape sequences.
40+
execCmd.Env = append(os.Environ(), "TERM=vt100")
3741
if err := xp.StartProcessInTerminal(execCmd); err != nil {
3842
return nil, err
3943
}

0 commit comments

Comments
 (0)