diff options
author | bptato <nincsnevem662@gmail.com> | 2025-02-20 18:15:54 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-02-20 18:15:54 +0100 |
commit | 84b4b3090607bdc789fd72b799a249683a6f4905 (patch) | |
tree | 2c36727c7e6d760395e6bdbbf52dc79de347e6f4 /src/local | |
parent | 650502ebfac0cad0217249d99cb9433813079072 (diff) | |
download | chawan-84b4b3090607bdc789fd72b799a249683a6f4905.tar.gz |
term: use so, se for reverse video
Diffstat (limited to 'src/local')
-rw-r--r-- | src/local/term.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/local/term.nim b/src/local/term.nim index f428d626..3aff214d 100644 --- a/src/local/term.nim +++ b/src/local/term.nim @@ -58,7 +58,6 @@ type so # start standout mode md # start bold mode us # start underline mode - mr # start reverse mode mb # start blink mode ZH # start italic mode se # end standout mode @@ -320,7 +319,7 @@ proc startFormat(term: Terminal; flag: FormatFlag): string = case flag of ffBold: return term.cap(md) of ffUnderline: return term.cap(us) - of ffReverse: return term.cap(mr) + of ffReverse: return term.cap(so) of ffBlink: return term.cap(mb) of ffItalic: return term.cap(ZH) else: discard @@ -332,6 +331,7 @@ proc endFormat(term: Terminal; flag: FormatFlag): string = case flag of ffUnderline: return term.cap(ue) of ffItalic: return term.cap(ZR) + of ffReverse: return term.cap(se) else: discard return CSI & $FormatCodes[flag].e & 'm' @@ -1386,7 +1386,7 @@ proc detectTermAttributes(term: Terminal; windowOnly: bool): TermStartResult = term.formatMode.incl(ffUnderline) if term.hascap(md): term.formatMode.incl(ffBold) - if term.hascap(mr): + if term.hascap(so): term.formatMode.incl(ffReverse) if term.hascap(mb): term.formatMode.incl(ffBlink) |