Unix and Linux Discussions Tagged with ascii |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
71,049 |
Shell Programming and Scripting |
|
|
|
11 |
27,466 |
Shell Programming and Scripting |
|
|
|
8 |
19,733 |
Windows & DOS: Issues & Discussions |
|
|
|
3 |
2,818 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
4,469 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
7,839 |
UNIX for Advanced & Expert Users |
|
|
|
12 |
8,221 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
2,181 |
Shell Programming and Scripting |
|
|
|
6 |
6,067 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
5,955 |
Shell Programming and Scripting |
|
|
|
3 |
4,076 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,914 |
Programming |
|
|
|
2 |
5,135 |
Shell Programming and Scripting |
|
|
|
7 |
11,566 |
UNIX for Advanced & Expert Users |
|
|
|
10 |
10,510 |
Shell Programming and Scripting |
|
|
|
1 |
11,968 |
Shell Programming and Scripting |
|
|
|
1 |
16,674 |
Programming |
|
|
|
4 |
12,912 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,346 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
9,984 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
64,225 |
Shell Programming and Scripting |
|
|
|
4 |
29,101 |
Shell Programming and Scripting |
|
|
|
3 |
9,473 |
Shell Programming and Scripting |
|
|
|
0 |
983 |
Software Releases - RSS News |
|
|
|
12 |
21,386 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,045 |
Software Releases - RSS News |
|
|
|
5 |
6,338 |
Shell Programming and Scripting |
|
|
|
0 |
1,112 |
Software Releases - RSS News |
|
|
|
0 |
1,063 |
Software Releases - RSS News |
|
|
|
0 |
1,058 |
Software Releases - RSS News |
|
|
|
0 |
1,367 |
Software Releases - RSS News |
|
|
|
3 |
14,544 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,349 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
6,309 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,008 |
Software Releases - RSS News |
|
|
|
0 |
1,513 |
Software Releases - RSS News |
|
|
|
0 |
1,119 |
Software Releases - RSS News |
|
|
|
0 |
1,141 |
Software Releases - RSS News |
|
|
|
4 |
13,529 |
Shell Programming and Scripting |
|
|
|
1 |
23,286 |
Shell Programming and Scripting |
SHOWKEY(1) General Commands Manual SHOWKEY(1)
NAME
showkey - examine the codes sent by the keyboard
SYNOPSIS
showkey [-h|--help] [-a|--ascii] [-s|--scancodes] [-k|--keycodes]
DESCRIPTION
showkey prints to standard output either the scan codes or the keycode or the `ascii' code of each key pressed. In the first two modes the
program runs until 10 seconds have elapsed since the last key press or release event, or until it receives a suitable signal, like SIGTERM,
from another process. In `ascii' mode the program terminates when the user types ^D.
When in scancode dump mode, showkey prints in hexadecimal format each byte received from the keyboard to the standard output. A new line is
printed when an interval of about 0.1 seconds occurs between the bytes received, or when the internal receive buffer fills up. This can be
used to determine roughly, what byte sequences the keyboard sends at once on a given key press. The scan code dumping mode is primarily
intended for debugging the keyboard driver or other low level interfaces. As such it shouldn't be of much interest to the regular end-user.
However, some modern keyboards have keys or buttons that produce scancodes to which the kernel does not associate a keycode, and, after
finding out what these are, the user can assign keycodes with setkeycodes(8).
When in the default keycode dump mode, showkey prints to the standard output the keycode number or each key pressed or released. The kind
of the event, press or release, is also reported. Keycodes are numbers assigned by the kernel to each individual physical key. Every key
has always only one associated keycode number, whether the keyboard sends single or multiple scan codes when pressing it. Using showkey in
this mode, you can find out what numbers to use in your personalized keymap files.
When in `ascii' dump mode, showkey prints to the standard output the decimal, octal, and hexadecimal value(s) of the key pressed, according
to he present keymap.
OPTIONS
-h --help
showkey prints to the standard error output its version number, a compile option and a short usage message, then exits.
-s --scancodes
Starts showkey in scan code dump mode.
-k --keycodes
Starts showkey in keycode dump mode. This is the default, when no command line options are present.
-a --ascii
Starts showkey in `ascii' dump mode.
SEE ALSO
loadkeys(1), dumpkeys(1), keymaps(5), setkeycodes(8)
1 Feb 1998 SHOWKEY(1)