diff options
-rw-r--r-- | src/ansi.c | 1 | ||||
-rw-r--r-- | src/ansi.h | 1 | ||||
-rw-r--r-- | src/display.c | 2 | ||||
-rw-r--r-- | src/process.c | 5 |
4 files changed, 8 insertions, 1 deletions
@@ -66,6 +66,7 @@ struct mline mline_null; struct mchar mchar_null; struct mchar mchar_blank = { ' ', 0, 0, 0, 0, 0 }; struct mchar mchar_so = { ' ', A_RV, 0, 0, 0, 0}; +struct mchar mchar_vsplit = { ' ', A_RV, 0, 0, 0, 0}; uint64_t renditions[NUM_RENDS] = { 65529 /* =ub */ , 65531 /* =b */ , 65533 /* =u */ }; @@ -183,6 +183,7 @@ extern struct mline mline_null; extern struct mline mline_old; extern struct mchar mchar_so; +extern struct mchar mchar_vsplit; extern struct mchar mchar_blank; extern struct mchar mchar_null; diff --git a/src/display.c b/src/display.c index 0ec6c33..d5b5883 100644 --- a/src/display.c +++ b/src/display.c @@ -1790,7 +1790,7 @@ void RefreshLine(int y, int from, int to, int isblank) } if (from == cv->c_xe + 1 && (y >= cv->c_ys - captiontop) && (y <= cv->c_ye + !captiontop)) { GotoPos(from, y); - SetRendition(&mchar_so); + SetRendition(&mchar_vsplit); PUTCHARLP(' '); from++; break; diff --git a/src/process.c b/src/process.c index c3dcdfc..dd7c88f 100644 --- a/src/process.c +++ b/src/process.c @@ -4093,6 +4093,11 @@ static void DoCommandRendition(struct action *act) i = REND_MONITOR; } else if (strcmp(args[0], "silence") == 0) { i = REND_SILENCE; + } else if (strcmp(args[0], "vsplit") == 0) { + i = ParseAttrColor(args[1], 1); + if (i != 0) + ApplyAttrColor(i, &mchar_vsplit); + return; } else if (strcmp(args[0], "so") != 0) { OutputMsg(0, "Invalid option '%s' for rendition", args[0]); return; |