Skip to content
Snippets Groups Projects
Commit 731cda1a authored by deuce's avatar deuce
Browse files

Add support for CSI pn G (Cursor Position Absolute) for setting the current

column and leaving the row unchanged.
parent f93d7dab
No related branches found
No related tags found
No related merge requests found
...@@ -731,6 +731,14 @@ void do_ansi(char *retbuf, size_t retsize, int *speed) ...@@ -731,6 +731,14 @@ void do_ansi(char *retbuf, size_t retsize, int *speed)
i=1; i=1;
gotoxy(1,i); gotoxy(1,i);
break; break;
case 'G':
col=strtoul(cterm.escbuf+1,NULL,10);
if(col<1)
col=1;
if(col>cterm.width)
col=cterm.width;
gotoxy(col,wherey());
break;
case 'f': case 'f':
case 'H': case 'H':
row=1; row=1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment