comparison mercurial/server.py @ 42088:770e87999701

chistedit: use default curses colours Terminals will define default colours (for example, white text on black background), but curses doesn't obey those default colours unless told to do so. Calling `curses.use_default_colors` makes curses obey the default terminal colours. One of the most obvious effects is that this allows transparency on terminals that support it. This also brings chistedit closer in appearance to crecord, which also uses default colours. The call may error out if the terminal doesn't support colors, but as far as I can tell, everything still works. If we need a more careful handling of lack of colours, blame me for not doing it now.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 05 Apr 2019 14:54:45 -0400
parents 82210d88d814
children 2372284d9457
comparison
equal deleted inserted replaced
42087:2e2699af5649 42088:770e87999701