aboutsummaryrefslogtreecommitdiffhomepage
path: root/site
diff options
context:
space:
mode:
authorGravatar aehlig <aehlig@google.com>2017-04-25 17:49:20 +0200
committerGravatar Vladimir Moskva <vladmos@google.com>2017-04-25 20:38:59 +0200
commit5d44a114cba70ff12c3b549c5c90c2ca4dab618c (patch)
treef93d2a3c56b8e6295f85471be2dc468d9da8c553 /site
parent99ea6b466b9562bb720de1ab264687295f7da0e4 (diff)
When using experimental UI, only to a reset terminal if curses were used
When unregistering an event handler, that uses colors, we need to be sure to set the terminal in a normal state after unregistering that event handler. The ExperimentalEventHandler does use curses, however only if options allow to do so (otherwise, curses will be filtered out by the underlying terminal). So, we cannot conclude the use of color from the fact that the ExperimentalEventHandler was in use. Hence when releasing it, only reset the the terminal, if we did use color and avoid the unnecessary ^[[0m; otherwise. RELNOTES: None. PiperOrigin-RevId: 154177220
Diffstat (limited to 'site')
0 files changed, 0 insertions, 0 deletions