Original Usenet thread from rec.arts.ascii, started 5 Jul 1994.
Request: CTRL codes
rec.arts.ascii
· 5 messages · 5 Jul 1994 - 19 Jul 1994
I have been looking (to no avail) for a list of all the CTRL-<key> codes that exist for a PC/Terminal setup. I know of some, and what they do, but there is no table that I can find(ex CTRL-H is backspace/delete). If anyone has some sort of list for these CTRL-<key> keys, I would greatly appreciate it if they could e-mail it to me. These codes would come in handy for a program that I am writing in the VMS language. Thanks in advance. -Carl E-Mail: car...@acsu.buffalo.edu
In article <2vae5k$op...@gagme.wwa.com>, SHADOW <car...@acsu.buffalo.edu> wrote: > > I have been looking (to no avail) for a list of all the CTRL-<key> codes >that exist for a PC/Terminal setup. I know of some, and what they do, but there >is no table that I can find(ex CTRL-H is backspace/delete). If anyone has >some sort of list for these CTRL-<key> keys, I would greatly appreciate it >if they could e-mail it to me. These codes would come in handy for a >program that I am writing in the VMS language. Thanks in advance. It all depends... Some machines use Ctrl-H as Return-to-beginning-of-line character. Anyway, most printer manuals will have a list of all the ASCII codes and what they do, so take a look. Here's some that I remember off the top of my head... Ctrl-? Backspace on some System V UNIX boxes. Ctrl-M Carriage return. Ctrl-C Break. Ctrl-G Bell. Ctrl-B Cursor left. Ctrl-A Cursor right. Ctrl-C Cursor up. } These two could be the other way round... Ctrl-D Cursor down. } EOF >-Carl > E-Mail: car...@acsu.buffalo.edu -- __ /\ \ "There is the theory of the Moebius - a twist / \ \ in the fabric of space where time becomes a / /\ \ \ loop, from which there is no escape. / / /\ \ \ Once we reach that point, whatever happens will / / /~~~~ \ happen again... where time becomes a loop, from \/ ~~~~~~~/ which there is no escape." ~~~~~~~~~~ :: men...@sefl.satelnet.org :: syn...@gcomm.com :: pnt...@gcomm.com ::
>> I have been looking (to no avail) for a list of all the CTRL-<key> codes >>that exist for a PC/Terminal setup. I know of some, and what they do, but there >>is no table that I can find(ex CTRL-H is backspace/delete). If anyone has >>some sort of list for these CTRL-<key> keys, I would greatly appreciate it >>if they could e-mail it to me. These codes would come in handy for a >>program that I am writing in the VMS language. Thanks in advance. > >It all depends... Some machines use Ctrl-H as >Return-to-beginning-of-line character. Anyway, most printer manuals will >have a list of all the ASCII codes and what they do, so take a look. >Here's some that I remember off the top of my head... > [snip] You might also want to check out the Ascii Art Bazaar (gopher to twinbrook.cis.uab.edu). I seem to recall there was a list of escape codes there... Tim -- _____________________________________________________________________________ | |\^/| "Every problem contains the seeds of | Tim Haynes | |._|\| |/|_. its own solution." - Stanley Arnold | Quality Assurance | | \ MAPLE / | Waterloo Maple Software|
Decimal ASCII
| 0 nul | 1 soh | 2 stx | 3 etx | 4 eot| 5 enq| 6 ack| 7 bel|
| 8 bs | 9 ht | 10 nl | 11 vt | 12 np| 13 cr| 14 so| 15 si|
| 16 dle | 17 dc1 | 18 dc2 | 19 dc3 | 20 dc4| 21 nak| 22 syn| 23 etb|
| 24 can | 25 em | 26 sub | 27 esc | 28 fs| 29 gs| 30 rs| 31 us|
Hexadecimal ASCII
| 00 nul | 01 soh | 02 stx | 03 etx | 04 eot| 05 enq| 06 ack| 07 bel|
| 08 bs | 09 ht | 0a nl | 0b vt | 0c np| 0d cr| 0e so| 0f si|
| 10 dle | 11 dc1 | 12 dc2 | 13 dc3 | 14 dc4| 15 nak| 16 syn| 17 etb|
| 18 can | 19 em | 1a sub | 1b esc | 1c fs| 1d gs| 1e rs| 1f us|
The following is excerpted from "Inside ASCII by R. W. Bemer" from the
book, "The Best of Interface Age, Vol. 2":
GRAPHICS FOR THE CONTROLS
There are standard graphical representations for the 32 controls,
space, and delete. They are defined by ISO2047, American Standard X3.32,
and ECMA-17.... There are five groups in the basic control set.
STICKS 0,1 -- Logical Communication Control (10) ...
STICKS 0,1 -- Physical Communication (4) ...
STICKS 0,1 -- Device Control (11) ...
STICKS 0,1 -- Information Separators (4) ...
STICKS 0,1 -- Changing Sets (3) ...
Control-@ NUL (Null) [ PC ]
Control-A SOH (Start of Heading) [ LCC ]
Control-B STX (Start of Text) [ LCC ]
Control-C ETX (End of Text) [ LCC ]
Control-D EOT (End of Transmission) [ LCC ]
Control-E ENQ (Enquiry) [ LCC ]
Control-F ACK (Acknowledge) [ LCC ]
Control-G BEL (Bell) [ DC ]
Control-H BS (Backspace) [ DC ]
Control-I HT (Horizontal Tabulation) [ DC ]
Control-J LF/NL (Line Feed) [ DC ]
Control-K VT (Vertical Tabulation) [ DC ]
Control-L FF/NP (Form Feed) [ DC ]
Control-M CR (Carriage Return) [ DC ]
Control-N SO (Shift Out) [ CS ]
Control-O SI (Shift In) [ CS ]
Control-P DLE (Data Link Escape) [ LCC ]
Control-Q DC1 (Device Control 1) [ DC ]
Control-R DC2 (Device Control 2) [ DC ]
Control-S DC3 (Device Control 3) [ DC ]
Control-T DC4 (Device Control 4) [ DC ]
Control-U NAK (Negative Acknowledge) [ LCC ]
Control-V SYN (Sychronous Idle) [ LCC ]
Control-W ETB (End of Transmission Block) [ LCC ]
Control-X CAN (Cancel) [ PC ]
Control-Y EM (End of Medium) [ PC ]
Control-Z SUB (Substitute) [ PC ]
Control-[ ESC (Escape) [ CS ]
Control-/ FS (File Separator) [ IS ]
Control-] GS (Group Separator) [ IS ]
Control-^ RS (Record Separator) [ IS ]
Control-_ US (Unit Separator) [ IS ]
men...@satelnet.org (Mat Hall) writes: >Ctrl-? Backspace on some System V UNIX boxes. >Ctrl-M Carriage return. >Ctrl-C Break. >Ctrl-G Bell. >Ctrl-B Cursor left. Carefull! you probably mean META-A/B/C/D !!! >Ctrl-A Cursor right. (Cursor to beginning of line, if nothing worse...) >Ctrl-C BREAK ! >Ctrl-D EndOfFile which may mean LOGOUT... in fact it does in most environments... see you Soeren -- Soeren M Soerries eoo. eoooo ,oo. eo oo ,ooo. * eoo. eo oo eoooo Breul 43, d8oob d8oo d8odP dP8dP 8oo. op dP db d8odP d8oo 48143 Muenster, d8ooP' d8ooo dP dP dP 8P booP' dP d8ooP dP dP d8ooo Germany. tlf: voice 0251-51378, data 0251-56822, soe...@beansidhe.ms.sub.org
About this thread.
These messages were posted publicly to the newsgroup
rec.arts.ascii
in 1994 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.