aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2012-11-08 17:21:24 +0100
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2012-11-08 17:21:24 +0100
commitd5b80e05e8df29b989c072b6529745576056d0bc (patch)
treeab8594fd1d4facebef3276e1ca0d110a36341567 /st.c
parent5260a9ea2249b9159c188a6e27a39a38d131e411 (diff)
downloadst-d5b80e05e8df29b989c072b6529745576056d0bc.tar.gz
st-d5b80e05e8df29b989c072b6529745576056d0bc.zip
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(-)
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index 657fba7..f67a345 100644
--- a/st.c
+++ b/st.c
@@ -1562,11 +1562,11 @@ csihandle(void) {
1562 tinsertblank(csiescseq.arg[0]); 1562 tinsertblank(csiescseq.arg[0]);
1563 break; 1563 break;
1564 case 'A': /* CUU -- Cursor <n> Up */ 1564 case 'A': /* CUU -- Cursor <n> Up */
1565 case 'e':
1566 DEFAULT(csiescseq.arg[0], 1); 1565 DEFAULT(csiescseq.arg[0], 1);
1567 tmoveto(term.c.x, term.c.y-csiescseq.arg[0]); 1566 tmoveto(term.c.x, term.c.y-csiescseq.arg[0]);
1568 break; 1567 break;
1569 case 'B': /* CUD -- Cursor <n> Down */ 1568 case 'B': /* CUD -- Cursor <n> Down */
1569 case 'e': /* VPR --Cursor <n> Down */
1570 DEFAULT(csiescseq.arg[0], 1); 1570 DEFAULT(csiescseq.arg[0], 1);
1571 tmoveto(term.c.x, term.c.y+csiescseq.arg[0]); 1571 tmoveto(term.c.x, term.c.y+csiescseq.arg[0]);
1572 break; 1572 break;
@@ -1575,7 +1575,7 @@ csihandle(void) {
1575 ttywrite(VT102ID, sizeof(VT102ID) - 1); 1575 ttywrite(VT102ID, sizeof(VT102ID) - 1);
1576 break; 1576 break;
1577 case 'C': /* CUF -- Cursor <n> Forward */ 1577 case 'C': /* CUF -- Cursor <n> Forward */
1578 case 'a': 1578 case 'a': /* HPR -- Cursor <n> Forward */
1579 DEFAULT(csiescseq.arg[0], 1); 1579 DEFAULT(csiescseq.arg[0], 1);
1580 tmoveto(term.c.x+csiescseq.arg[0], term.c.y); 1580 tmoveto(term.c.x+csiescseq.arg[0], term.c.y);
1581 break; 1581 break;