mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
`set_color normal` is too ambiguous and easily misinterpreted since it actually reset all colors and modes instead of resetting just the foreground color as one without prior knowledge might expect. Closes #12548
18 lines
381 B
Python
18 lines
381 B
Python
#!/usr/bin/env python3
|
|
import os
|
|
from pexpect_helper import SpawnedProc
|
|
|
|
# Regression test for #8873.
|
|
# fish doesn't crash if TERM is unset.
|
|
env = os.environ.copy()
|
|
env.pop("TERM", None)
|
|
|
|
sp = SpawnedProc(env=env)
|
|
sendline, expect_prompt = sp.sendline, sp.expect_prompt
|
|
|
|
expect_prompt()
|
|
sendline("set_color --italics")
|
|
expect_prompt()
|
|
sendline("set_color --reset")
|
|
expect_prompt()
|