summaryrefslogtreecommitdiffstats
path: root/terminal.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-12-19 17:37:49 -0500
committerKristian Høgsberg <krh@redhat.com>2008-12-19 17:38:55 -0500
commit33500890b32f33e1bf95ec8c9460079232a3f7e3 (patch)
treec788b5a5d4c0a810d107034f8a87b09e44cad10d /terminal.c
parent966aa112e7851625f764718e3d45c46d246760fc (diff)
downloadwayland-33500890b32f33e1bf95ec8c9460079232a3f7e3.tar.gz
wayland-33500890b32f33e1bf95ec8c9460079232a3f7e3.tar.xz
wayland-33500890b32f33e1bf95ec8c9460079232a3f7e3.zip
Handle more control characters in terminal.
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/terminal.c b/terminal.c
index 2dd6b53..5855d2a 100644
--- a/terminal.c
+++ b/terminal.c
@@ -424,18 +424,18 @@ struct key {
{ { '\b', '\b' } },
{ { '\t', '\t' } },
- { { 'q', 'Q' } }, /* 16 */
+ { { 'q', 'Q', 0x11 } }, /* 16 */
{ { 'w', 'W', 0x17 } },
{ { 'e', 'E', 0x05 } },
{ { 'r', 'R', 0x12 } },
- { { 't', 'T' } },
- { { 'y', 'Y' } },
+ { { 't', 'T', 0x14 } },
+ { { 'y', 'Y', 0x19 } },
{ { 'u', 'U', 0x15 } },
- { { 'i', 'I' } },
- { { 'o', 'O' } },
+ { { 'i', 'I', 0x09 } },
+ { { 'o', 'O', 0x0f } },
{ { 'p', 'P', 0x10 } },
- { { '[', '{' } },
- { { ']', '}' } },
+ { { '[', '{', 0x1b } },
+ { { ']', '}', 0x1d } },
{ { '\n', '\n' } },
{ { 0, 0 } },
{ { 'a', 'A', 0x01} },
@@ -443,8 +443,8 @@ struct key {
{ { 'd', 'D', 0x04 } }, /* 32 */
{ { 'f', 'F', 0x06 } },
- { { 'g', 'G' } },
- { { 'h', 'H' } },
+ { { 'g', 'G', 0x07 } },
+ { { 'h', 'H', 0x08 } },
{ { 'j', 'J', 0x0a } },
{ { 'k', 'K', 0x0b } },
{ { 'l', 'L', 0x0c } },
@@ -452,11 +452,11 @@ struct key {
{ { '\'', '"' } },
{ { '`', '~' } },
{ { 0, 0 } },
- { { '\\', '|' } },
- { { 'z', 'Z' } },
- { { 'x', 'X' } },
- { { 'c', 'C' } },
- { { 'v', 'V' } },
+ { { '\\', '|', 0x1c } },
+ { { 'z', 'Z', 0x1a } },
+ { { 'x', 'X', 0x18 } },
+ { { 'c', 'C', 0x03 } },
+ { { 'v', 'V', 0x16 } },
{ { 'b', 'B', 0x02 } }, /* 48 */
{ { 'n', 'N', 0x0e } },