Fix VPR sequence
VPR stands for Move cursor down a number of rows, and the code was moving the cursor up instead of moving it down. --- st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)dev
parent
5260a9ea22
commit
d5b80e05e8
4
st.c
4
st.c
|
@ -1562,11 +1562,11 @@ csihandle(void) {
|
||||||
tinsertblank(csiescseq.arg[0]);
|
tinsertblank(csiescseq.arg[0]);
|
||||||
break;
|
break;
|
||||||
case 'A': /* CUU -- Cursor <n> Up */
|
case 'A': /* CUU -- Cursor <n> Up */
|
||||||
case 'e':
|
|
||||||
DEFAULT(csiescseq.arg[0], 1);
|
DEFAULT(csiescseq.arg[0], 1);
|
||||||
tmoveto(term.c.x, term.c.y-csiescseq.arg[0]);
|
tmoveto(term.c.x, term.c.y-csiescseq.arg[0]);
|
||||||
break;
|
break;
|
||||||
case 'B': /* CUD -- Cursor <n> Down */
|
case 'B': /* CUD -- Cursor <n> Down */
|
||||||
|
case 'e': /* VPR --Cursor <n> Down */
|
||||||
DEFAULT(csiescseq.arg[0], 1);
|
DEFAULT(csiescseq.arg[0], 1);
|
||||||
tmoveto(term.c.x, term.c.y+csiescseq.arg[0]);
|
tmoveto(term.c.x, term.c.y+csiescseq.arg[0]);
|
||||||
break;
|
break;
|
||||||
|
@ -1575,7 +1575,7 @@ csihandle(void) {
|
||||||
ttywrite(VT102ID, sizeof(VT102ID) - 1);
|
ttywrite(VT102ID, sizeof(VT102ID) - 1);
|
||||||
break;
|
break;
|
||||||
case 'C': /* CUF -- Cursor <n> Forward */
|
case 'C': /* CUF -- Cursor <n> Forward */
|
||||||
case 'a':
|
case 'a': /* HPR -- Cursor <n> Forward */
|
||||||
DEFAULT(csiescseq.arg[0], 1);
|
DEFAULT(csiescseq.arg[0], 1);
|
||||||
tmoveto(term.c.x+csiescseq.arg[0], term.c.y);
|
tmoveto(term.c.x+csiescseq.arg[0], term.c.y);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue