%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                           %
% 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{Customizing UniTerm}

UniTerm can be adjusted to suit your needs in various ways, most 
use  the setup files to store the configuration data.  The  popup 
menu  and  the bindings of the \key{Alternate}\ keys  are  exceptions, 
mainly  since  there  would have been no  way  of  editing  these 
settings  without making UniTerm simply to large.  The popup  and 
keys  can be set by executing UniTerm macro commands in the  auto 
startup macro file. 

\section{Popup Menu}\index{Popup}

A line like

    \verb+POPUP(1,15,'L. Break')+\index{Command POPUP} 

in  your startup macro file will assign the command LongBreak  to 
the  top  left-hand entry in the popup and will name  the  command 
'L. Break',  consult  the  chapter on the macro  commands  for  a 
complete description.

\section{Key Bindings}\index{Key Bindings}

 A line like

    \verb+REASSIGN(39,15)+\index{Command REASSIGN}

in  your startup macro file will assign the command LongBreak  to 
\key{Alternate}\key{Space},  to  find  out which keycode  to  use  please 
consult other literature.  Beware:  in some cases the \key{Alternate} 
key modifies the value of the returned keycode. To override
the default bindings\index{overriding bindings}, set the command number
to zero, this causes the character generated by the BIOS to be used for
output.  

Additionally some special keys can also be redefined:

\begin{center}
\begin{tabular}{|l|l|} \hline
Key                        & Keycode \\
\hline
\keytwo{Shift}{ClrHome}    & -1 \\
\keytwo{Shift}{UpArrow}    & -2 \\
\keytwo{Shift}{DnArrow}    & -3 \\
\keytwo{Shift}{LeftArrow}  & -4 \\
\keytwo{Shift}{RightArrow} & -5 \\
\key{Insert}               & -6 \\
\keytwo{Shift}{Insert}     & -7 \\
\key{UnDo}                 & -8 \\
\keytwo{Shift}{UnDo}       & -9 \\
\key{UnDo}                 & -10 \\
\key{Help}                 & -11 \\
\keytwo{Shift}{Help}       & -12 \\
\key{Help}                 & -13 \\
\hline
\end{tabular}
\end{center}
