We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following prints ^[[1;1R on xterm, the linux console, libvte-based terminals:
^[[1;1R
clear echo '\033[6n' read | cat -v
But it prints ^[[0;0R on kmscon.
^[[0;0R
The text was updated successfully, but these errors were encountered:
This patch to libtsm should fix this issue:
diff --git a/src/tsm/tsm-vte.c b/src/tsm/tsm-vte.c index ec8a936..d2d4776 100644 --- a/src/tsm/tsm-vte.c +++ b/src/tsm/tsm-vte.c @@ -1513,7 +1513,8 @@ static void csi_dsr(struct tsm_vte *vte) } else if (vte->csi_argv[0] == 6) { x = tsm_screen_get_cursor_x(vte->con); y = tsm_screen_get_cursor_y(vte->con); - len = snprintf(buf, sizeof(buf), "\e[%u;%uR", x, y); + /* CSI DSR uses 1-based coordinates */ + len = snprintf(buf, sizeof(buf), "\e[%u;%uR", x+1, y+1); if (len >= sizeof(buf)) vte_write(vte, "\e[0;0R", 6); else
Sorry, something went wrong.
No branches or pull requests
The following prints
^[[1;1R
on xterm, the linux console, libvte-based terminals:But it prints
^[[0;0R
on kmscon.The text was updated successfully, but these errors were encountered: