diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-02 23:59:15 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-02 23:59:15 +0900 |
| commit | c6920e6ab711d3b66a810c281c96fc2888817b1b (patch) | |
| tree | fee8b5a364a8db3b0efba4e65782a06f53ca3dd9 /cmd | |
| parent | 59b25d45feb35325aebb35c45046d1c0a9fcd3de (diff) | |
cmd/mbf: pick up $TERM
This improves behaviour of some programs.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/mbf/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index dea07ede..c5a8868b 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -618,6 +618,9 @@ func main() { z.Hostname = "localhost" z.Uid, z.Gid = (1<<10)-1, (1<<10)-1 z.Stdin, z.Stdout, z.Stderr = os.Stdin, os.Stdout, os.Stderr + if s, ok := os.LookupEnv("TERM"); ok { + z.Env = append(z.Env, "TERM="+s) + } var tempdir *check.Absolute if s, err := filepath.Abs(os.TempDir()); err != nil { |
