@@ -214,9 +214,11 @@ \chapter*{Graphic Chracters}
214214want your rectangle to have rounded corners, you can use the graphic characters
215215on the \key {u}, \key {i}, \key {j}, and \key {k}.\\
216216
217- Spend some time experimenting with the other graphic characters to see what
218- kinds of shapes and designs you can draw. You can use the arrow keys to
219- position the cursor wherever you need to type.\\
217+ \tryit {
218+ Spend some time experimenting with the other graphic characters to see what
219+ kinds of shapes and designs you can draw. You can use the arrow keys to
220+ position the cursor wherever you need to type.\\
221+ }
220222
221223% To start, sit down in front of the Commander X16 Keyboard and type the
222224% following:\\
@@ -333,15 +335,15 @@ \section{The COLOR Statement}
333335The above call to the {\ttfamily COLOR} statement will set the foreground color
334336to light green and the background color to black. Just like the {\ttfamily
335337PRINT} statement, the {\ttfamily COLOR} statement can be used in a BASIC
336- program. When run in a program, it does not advance to the next line nor cause
337- the "READY" prompt to be printed. This means that the { \ttfamily COLOR}
338- statement can be used to change the foreground and background colors in between
339- calls to the {\ttfamily PRINT} statement without printing extra lines that you
340- don't want. It is also possible to call the { \ttfamily PRINT} statement in a
341- way where it does not advance the cursor to the next line, but instead leaves
342- it at the end of the characters that have just been printed. In order to use
343- { \ttfamily PRINT} without advancing to the next line, simply type a ';' at the
344- end of the statement:\\
338+ program. When the { \ttfamily COLOR} statement is run in a program, it does not
339+ advance to the next line nor cause the "READY" prompt to be printed. This
340+ means that the { \ttfamily COLOR} statement can be used to change the foreground
341+ and background colors in between calls to the {\ttfamily PRINT} statement
342+ without printing extra lines that you don't want. It is also possible to call
343+ the { \ttfamily PRINT} statement in a way where it does not advance the cursor
344+ to the next line, but instead leaves it at the end of the characters that have
345+ just been printed. In order to use { \ttfamily PRINT} without advancing to the
346+ next line, simply type a ';' at the end of the statement:\\
345347
346348\codeblock {
347349 10 PRINT "X" ;\\
@@ -359,27 +361,28 @@ \section{The COLOR Statement}
359361 30 PRINT "X" ;\\
360362}
361363
362- % ----------------------------------------------------------------------------------------
363- % CHAPTER - Keyboard
364- % ----------------------------------------------------------------------------------------
364+ If the above code is run, it will print two X's next to each other on the
365+ screen, but they will have different foreground and background colors. The
366+ Commander X16 allows for each character on the screen to have its own
367+ foreground and background color. A short program can be written to demonstrate
368+ this:\\
369+
370+ \keytextcolor {black}
371+ \keybackgroundcolor {white}
372+
373+ \codeblock {
374+ 10 COLOR RND(1)*16,RND(1)*16\\
375+ 20 PRINT "X\doublekey{RVS\\ON}X\doublekey{RVS\\OFF}" ;\\
376+ 30 GOTO 10\\
377+ }
378+
379+ \reminder {
380+ Did you remember to type {\ttfamily NEW} before entering in a new program?
381+ }
365382
366- \chapter* {The X16 Keyboard }
367- \addcontentsline {toc}{chapter}{\protect\numberline {}The X16 Keyboard}
368-
369- Molestiae ad dicta praesentium et. Placeat magnam nihil est animi vel eos. Sunt
370- consectetur nobis minima ut reiciendis hic non sed. Officiis sint voluptas non
371- quo eos architecto. Nulla et est laboriosam voluptatem. Iure sed et ducimus
372- nostrum est eveniet. Natus aut praesentium fugit. In quae tempora sunt autem
373- illum perspiciatis. Amet laborum numquam aut occaecati. Quia ad ab voluptas qui
374- autem. Qui voluptatum quibusdam est aliquam in. Quae ipsum aperiam aut saepe
375- molestiae natus sit. Totam autem veritatis deserunt. Hic ut excepturi porro. Et
376- ut vero voluptas iusto earum velit rerum. Assumenda enim voluptatum praesentium
377- quam. Rerum optio iste odit. Id quia ratione quasi. Doloremque et omnis autem
378- dolor. Vel minima numquam enim asperiores quae magni soluta a. Corrupti sint
379- sit sunt cum sunt asperiores animi rerum. Consectetur sunt itaque ducimus
380- soluta sed quod qui. Blanditiis alias rem ea. Doloremque nobis voluptas eius
381- occaecati mollitia temporibus enim ut. Quia consequuntur molestias quae modi
382- consequatur eveniet consequuntur.
383+ When run, this program will fill up the screen with pairs of X's. It will
384+ first print each X normally, followed by another X using the same foreground
385+ and background colors, but reversed.\\
383386
384387% ----------------------------------------------------------------------------------------
385388% CHAPTER - Screen Modes
0 commit comments