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

Add extended support for ANSI escape codes #134

Closed
bugy opened this issue Oct 1, 2018 · 2 comments
Closed

Add extended support for ANSI escape codes #134

bugy opened this issue Oct 1, 2018 · 2 comments

Comments

@bugy
Copy link
Owner

bugy commented Oct 1, 2018

The following codes should be added:

  • clear screen
  • Cursor Position
  • cursor up/down/left/right
  • erase line
  • show/hide cursor (just ignore the sequences)
@bugy bugy added the feature label Oct 1, 2018
bugy added a commit that referenced this issue Mar 20, 2019
@bugy bugy added this to the 1.14 milestone Mar 20, 2019
@bugy
Copy link
Owner Author

bugy commented Mar 20, 2019

Added support for moving cursor into 4 directions: up, down, left, right (with the corresponding ANSI codes ABCD).
More is coming...

@bugy
Copy link
Owner Author

bugy commented Apr 8, 2019

Done. Now Script server supports most popular and used escape sequences, except sequences for manipulating terminal (size, resolution, etc.). The full list of supported escape sequences:

  • Esc[Value;...;Valuem - Set Graphics Mode
  • Esc[ValueA - Move cursor Up
  • Esc[ValueB - Move cursor Down
  • Esc[ValueC - Move cursor Forward
  • Esc[ValueD - Move cursor Backward
  • Esc[Line;ColumnH / Esc[Line;Columnf - move cursor to Line;Column position
  • Esc[s - Save cursor position
  • Esc[u - Restore cursor position
  • Esc[ValueK - Clear line (0 - clear forward, 1 - clear backward, 2 - clear full line)
  • Esc[ValueJ - Clear screen (0 - clear to the bottom, 1 - clear to the top, 2/3 - clear full screen)

More details can be found here:
http://ascii-table.com/ansi-escape-sequences.php

@bugy bugy added the resolved label Apr 8, 2019
@bugy bugy closed this as completed May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant