1.01wip
[platform/upstream/kbd.git] / doc / kbd.FAQ-21.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4  <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
5  <TITLE>The Linux keyboard and console HOWTO: Some properties of the VT100 - application key mode</TITLE>
6  <LINK HREF="kbd.FAQ-22.html" REL=next>
7  <LINK HREF="kbd.FAQ-20.html" REL=previous>
8  <LINK HREF="kbd.FAQ.html#toc21" REL=contents>
9 </HEAD>
10 <BODY>
11 <A HREF="kbd.FAQ-22.html">Next</A>
12 <A HREF="kbd.FAQ-20.html">Previous</A>
13 <A HREF="kbd.FAQ.html#toc21">Contents</A>
14 <HR>
15 <H2><A NAME="s21">21. Some properties of the VT100 - application key mode</A></H2>
16
17 <P>
18 <!--
19 keyboard!VT100 application key mode
20 -->
21
22 <!--
23 VT100 application key mode
24 -->
25 <P>: Sometimes my cursor keys or keypad keys produce strange codes?
26 <P>When the terminal is in application cursor key mode the cursor keys
27 produce  Esc O x  and otherwise  Esc [ x  where x is one of A,B,C,D.
28 Certain programs put the terminal in application cursor key mode;
29 if you kill them with <CODE>kill -9</CODE>, or if they crash, then the mode will
30 not be reset.
31 <PRE>
32         % echo -e '\033c'  
33 </PRE>
34
35 resets all properties of the current VC. Just changing the cursor
36 application key mode is done by
37 <PRE>
38         % echo -e '\033[?1h' 
39 </PRE>
40
41 (set) and
42 <PRE>
43         % echo -e '\033[?1l' 
44 </PRE>
45
46 (clear).
47 <P>When the terminal is in application keypad key mode the keypad keys
48 produce  Esc O y  and otherwise  Esc [ z ~  for
49 certain y and z. Setting application keypad key mode is done by
50 <PRE>
51         % echo -e '\033=' 
52 </PRE>
53
54 and
55 <PRE>
56         % echo -e '\033&gt;' 
57 </PRE>
58
59 clears it again.
60 <P>
61 <HR>
62 <A HREF="kbd.FAQ-22.html">Next</A>
63 <A HREF="kbd.FAQ-20.html">Previous</A>
64 <A HREF="kbd.FAQ.html#toc21">Contents</A>
65 </BODY>
66 </HTML>