HEX
Server: Apache
System: Linux dinesh8149 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: usesambura1 (1212012)
PHP: 7.0.33
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/share/doc/kbd/kbd.FAQ-21.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>The Linux keyboard and console HOWTO: Some properties of the VT100 - application key mode</TITLE>
 <LINK HREF="kbd.FAQ-22.html" REL=next>
 <LINK HREF="kbd.FAQ-20.html" REL=previous>
 <LINK HREF="kbd.FAQ.html#toc21" REL=contents>
</HEAD>
<BODY>
<A HREF="kbd.FAQ-22.html">Next</A>
<A HREF="kbd.FAQ-20.html">Previous</A>
<A HREF="kbd.FAQ.html#toc21">Contents</A>
<HR>
<H2><A NAME="s21">21. Some properties of the VT100 - application key mode</A></H2>

<P>
<!--
keyboard!VT100 application key mode
-->

<!--
VT100 application key mode
-->
<P>: Sometimes my cursor keys or keypad keys produce strange codes?
<P>When the terminal is in application cursor key mode the cursor keys
produce  Esc O x  and otherwise  Esc [ x  where x is one of A,B,C,D.
Certain programs put the terminal in application cursor key mode;
if you kill them with <CODE>kill -9</CODE>, or if they crash, then the mode will
not be reset.
<PRE>
        % echo -e '\033c'  
</PRE>

resets all properties of the current VC. Just changing the cursor
application key mode is done by
<PRE>
        % echo -e '\033[?1h' 
</PRE>

(set) and
<PRE>
        % echo -e '\033[?1l' 
</PRE>

(clear).
<P>When the terminal is in application keypad key mode the keypad keys
produce  Esc O y  and otherwise  Esc [ z ~  for
certain y and z. Setting application keypad key mode is done by
<PRE>
        % echo -e '\033=' 
</PRE>

and
<PRE>
        % echo -e '\033&gt;' 
</PRE>

clears it again.
<P>
<HR>
<A HREF="kbd.FAQ-22.html">Next</A>
<A HREF="kbd.FAQ-20.html">Previous</A>
<A HREF="kbd.FAQ.html#toc21">Contents</A>
</BODY>
</HTML>