tfixed ED. - st - [fork] customized build of st, the simple terminal | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit b1e6099220f7e10d88adb8d960db27f63f1d8ccb | |
parent edfbc9b432bc779ec9c41f7523be52b99edeec85 | |
Author: Aurélien Aptel <[email protected]> | |
Date: Sun, 31 Oct 2010 20:29:22 +0100 | |
fixed ED. | |
Diffstat: | |
M st.c | 8 ++++++-- | |
1 file changed, 6 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -883,10 +883,14 @@ csihandle(void) { | |
case 'J': /* ED -- Clear screen */ | |
switch(escseq.arg[0]) { | |
case 0: /* below */ | |
- tclearregion(term.c.x, term.c.y, term.col-1, term.row-… | |
+ tclearregion(term.c.x, term.c.y, term.col-1, term.c.y); | |
+ if(term.c.y < term.row-1) | |
+ tclearregion(0, term.c.y+1, term.col-1, term.r… | |
break; | |
case 1: /* above */ | |
- tclearregion(0, 0, term.c.x, term.c.y); | |
+ if(term.c.y > 1) | |
+ tclearregion(0, 0, term.col-1, term.c.y-1); | |
+ tclearregion(0, term.c.y, term.c.x, term.c.y); | |
break; | |
case 2: /* all */ | |
tclearregion(0, 0, term.col-1, term.row-1); |