diff options
author | Ron Yorston <rmy@pobox.com> | 2021-02-07 13:31:27 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-02-07 13:31:27 +0000 |
commit | 96cc886097812dfeb3f1096492ff0c601e38b17f (patch) | |
tree | 171ebb7f9081c8a0f5fb5c50bd78be1da95f9b90 /init | |
parent | 70ca88d03a7aa92720744832fd9d131a183e00be (diff) | |
download | busybox-w32-96cc886097812dfeb3f1096492ff0c601e38b17f.tar.gz busybox-w32-96cc886097812dfeb3f1096492ff0c601e38b17f.tar.bz2 busybox-w32-96cc886097812dfeb3f1096492ff0c601e38b17f.zip |
winansi: code shrink
Refactor handling of ESC[38...m and ESC[48...m:
- At lower levels deal only with the standard console foreground
colours. This makes handling of foreground and background colours
more similar.
- Many '|=' assignments (to combine attribute values) have been replaced
by simple assinments.
- Use a common routine to convert RGB to console colours; colours
in the 8-bit 6x6x6 cube are scaled up to make use of this.
- Detect invalid escape sequences to avoid setting incorrect colour
values.
Saves 296 bytes.
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions