OSDN Git Service

Fix behavior of Ctrl-[0-9]
authorJack Palevich <jackpal@google.com>
Sat, 25 Jun 2011 12:03:30 +0000 (20:03 +0800)
committerJack Palevich <jackpal@google.com>
Sat, 25 Jun 2011 12:03:30 +0000 (20:03 +0800)
commit29e95e964ec41b8c8de1832950b35cb165eba380
treed68af61cd934702d917667a9c38f5082289f4758
parent892831647b99de29af04a953eb78e3be18049049
Fix behavior of Ctrl-[0-9]

Patch contributed by Steven Luo. steven+android@steven676.net

Steven writes:

In xterm on my Debian system, the Ctrl-[0-9] combinations appear to map
to the following:

Ctrl-2: ^@ (NUL)
Ctrl-3: ^[ (ESC)
Ctrl-4: ^\
Ctrl-5: ^]
Ctrl-6: ^^
Ctrl-7: ^_
Ctrl-8: \177 (DEL)

Ctrl-1, Ctrl-9, and Ctrl-0 appear to send 1, 9, and 0 respectively.

I have no idea whether anyone actually seriously uses these, but make
these key combinations behave in that manner, and remove the bogus
Ctrl-[0-9] and superfluous Fn-[234] combos.
src/jackpal/androidterm/Term.java