compiler, when it watch mode, resets the screen colors #29829
Labels
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Milestone
TypeScript Version: 3.4.0-dev.20190208
Search Terms: terminal, watcher
Issue
I'm using linux, and I have a custom terminal theme (I'm using powerlevel-9k). To make it look more pleasing, I tuned the terminal colors, but I did that through tput commands in my .zshrc:
I am loosing these customizations if I run typescript's compiler tsc in watch mode (tsc -w) and exit it through ctrl-c. When returning to the shell after that, the colors are the original ones, as if the tput commands were never executed. So it seems
tsc -w
is sending a too drastic reset command to the terminal, which does not only erasetsc
's output but can also discard some user's customizations to their terminal.Notice that the issue occurs with the
xterm
andkitty
terminals, but NOT withgnome-terminal
, which seems to be agnome-terminal
orvte
bug (see kitty bug and vte bug).Expected behavior:
Running and exiting
tsc -w
shouldn't discard my color customizations to my terminal.Actual behavior:
Running and exiting
tsc -w
discards my color customizations to my terminal.Note that when searching if that bug was already reported, I stumbled upon the
--preserveWatchOutput
flag and I can confirm that when this flag is enabled, the issue is NOT present.The text was updated successfully, but these errors were encountered: