Open sirexeclp opened 5 years ago
Based on https://en.wikipedia.org/wiki/ANSI_escape_code
The following escape codes are defined:
self.csi_codes = { "A": self._cursor_up , "B": self._cursor_down , "C": self._cursor_forward , "D": self._cursor_back , "E": self._cursor_next_line , "F": self._cursor_previous_line , "G": self._cursor_horizontal_absolute , "H": self._cursor_position , "J": self._erase_in_display , "K": self._erase_in_line , "S": self._scroll_up , "T": self._scroll_down , "f": self._cursor_position # Horizontal Vertical Position: same as Cursor Position , "m": self._select_graphic_rendition , "i": self._decode_aux_port , "n": self._device_status_report , "s": self._save_cursor_position , "u": self._restore_cursor_position }
They should map to the following erika hex codes (where n is an int parameter):
76H
75H
73H
74H
77H
\n
78H
I suggest using the following codes in addition
f
\r
\t
First steps are part of this PR, it seems: https://github.com/Chaostreff-Potsdam/erika3004/pull/28
Based on https://en.wikipedia.org/wiki/ANSI_escape_code
The following escape codes are defined:
They should map to the following erika hex codes (where n is an int parameter):
76H
75H
73H
74H
77H
\n
)76H
+78H
I suggest using the following codes in addition
f
since it's redundant with H, but would "break" the standard)\n
)\r
)\t
)