Skip to content
New issue

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

Handle more ansi and OSC sequences #13

Open
direc85 opened this issue Apr 1, 2022 · 1 comment
Open

Handle more ansi and OSC sequences #13

direc85 opened this issue Apr 1, 2022 · 1 comment
Assignees

Comments

@direc85
Copy link
Owner

direc85 commented Apr 1, 2022

Vim seems to use these:

[D] unknown:0 - unhandled ansi sequence  'h' (1000) "?"
[D] unknown:0 - unhandled ansi sequence  'm' (4, 2) ">"
[D] unknown:0 - unhandled ansi sequence  'h' (2004) "?"
[D] unknown:0 - unhandled OSC "]10;?"
[D] unknown:0 - unhandled OSC "]11;?"
[D] unknown:0 - unhandled ansi sequence  'h' (2004) "?"
[D] unknown:0 - unhandled ansi sequence  'l' (1000) "?"
[D] unknown:0 - unhandled ansi sequence  'l' (2004) "?"
[D] unknown:0 - unhandled ansi sequence  'l' (2004) "?"
[D] unknown:0 - unhandled ansi sequence  'm' (4) ">"

Sailfish OS 4.4.0.58 emulatior (EA), ToeTerm 1.9.11

@direc85 direc85 self-assigned this Apr 1, 2022
@direc85
Copy link
Owner Author

direc85 commented Apr 25, 2022

From invisible-island.net:

  • CSI ? 1000 h -- send cursor coordinates on mouse release
  • CSI ? 1000 l -- don't send cursor coordinates on mouse release
  • CSI ? 2004 h -- set bracketed paste mode
  • CSI ? 2004 l -- reset bracketed paste mode
  • CSI > 4 2 m -- send ctrl, alt etc. key combos as escape sequences (I guess?)
  • CSI > 4 m -- reset the above

From Linux kernel mailing list archive

  • ]10;? -- query default foreground color
  • ]11;? -- query default background color

It looks like vim sets and resets functionality as it checks the capabilities of the terminal. It would be still nice to implement at least some of these. The cursor support would be possible, but tricky to use on small screen - but I've read rumors about mouse support in SFOS 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant