\chapter{Set-Up Mode}

\section{Keys in Set-Up Mode}

\begin{tabular}{p{6em} | p{0.75\textwidth}}
\hline
\textbf{Key} & \textbf{Function} \\
\hline
\LKeyF{1}		& Show/hide help \\
\LKey{5}		& Advance to the next screen \\
\LKeyTab		& Move cursor to the next tab stop \\
\LKeyEnter		& Move cursor to the beginning of the line \\
\LKeyShiftX{C}	& On Set-Up B: reset NVRAM to factory defaults on next boot \\
\hline
\LKeyShiftX{S}	& Save the settings to NVS \\
\LKeyShiftX{R}	& Recall settigns from NVS \\
\hline
\end{tabular}

\section{The Set-Up Screens}

The Set-Up screens imitate the same functions on a real DEC VT100 terminal.

\newpage
\subsection{Set-Up A}

This page shows the tab stops at the bottom of the screen.

\begin{tabular}{p{6em} | p{0.75\textwidth}}
\hline
\textbf{Key} & \textbf{Function} \\
\hline
\LKeyShiftX{T}	& Reset all tab stop to default \\
\LKey{2}		& Set / clear tab stop at cursor position \\
\LKey{3}		& Clear all tab stops \\
\LKey{4}		& Toggle online / local mode \\
\LKey{9}		& Toggle 80 / 132 columns per line \\
\hline
\end{tabular}
\vspace{1em}

\begin{itemize}[leftmargin=1em]
 \item In \textbf{online mode}, the terminal is connected to the computer via the serial port.\\
 \item In \textbf{local mode}, the terminal can be used to connect directly to the modem using the \textit{Quick Settings menu} (see \vref{quicksettings}).
\end{itemize}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newpage
\subsection{Set-Up B}

On this page, various configuration \textit{bits} can be set. Use the cursor to navigate above the bit and press \LKey{6} to toggle it. Use \LKeyTab{} and \LKeyEnter{} to move quicker.

These bits are available:

\begin{tabular}{p{8em} | p{0.68\textwidth}}
\hline
\textbf{Bit}	& \textbf{Function} \\
\hline
Scroll			& Use smooth scrolling \\
Auto Repeat		& Press longer on a key and the input will be repeated \\
Screen Inv.		& Invert the screen colors (to eg. black on white) \\
Cursor			& Change cursor shape (block / line) \\
\hline
Margin Bell		& Ring the bell when cursor is on right margin \\
Keyclick		& Every keypress will make a clicking sound \\
Ansi/VT52		& If disabled, VT52 personality is used \\
Auto Xon/off	& Use Xon/Xoff as flow control \\
\hline
US/UK			& Switch between US and UK keyboard layout \\
Wrap Around		& Characters will flow to the next line at the end of a line \\
New Line		& Pressing \LKeyEnter{} sends \texttt{CR + LF} instead of only \texttt{CR} \\
Interlace		& Enable a \textit{scanline effect} \\
\hline
Parity Odd/Even	& Not used \\
Parity			& Not used \\
Bits 7/8		& Not used \\
Backspace DEL/BS	& Send DEL or BS when pressing \texttt{Backspace} \\
\hline
Bold is Bright	& If bold text is displayed bright \\
Bold is Thick	& If bold text is displayed \textbf{thick} \\
Set ANSI.SYS Compliance	& The terminal will be more compatible to DOS \texttt{ANSI.SYS} \\
Set NumLock on Reset	& Enable NumLock on bootup \\
\hline
\end{tabular}

\newpage
\textbf{Please note:}
\begin{itemize}[leftmargin=1em]
 \item Use keys \LKey{7} and \LKey{8} to set the baudrate used on the terminal serial port, it is shown in the lower right.
 \item US/UK switch will replace \# with \pounds
 \item The Ansi/VT52 bit is for VT100 compatibility, as it reacts to \texttt{ESC[?2l} (start VT52 mode) and \texttt{ESC<} (return to ANSI mode, 
	ie. ANSI/VT100 personality). Changing the personality to VT52 disables this bit, all other will enable it.
 \item The bits for \textbf{bold} text are applied to text with the attribute \texttt{ESC[1m}.
 \item \textit{ANSI.SYS Compliance} makes the cursor go home (\texttt{ESC[H}) on a clear screen request (\texttt{ESC[2J}),
	and makes some of the lower ASCII characters (between 0x00-0x1F) visible.
\end{itemize}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newpage
\subsection{Set-Up C}

This screen is a VT132 enhancement over the VT100 functionality. \\
You can also see the version number and the memory utilization (with help disabled).

You can change the following settings:

\begin{tabular}{ c | p{0.88\textwidth}}
\hline
\textbf{Key} & \textbf{Function} \\
\hline
\LKey{2}	& Select codepage (DEC or Codepage 437) \\
\LKey{3}	& Select lines per screen (24, 25 or 30) \\
\LKey{6}	& Toggle ANSI or VGA color palette \\
\LKey{7}	& Set default foreground color \\
\LKey{8}	& Set default background color \\
\hline
\end{tabular}
\vspace{1em}

\textbf{Please note:}
\begin{itemize}[leftmargin=1em]
 \item Codepage 437 is not available in 132 column mode.
 \item When switching to 30 line mode, WiFi cannot be started due to memory constraints. Also, if WiFi is already started,
		30 line mode is not available (the option toggles between 24 and 25 lines then).
 \item To set the colors, move the cursor above the desired color on the bottom left of the screen.
 \item The current default foreground/background color is displayed on the last line of the screen by the word \texttt{Default}.
 \item The current screen size is displayed on the last line of the screen.
\end{itemize}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newpage
\subsection{Set-Up D}

This screen is a VT132 enhancement over the VT100 functionality.

\begin{tabular}{ c | p{0.85\textwidth}}
\hline
\textbf{Key} & \textbf{Function} \\
\hline
\LKey{6}	& Set the keyboard layout \\
\LKey{7}	& Toggle MCS/NRCS \\
\hline
\LKeyUp		& \multirow{2}{*}{Change Personality} \\
\LKeyDown	& \\
\hline
\end{tabular}
\vspace{1em}

\textbf{Please note:}
\begin{itemize}[leftmargin=1em]
 \item To change the keyboard layout, move the cursor above the desired label and press \LKey{6}.
 \item When enabling NRCS, certain characters in the lower 127 characters are replaced with country-specific characters according to the
		selected keyboard layout.
 \item The current keyboard layout and personality is shown in the last line of the screen.
 \item Selecting \textit{WordStar/VT100} will enable WordStar cursor movement sequences for the cursor keys instead of standard ANSI
		cursor sequences \textit{(ANSI/VT100)}.
\end{itemize}

