CTRL key

ctrl key其实是用于扩展键盘,单独一个ctrl键没有什么作用,也没有ascii码,当与其他键相结合时,相当于创造出一个新键。例如:用getchar()侦测输入的字符,当按下ctrl+a时,只输出了一个ascii码1。只按下ctrl键没有输出。因此ctrl+a其实只相当于一个键罢了。

下表为所有的ctrl组合键的ascii码及其名字。

Control   Code   To Enter With   Echo
Abbreviation Full Name Dec Hex Alt-Key Ctrl-Key
 
NUL Null 0 00   [email protected] ^@
SOH Start of heading 1 01 Alt-1 Ctrl-A ^A
STX Start of text 2 02 Alt-2 Ctrl-B ^B
ETX End of text 3 03 Alt-3 Ctrl-C ^C
EOT End of transmission 4 04 Alt-4 Ctrl-D ^D
ENQ Enquiry 5 05 Alt-5 Ctrl-E ^E
ACK Acknowledge 6 06 Alt-6 Ctrl-F ^F
BEL Bell 7 07 Alt-7 Ctrl-G ^G
BS Backspace 8 08 Alt-8 Ctrl-H ^H
HT Horizontal tab 9 09 Alt-9 Ctrl-I ^I
LF Line feed 10 0A Alt-10 Ctrl-J ^J
VT Vertical tab 11 0B Alt-11 Ctrl-K ^K
FF Form feed 12 0C Alt-12 Ctrl-L ^L
CR Carriage return 13 0D Alt-13 Ctrl-M ^M
SO Shift out 14 0E Alt-14 Ctrl-N ^N
SI Shift in 15 0F Alt-15 Ctrl-O ^O
DLE Data line escape 16 10 Alt-16 Ctrl-P ^P
DC1 Device control 1 17 11 Alt-17 Ctrl-Q ^Q
DC2 Device control 2 18 12 Alt-18 Ctrl-R ^R
DC3 Device control 3 19 13 Alt-19 Ctrl-S ^S
DC4 Device control 4 20 14 Alt-20 Ctrl-T ^T
NAK Negative acknowledge 21 15 Alt-21 Ctrl-U ^U
SYN Synchronous idle 22 16 Alt-22 Ctrl-V ^V
ETB End transmission block 23 17 Alt-23 Ctrl-W ^W
CAN Cancel 24 18 Alt-24 Ctrl-X ^X
EM End of medium 25 19 Alt-25 Ctrl-Y ^Y
SUB Substitute 26 1A Alt-26 Ctrl-Z ^Z
ESC Escape 27 1B Alt-27 Ctrl-[ ^[
FS File separator 28 1C Alt-28 Ctrl-\ ^\
GS Group separator 29 1D Alt-29 Ctrl-] ^]
RS Record separator 30 1E Alt-30 Ctrl-^ ^^
US Unit separator 31 1F Alt-31 Ctrl-_ ^_
时间: 2024-11-10 01:25:13

CTRL key的相关文章

ubuntu 交换ctrl与caps lock 键

The relevant option is no longer available in the settings menu in Ubuntu 13.10; this has been reported as a bug (https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1218322). However, it is still possible to swap these keys using th

Thinkpad个性化设置:F1~F12恢复正常按键,Fn与Ctrl按键互换

一.F1~F12恢复正常按键 联想Thinkpad的F1~F12键功能与其他笔记本是相反的! 也就是说,如果不按着Fn,按那几个功能键,实现的是属性设置的功能,比如直接按下F1键是静音,F2键是音量降低,F3是音量增加等等.如果按下Fn+F1键,则打开的是F1的功能,也就是系统帮助功能. 不过这样的设置在BIOS里可以设置,就是可以给它反过来,操作如下: 开机按F1键,不用按Fn键,进入BIOS,选择第一项Config,再选择Keyboard/Mouse,进入选项后,Change to "F1-

wxPython Bind key events

In this post, I’ll detail how to catch specific key presses and why this can be useful. This is another in my series of “requested” tutorials. There really isn’t much to catching key presses, but it can be a little confusing when one widget behaves s

Delphi KeyPress KeyDown时Key的值

Shift 是一个集合变量. type TShiftState = set of (ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble); 也就是说TShiftstate类型有ssShift, ssAlt, ssCtrl, ssLeft(鼠标左键), ssRight(鼠标右键), ssMiddle(鼠标中键), ssDouble (鼠标双击) Value Meaning ssShift              The Shif

man命令信息页

linux环境下使用man查询一些关键字,一个关键字的介绍可能很多,我们了解一下在这个信息页可以使用的命令: SUMMARY OF LESS COMMANDS Commands marked with * may be preceded by a number, N. Notes in parentheses indicate the behavior if N is given. A key preceded by a caret indicates the Ctrl key; thus ^K

Redirect

In this lesson we are going to unleash what may be the coolest feature of the command line.It's called I/O redirection.The "I/O" stands for input/output and with this facility you can redirect the input and output of commands to and from files,a

ImageBox Control with Zoom/Pan Capability

Download source files - 10.8 Kb Download demo project - 6.81 Kb Introduction This control extends the capability of an ImageBox by including scrollbars to pan the image and a method for zooming the size of the image. My goal here is to show you two t

C++入门

  C++入门必看,提升必看 Visual C++MFC入门教程 目录 +-- 第一章 VC入门|------ 1.1 如何学好VC|------ 1.2 理解Windows消息机制|------ 1.3 利用Visual C++/MFC开发Windows程序的优势|------ 1.4 利用MFC进行开发的通用方法介绍|------ 1.5 MFC中常用类,宏,函数介绍+-- 第二章 图形输出|------ 2.1 和GUI有关的各种对象|------ 2.2 在窗口中输出文字|------

在RedHat 和 Ubuntu 中配置 Delphi 的Linux开发环境(转)

原文地址:http://chapmanworld.com/2016/12/29/configure-delphi-and-redhat-or-ubuntu-for-linux-development/ 方便大家使用,直接转过来. Image courtesy of Jim McKeeth. One of the more exciting features of the pending 10.2 release of Delphi and RAD Studio, is support for t