Skip to content

Commit

Permalink
Add docs for LOCATE statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jestin committed Nov 6, 2023
1 parent d2dd57a commit c276047
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions appendix/basic_commands.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ \subsection{LINPUT\#}
sixth bit of the {\ttfamily ST} special variable. This means the end of the
file can be detected with {\ttfamily ST AND 64}.\\

Examples:\\
Example:\\

\codeblock{
10 I=0\\
Expand All @@ -1750,7 +1750,28 @@ \subsection{LINPUT\#}

\subsection{LOCATE}

<TODO>
The {\ttfamily LOCATE} statement moves the cursor in text mode, allowing a
program to print text to any part of the screen. The {\ttfamily LOCATE}
statement takes a line as the first argument, and a column as an optional
second argument. Both the line and the column numbers are 1-based (the first
line is {\ttfamily 1} and the first column is {\ttfamily 1}), the column is
{\ttfamily 1} if no column argument is given.\\

Examples:

\begin{tabular}{l p{0.85\linewidth}}

{\ttfamily\bfseries LOCATE 20} & Move the cursor to line 20 and column
1\\\\

{\ttfamily\bfseries LOCATE 20,30} & Move the cursor to line 20 and column
30\\\\

{\ttfamily\bfseries LOCATE 1,1} & Move the cursor to the top left corner\\\\

\end{tabular}

\vspace{16pt}

\subsection{MOUSE}

Expand Down

0 comments on commit c276047

Please sign in to comment.