Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
custom:ctrl-a_codes [2018/10/10 21:29] – Redefined Ctrl-AZ (now, send Ctrl-Z char) and re-arranged fixed up some other stuff digital man | custom:ctrl-a_codes [2019/08/20 02:00] – [Use] Mention \x01 syntax for Ctrl-A digital man |
---|
It can sometimes require a special purpose text editor to actually enter a Ctrl-A character into a text file. Some editors may require a special key sequence or use of a menu option to enter a Ctrl-A character into a file. The graphical representation of the character may be a happy face or any other non-alphanumeric symbol that the editor chooses to render to represent that character code. There are [[atcodes|@-Codes]] for the equivalent of many of the Ctrl-A codes, so may consider using them if they are more convenient for your text editor of choice. | It can sometimes require a special purpose text editor to actually enter a Ctrl-A character into a text file. Some editors may require a special key sequence or use of a menu option to enter a Ctrl-A character into a file. The graphical representation of the character may be a happy face or any other non-alphanumeric symbol that the editor chooses to render to represent that character code. There are [[atcodes|@-Codes]] for the equivalent of many of the Ctrl-A codes, so may consider using them if they are more convenient for your text editor of choice. |
| |
In the ''[[custom:text.dat]]'' and possibly some other files (e.g. [[JavaScript]] and [[:util:Baja]] source files), Ctrl-A characters may be included by using the escape sequence ''\1'' rather than having to insert an actual control character into the file. | In the ''[[custom:text.dat]]'' and possibly some other files (e.g. [[JavaScript]] and [[:util:Baja]] source files), Ctrl-A characters may be included by using the escape sequence ''\1'' (or ''\x01'') rather than having to insert an actual control character into the file. |
| |
The [[util:ANS2ASC]] utility may be used to convert files encoded with ANSI X3.64 terminal escape sequences (e.g. ''*.ans'') into Ctrl-A encoded output and the [[util:ASC2ANS]] utility can be used to perform the opposite operation (useful for editing Ctrl-A encoded files (e.g. ''*.msg'' or ''*.asc'') with an //[[resource:ansi editors|ANSI-BBS screen editor]]//). | The [[util:ANS2ASC]] utility may be used to convert files encoded with ANSI X3.64 terminal escape sequences (e.g. ''*.ans'') into Ctrl-A encoded output and the [[util:ASC2ANS]] utility can be used to perform the opposite operation (useful for editing Ctrl-A encoded files (e.g. ''*.msg'' or ''*.asc'') with an //[[resource:ansi editors|ANSI-BBS screen editor]]//). |
|LF | '']'' |Send a line feed character (Ctrl-J) - Cursor Down| | |LF | '']'' |Send a line feed character (Ctrl-J) - Cursor Down| |
|Cond-Newline | ''/'' |Send a new-line sequence (CRLF) **only** when the cursor is not already in the first column (new in v3.17) | | |Cond-Newline | ''/'' |Send a new-line sequence (CRLF) **only** when the cursor is not already in the first column (new in v3.17) | |
| |Cond-Linecont | ''\'' |Send a line-continuation sequence (''[[custom:text.dat]]'' //LongLineContinuationPrefix// line) if terminal < 80 columns | |
|Cond-Blankline | ''?'' |Send a blank-line sequence **only** when the previously printed line was not blank (new in v3.17) | | |Cond-Blankline | ''?'' |Send a blank-line sequence **only** when the previously printed line was not blank (new in v3.17) | |
|Push Attr | ''+'' |Save current attributes into (server-side) attribute LIFO stack| | |Push Attr | ''+'' |Save current attributes into (server-side) attribute LIFO stack| |
|Pop Attr | ''-'' |Restore attributes from stack (or Optimized Normal, if no attributes saved/pushed)| | |Pop Attr | ''-'' |Restore attributes from stack (or Optimized Normal, if no attributes saved/pushed)| |
|Ctrl-A | ''A'' |Send an actual Ctrl-A (ASCII 1) character| | |SOH | ''A'' |Send an actual Ctrl-A (ASCII 1) character| |
|Ctrl-Z | ''Z'' |Send an actual Ctrl-Z (ASCII 26) character (used to be: premature end-of-file) | | |SUB | ''z'' |Send an actual Ctrl-Z (ASCII 26) character (note: lowercase 'z' only v3.17c and later) | |
| |EOF | ''Z'' |Premature end-of-file (note: uppercase 'Z' only in v3.17c and later) | |
|Cursor Right | 128-255 |Move cursor to the right (code-127) characters| | |Cursor Right | 128-255 |Move cursor to the right (code-127) characters| |
| |
* [[:ref:ANSI]] | * [[:ref:ANSI]] |
* [[:custom:|Customization]] | * [[:custom:|Customization]] |
| * [[:resource:ANSI Editors]] |
| |
{{tag>ansi}} | {{tag>ansi}} |
| |