%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                           %
% UniTerm Users Guide, Copyright 1986, 1987 Simon Poole     %
%                                                           %
% This file may not be changed without permission, all      %
% rights reserved.                                          %
%                                                           %
% Simon Poole                                               %
% Bahnhofstr. 51 b                                          %
% CH-5430 Wettingen                                         %
% Switzerland                                               %
%                                                           %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Key assignments and generated codes}
\label{keyref}
\vfill
\begin{table}[h]
\caption{VT100 Cursor Keys}
\medskip
\begin{center}
\begin{tabular}{|l|l|l|l|}
\hline
  VT100 Key   &  UniTerm key   &  ANSI normal  & ANSI application \\
\hline
Cursor Up     & Cursor Up      & \ASCII{ESC}[A & \ASCII{ESC}OA \\
Cursor Down   & Cursor Down    & \ASCII{ESC}[B & \ASCII{ESC}OB  \\
Cursor Right  & Cursor Right   & \ASCII{ESC}[C & \ASCII{ESC}OC  \\
Cursor Left   & Cursor Left    & \ASCII{ESC}[D & \ASCII{ESC}OD  \\
\hline
\end{tabular}
\end{center}
\end{table}

\vfill

\begin{table}[h]
\caption{VT52 Cursor Keys}
\begin{center}
\begin{tabular}{|l|l|l|l|}
\hline
  VT100 Key   &  UniTerm key    &  VT52 normal  & VT52 application \\
\hline
Cursor Up     &  Cursor Up      & \ASCII{ESC}A & \ASCII{ESC}A   \\
Cursor Down   &  Cursor Down    & \ASCII{ESC}B & \ASCII{ESC}B   \\
Cursor Right  &  Cursor Right   & \ASCII{ESC}C & \ASCII{ESC}C   \\
Cursor Left   &  Cursor Left    & \ASCII{ESC}D & \ASCII{ESC}D   \\
\hline
\end{tabular}
\end{center}
\end{table}

\vfill

\pagebreak

\vfill

\begin{table}[h]
\caption{VT100 Keypad}
\begin{center}
\begin{tabular}{|l|l|l|l|}
\hline
   VT100 Key     &   UniTerm key  & Numeric mode  & Application mode \\
\hline
PF1              & Keypad (       & \ASCII{ESC}OP & \ASCII{ESC}OP  \\
PF2              & Keypad )       & \ASCII{ESC}OQ & \ASCII{ESC}OQ  \\
PF3              & Keypad /       & \ASCII{ESC}OR & \ASCII{ESC}OR  \\
PF4              & Keypad *       & \ASCII{ESC}OS & \ASCII{ESC}OS  \\
Keypad 7         & Keypad 7       & 7             & \ASCII{ESC}Ow \\
Keypad 8         & Keypad 8       & 8             & \ASCII{ESC}Ox \\
Keypad 9         & Keypad 9       & 9             & \ASCII{ESC}Oy \\
Keypad 4         & Keypad 4       & 4             & \ASCII{ESC}Ot \\
Keypad 5         & Keypad 5       & 5             & \ASCII{ESC}Ou \\
Keypad 6         & Keypad 6       & 6             & \ASCII{ESC}Ov \\
Keypad 1         & Keypad 1       & 1             & \ASCII{ESC}Oq \\
Keypad 2         & Keypad 2       & 2             & \ASCII{ESC}Or \\
Keypad 3         & Keypad 3       & 3             & \ASCII{ESC}Os \\
Keypad 0         & Keypad 0       & 0             & \ASCII{ESC}Op\\
Keypad -         & Keypad -       & -             & \ASCII{ESC}Om \\
Keypad ,         & Keypad +       & ,             & \ASCII{ESC}Ol \\
Keypad .         & Keypad .       & .             & \ASCII{ESC}On \\
Keypad Enter     & Keypad Enter   & \ASCII{CR}/\ASCII{CRLF}& \ASCII{ESC}OM  \\
\hline
\end{tabular}
\end{center}
\end{table}

\vfill

\pagebreak

\vfill

\begin{table}[h]
\caption{VT100 Keypad (VT52 mode)}
\begin{center}
\begin{tabular}{|l|l|l|l|}
\hline
   VT100 Key     &  UniTerm key   & Numeric mode & Application mode  \\
\hline
PF1              & Keypad (       & \ASCII{ESC}P  & \ASCII{ESC}P   \\
PF2              & Keypad )       & \ASCII{ESC}Q  & \ASCII{ESC}Q   \\
PF3              & Keypad /       & \ASCII{ESC}R  & \ASCII{ESC}R   \\
PF4              & Keypad *       & \ASCII{ESC}S  & \ASCII{ESC}S   \\
Keypad 7         & Keypad 7       & 7             & \ASCII{ESC}?w  \\
Keypad 8         & Keypad 8       & 8             & \ASCII{ESC}?x  \\
Keypad 9         & Keypad 9       & 9             & \ASCII{ESC}?y  \\
Keypad 4         & Keypad 4       & 4             & \ASCII{ESC}?t  \\
Keypad 5         & Keypad 5       & 5             & \ASCII{ESC}?u  \\
Keypad 6         & Keypad 6       & 6             & \ASCII{ESC}?v  \\
Keypad 1         & Keypad 1       & 1             & \ASCII{ESC}?q  \\
Keypad 2         & Keypad 2       & 2             & \ASCII{ESC}?r  \\
Keypad 3         & Keypad 3       & 3             & \ASCII{ESC}?s  \\
Keypad 0         & Keypad 0       & 0             & \ASCII{ESC}?p  \\
Keypad -         & Keypad -       & -             & \ASCII{ESC}?m  \\
Keypad ,         & Keypad +       & ,             & \ASCII{ESC}?l  \\
Keypad .         & Keypad .       & .             & \ASCII{ESC}?n  \\
Keypad Enter     & Keypad Enter   & \ASCII{CR}/\ASCII{CRLF} & \ASCII{ESC}?M  \\
\hline
\end{tabular}
\end{center}
\end{table}

\vfill

\pagebreak

\vfill

\begin{table}[h]
\caption{VT2XX Keys}
\begin{center}
\begin{tabular}{|l|c|c|c|}
\hline
    VT2XX Key      & Assigned to  & VT2XX   &   Sends    \\
                   & for down-    & Keycode & (default   \\
                   & lodable keys &         & on a VT2XX)\\ 
\hline \hline
Find               &              &         & \ASCII{ESC}[1\Tilde     \\
Insert here        &              &         & \ASCII{ESC}[2\Tilde     \\
Remove             &              &         & \ASCII{ESC}[3\Tilde     \\
Select             &              &         & \ASCII{ESC}[4\Tilde     \\
Prev Screen        &              &         & \ASCII{ESC}[5\Tilde     \\
Next Screen        &              &         & \ASCII{ESC}[6\Tilde     \\
\hline
Shift F6           & Shift F1     &  17     & \ASCII{ESC}[17\Tilde    \\
Shift F7           & Shift F2     &  18     & \ASCII{ESC}[18\Tilde    \\
Shift F8           & Shift F3     &  19     & \ASCII{ESC}[19\Tilde    \\
Shift F9           & Shift F4     &  20     & \ASCII{ESC}[20\Tilde    \\
Shift F10          & Shift F5     &  21     & \ASCII{ESC}[21\Tilde    \\
Shift F11          & Shift F6     &  23     & \ASCII{ESC}[23\Tilde    \\
Shift F12          & Shift F7     &  24     & \ASCII{ESC}[24\Tilde    \\
Shift F13          & Shift F8     &  25     & \ASCII{ESC}[25\Tilde    \\
Shift F14          & Shift F9     &  26     & \ASCII{ESC}[26\Tilde    \\
Shift Help         & Shift F10    &  28     & \ASCII{ESC}[28\Tilde    \\
Shift Do           & Control F1   &  29     & \ASCII{ESC}[29\Tilde    \\
Shift F17          & Control F2   &  31     & \ASCII{ESC}[31\Tilde    \\
Shift F18          & Control F3   &  32     & \ASCII{ESC}[32\Tilde    \\
Shift F19          & Control F4   &  33     & \ASCII{ESC}[33\Tilde    \\
Shift F20          & Control F5   &  34     & \ASCII{ESC}[34\Tilde    \\
\hline
                   & F1           &  47     &  \\
                   & F2           &  48     &  \\
                   & F3           &  49     &  \\
                   & F4           &  50     &  \\
                   & F5           &  51     &  \\
                   & F6           &  53     &  \\
                   & F7           &  54     &  \\
                   & F8           &  55     &  \\
                   & F9           &  56     &  \\
                   & F10          &  58     &  \\
                   & Control F6   &  59     &  \\
                   & Control F7   &  61     &  \\
                   & Control F8   &  62     &  \\
                   & Control F9   &  63     &  \\
                   & Control F10  &  64     &  \\
\hline
\end{tabular}
\end{center}
\end{table}

\vfill
