mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-04 02:55:42 +08:00
pexpect_helper to unconditionally output to the tty
With the new test runner, pexpect_helper no longer sees a tty so wasn't outputting the buffer. Just always do it.
This commit is contained in:
parent
f373e6e923
commit
e08b71592e
@ -268,16 +268,11 @@ class SpawnedProc(object):
|
|||||||
print("{CYAN}Escaped buffer:{RESET}".format(**colors))
|
print("{CYAN}Escaped buffer:{RESET}".format(**colors))
|
||||||
print(escape(self.spawn.before))
|
print(escape(self.spawn.before))
|
||||||
print("")
|
print("")
|
||||||
if sys.stdout.isatty():
|
print("{CYAN}When written to the tty, this looks like:{RESET}".format(**colors))
|
||||||
print(
|
print("{CYAN}<-------{RESET}".format(**colors))
|
||||||
"{CYAN}When written to the tty, this looks like:{RESET}".format(
|
sys.stdout.write(self.spawn.before)
|
||||||
**colors
|
sys.stdout.flush()
|
||||||
)
|
print("{RESET}\n{CYAN}------->{RESET}".format(**colors))
|
||||||
)
|
|
||||||
print("{CYAN}<-------{RESET}".format(**colors))
|
|
||||||
sys.stdout.write(self.spawn.before)
|
|
||||||
sys.stdout.flush()
|
|
||||||
print("{RESET}\n{CYAN}------->{RESET}".format(**colors))
|
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user