dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit f1caa1eb2197610b1f3233493c525969a5bca246
parent 1861093a6f4fceda2de90804ce06713aba6a7351
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 25 Oct 2014 18:39:00 +0200

Support more attributes

Diffstat:
dvtm.info | 2++
vt.c | 15++++++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/dvtm.info b/dvtm.info @@ -104,6 +104,7 @@ dvtm|dynamic virtual terminal manager, rc=\E8, rev=\E[7m, ri=\EM, + ritm=\E[23m, rmacs=^O, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, @@ -118,6 +119,7 @@ dvtm|dynamic virtual terminal manager, setaf=\E[3%p1%dm, sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, sgr0=\E[m\017, + sitm=\E[3m, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h, diff --git a/vt.c b/vt.c @@ -398,6 +398,14 @@ static void interpret_csi_sgr(Vt *t, int param[], int pcount) case 1: b->curattrs |= A_BOLD; break; + case 2: + b->curattrs |= A_DIM; + break; +#ifdef A_ITALIC + case 3: + b->curattrs |= A_ITALIC; + break; +#endif case 4: b->curattrs |= A_UNDERLINE; break; @@ -411,8 +419,13 @@ static void interpret_csi_sgr(Vt *t, int param[], int pcount) b->curattrs |= A_INVIS; break; case 22: - b->curattrs &= ~A_BOLD; + b->curattrs &= ~(A_BOLD | A_DIM); + break; +#ifdef A_ITALIC + case 23: + b->curattrs &= ~A_ITALIC; break; +#endif case 24: b->curattrs &= ~A_UNDERLINE; break;