aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-02-17 09:26:33 +0000
committerRon Yorston <rmy@pobox.com>2021-02-17 09:26:33 +0000
commitd2804fc6020aad3f9d0ed914d8c2aefa37ffa6d8 (patch)
treeb83b9f61e99828101664267f339a30f377df2a7c /arch
parent1e9328224c22baafc4c8f27082eb5e9a83b0b092 (diff)
downloadbusybox-w32-d2804fc6020aad3f9d0ed914d8c2aefa37ffa6d8.tar.gz
busybox-w32-d2804fc6020aad3f9d0ed914d8c2aefa37ffa6d8.tar.bz2
busybox-w32-d2804fc6020aad3f9d0ed914d8c2aefa37ffa6d8.zip
winansi: code shrink and improvements
Commit b0b7ab792 (winansi: code shrink) noted that combining reverse vidoe escape sequences (e.g. ESC[7;27m) didn't work properly. Make further changes to improve the situation: - revert to keeping the current attributes in a static variable; - when reverse video is enabled switch the intensity as well as the colour components; - move the code from set_console_attr() into its only caller, process_escape(); - use 0xffff instead of 0 as a flag to indicate the attributes haven't been initialised. Saves 44 bytes and seems to work better.
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions