Skip to content
Snippets Groups Projects
Commit d8f67a00 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Split up the subtypes of ECMA-35 escape sequences

These all have slightly different semantics (that don't matter yet),
so split the up appropriately.
parent 769c5b64
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ received: ...@@ -37,7 +37,7 @@ received:
Any normal printable character when the cursor is at the right Any normal printable character when the cursor is at the right
margin (of the screen or scrollable area). margin (of the screen or scrollable area).
== Control characters == C0 Control characters
=== `0x00` NUL (`NUL`) === `0x00` NUL (`NUL`)
In doorway mode, indicates that the next character is In doorway mode, indicates that the next character is
...@@ -86,11 +86,25 @@ not valid, the `ESC` is ignored. ...@@ -86,11 +86,25 @@ not valid, the `ESC` is ignored.
SOURCE: <<ECMA-48>> SOURCE: <<ECMA-48>>
== Control Codes == nF Escape Sequences
Control codes are in the following format: + nF Escape Sequences are in the following format: +
`ESC {'0'` to `'~'}` `ESC {SPACE to '/}{'0'` to `'~'}` +
Legal combinations which are not handled are silently dropped. There may be multiple characters from the {SPACE to '/'} before the
terminating {'@' to '~'} character.
At present, CTerm does not support any nF escape sequences.
SOURCE: <<ECMA-35>>
== Private control functions
Private control functions are in the following format: +
`ESC {'0'` to `'?'}` +
SOURCE: <<ECMA-35>>
Legal combinations not handled are silently dropped.
=== `ESC 7` Save Cursor (`DECSC`) === `ESC 7` Save Cursor (`DECSC`)
Saves the current cursor position same as `CSI s` Saves the current cursor position same as `CSI s`
...@@ -102,6 +116,12 @@ Restores the current cursor position same as `CSI u` ...@@ -102,6 +116,12 @@ Restores the current cursor position same as `CSI u`
SOURCE: <<VT102>> SOURCE: <<VT102>>
== Control functions in the C1 set
Control codes are in the following format: +
`ESC {'@'` to `'_'}`
Legal combinations which are not handled are silently dropped.
=== `ESC E` Next Line (`NEL`) === `ESC E` Next Line (`NEL`)
Moves to the line home position of the next line. Moves to the line home position of the next line.
(Same as `CR` `LF`) (Same as `CR` `LF`)
...@@ -533,22 +553,20 @@ transfer. ...@@ -533,22 +553,20 @@ transfer.
`CSI = 1 ; pR - n` `CSI = 1 ; pR - n`
pR is 0 if JXL support is not available, and 1 if it is. pR is 0 if JXL support is not available, and 1 if it is.
=== `ESC c` Reset to Initial State (`RIS`) == Standardized single control functions
Resets all the terminal settings, clears the screen, and homes
the cursor.
SOURCE: <<ECMA-48>> Standardized single control functions are in the following format: +
`ESC {'\`'` to `'~'}` +
== nF Escape Sequences SOURCE: <<ECMA-35>>
nF Escape Sequences are in the following format: + Legal combinations not handled are silently dropped.
`ESC {SPACE to '/}{'0'` to `'~'}` +
There may be multiple characters from the {SPACE to '/'} before the
terminating {'@' to '~'} character.
At present, CTerm does not support any nF escape sequences. === `ESC c` Reset to Initial State (`RIS`)
Resets all the terminal settings, clears the screen, and homes
the cursor.
SOURCE: <<ECMA-35>> SOURCE: <<ECMA-48>>
== Control Sequences: == Control Sequences:
......
...@@ -7,6 +7,7 @@ Don't disable status line for Atari ST modes ...@@ -7,6 +7,7 @@ Don't disable status line for Atari ST modes
Fix broken vertical (U+00A6) vs. vertical line (U+007C) Fix broken vertical (U+00A6) vs. vertical line (U+007C)
Add custom palette support to list file Add custom palette support to list file
Pass control key combinations in BBC Micro mode Pass control key combinations in BBC Micro mode
Add support for DECSC/DECRC control codes
Version 1.6 Version 1.6
------------ ------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment