To underline text when printed on screen like this, use the UNDER instructions, as follows:
E> Under On : Print "This is where we draw the line" Under Off: "That is groundless"
In Section 11.1 there is a full explanation of how to take advantage of any number of different type faces or fonts, by making use of what is known as "graphic text". For the time being, try the next example:
E> Cls: For S=0 To 7: Set Text S Text 100,S*20+20,AMOS Professional" : Next S
SET TEXT
instruction: set the style of a text font
Set Text style number
The SET TEXT command allows you to change the style of a font by selecting one of eight different styles that are produced by mixing the following three elements
Bit 0 Underline Bit 1 Bold Bit 2 Italic
Set the appropriate bits in the form of a style number from 0 to 7, as in the last example.
TEXT STYLES
function: return current text style
s=Text Styles
This function returns the index reference of the text style you last selected using SET TEXT. The result is a bit-map in the same format as explained above:
Set Text 2: Print "Style Two" Print Text Styles
Changing the text mode
For even more flexibility in presenting your text on screen, you can select the way it is combined
with other screen data.
WRITING
instruction: select text writing mode of subsequent text
Writing value1
Writing value1,optional value2
The WRITING command is used to control how the subsequent text interacts with what is already on the screen, and it can be followed by either one or two values.