diff options
author | Ron Yorston <rmy@pobox.com> | 2021-02-17 09:26:33 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-02-17 09:26:33 +0000 |
commit | d2804fc6020aad3f9d0ed914d8c2aefa37ffa6d8 (patch) | |
tree | b83b9f61e99828101664267f339a30f377df2a7c /init | |
parent | 1e9328224c22baafc4c8f27082eb5e9a83b0b092 (diff) | |
download | busybox-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 'init')
0 files changed, 0 insertions, 0 deletions