diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2020-04-13 08:11:39 +0300 |
---|---|---|
committer | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2020-04-23 17:02:38 +0300 |
commit | 67b7a8adaff99c7e55b7448fe9eca071efeeec49 (patch) | |
tree | d8de0fb1cde32b806c22bd635b3d6ef79997b151 /version.sh | |
parent | da314d3db2ccd40d734e03aa45aa84c2fafc0530 (diff) | |
download | mpv-67b7a8adaff99c7e55b7448fe9eca071efeeec49.tar.bz2 mpv-67b7a8adaff99c7e55b7448fe9eca071efeeec49.tar.xz |
win32: improve console SGR escape sequence emulation
Previously an SGR sequence was emulated correctly only if:
- It had exactly 1 or 2 numeric values (not 0).
- Only reset, bold, and foreground colors were supported.
- 256/true colors were not skipped correctly with their sub-values.
Now it supports the same as before, plus:
- 0-16 (inclusive) numeric values, e.g. \e[m now resets correctly.
- Supports also codes for background color, reverse, underline* .
- Supports also codes for default intensity/fg/bg/reverse/underline.
- 256/true colors are recognized and skipped gracefully.
* Reverse/underline seem to work only on windows 10.
Diffstat (limited to 'version.sh')
0 files changed, 0 insertions, 0 deletions