Right now, pyte will reverse all displayed characters when the DECSCNM mode is set. However, this leaves the empty parts of the screen non-reversed because the default value of the buffer defaultdict is a non-reversed Char.
This PR makes Screen.default_char a property that depends on the mode DECSNM being set, and in addition replaces the default value on the lines that have been already been displayed.
Right now, pyte will reverse all displayed characters when the DECSCNM mode is set. However, this leaves the empty parts of the screen non-reversed because the default value of the buffer
defaultdict
is a non-reversed Char.This PR makes
Screen.default_char
a property that depends on the mode DECSNM being set, and in addition replaces the default value on the lines that have been already been displayed.This behaviour can be tested with
vttest
menu 2.