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 | Ctrl-@ | ^@ | ||||
| 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-_ | ^_ | |||
CTRL key的更多相关文章
- [WPF][ListBox]鼠标拖拽多选,(Shift Key、Ctrl Key多选有效)(转)
<ListBox Name="listBox" SelectionMode="Extended"> <ListBox.Resources> ...
- ubuntu 交换ctrl与caps lock 键
The relevant option is no longer available in the settings menu in Ubuntu 13.10; this has been repor ...
- Ubuntu 16.04交换Ctrl和Caps
将Caps这个鸡肋的键位换成Ctrl的人不在少数,Ubuntu 12.04 中可以通过设置-键盘更改,新版去掉了这个功能,可以通过修改系统文件实现 方法1 在~/.xinputrc中加入:setxkb ...
- opengl键盘回调函数不能获取Ctrl+c的问题
我要令窗口在按下 Ctrl+c 之后关闭. 关键代码如下: /* 这段代码位于键盘回调函数中 */ if ((glutGetModifiers() == GLUT_ACTIVE_CTRL) & ...
- Thinkpad个性化设置:F1~F12恢复正常按键,Fn与Ctrl按键互换
一.F1~F12恢复正常按键 联想Thinkpad的F1~F12键功能与其他笔记本是相反的! 也就是说,如果不按着Fn,按那几个功能键,实现的是属性设置的功能,比如直接按下F1键是静音,F2键是音量降 ...
- QT 按键处理 快捷键处理 shift + ctrl
原味地址:http://www.cnblogs.com/codingmylife/archive/2010/08/30/1812739.html CTRL+Enter发送信息的实现 在现在的即时聊天程 ...
- C# monitor keyboard and print pressed key
using System; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Diagnos ...
- [转载]-虚拟键值表-virtual key code
转载 虚拟键值表, virtual key code Virtual-Key Codes VK_LBUTTON (01)Left mouse button VK_RBUTTON (02)Right ...
- windows消息机制详解(转载)
消息,就是指Windows发出的一个通知,告诉应用程序某个事情发生了.例如,单击鼠标.改变窗口尺寸.按下键盘上的一个键都会使Windows发送一个消息给应用程序.消息本身是作为一个记录传递给应用程序的 ...
随机推荐
- Python基础篇-day8
本节目录1.抽象接口2.静态方法.类方法.属性方法3.类的特殊方法 3.1 __doc__ 表示类的描述信息(注释) 3.2 __module__ 和 __class__ 3.3 __init__ 构 ...
- java 垃圾回收总结(可达性分析 引用分类
java 垃圾回收总结(1) 以前看过很多次关于垃圾回收相关的文章,都只是看过就忘记了,没有好好的整理一下,发现写文章可以强化自己的记忆. java与C,c++有很大的不同就是java语言开发者不 ...
- JAVA: 接入YSDK遇到的问题
JAVA后台接口: 1, 腾讯开放平台: http://wiki.open.qq.com/wiki/%E9%A6%96%E9%A1%B5 2,YSDK介绍,大概流程: http://wiki.open ...
- 移动app的一些心得
周末的时候闲着没事,看到了个开源的红旅动漫的APP,于是自己就拿下来写了下,整个网站作者也解析成了接口,所以就可以写成app了,作者写的是用mui开发的,可以通过hbuilder软件打开,进行查看源代 ...
- .net 中HttpClient 携带cookie传输
CookieContainer cookieContainer = new CookieContainer(); Cookie cookie = new Cookie("username&q ...
- URAL 6089 Nine
水题,找误差范围之内9最多的时间,如果有多个,选择误差最小的一个,如果还有多个,选择字典序最小的一个.同一个时间可以有不同的表示方法,例如60:15也可以表示为59:75. #include<s ...
- hihoCoder挑战赛11 A 随机斐波那契
算了前三项.....发现是个大水题... #include<stdio.h> int main() { int n; while (~scanf("%d", &am ...
- hdu1020
#include <stdio.h> int main(void){ int n,i,c; char txt[10001]; scanf("%d", &n); ...
- 【转】cookie和session的区别
原作者:施杨(施杨's Think out)出处:http://shiyangxt.cnblogs.com ************** 本文版权归原作者和博客园共有,欢迎转载,转载请保留该申明 ** ...
- JS同源策略和跨域问题
同源策略和跨域问题:http://www.cnblogs.com/chaoyuehedy/p/5556557.html 深入浅出JSONP--解决ajax跨域问题:http://www.cnblogs ...