// Keep prompting until the user presses the q key
for {
if var == 'q' {
break
} else {
var = os.input('press q to quit: ')
}
}
}
```
This simple program covers many of the principal aspects of the `term ` module.
# API
Here are some functions you should be aware of in the `term `module:
```v
// returns the height and the width of the terminal
term.get_terminal_size() (width, height)
// returns the string as green text to be printed on stdout
term.ok_message(string)
// returns the string as red text to be printed on stdout
term.fail_message(string)
// returns the string as yellow text to be printed on stdout
term.warning_message(string)
//clears the entire terminal and leaves a blank one
term.clear()
// colors the output of the output, the available colors are: black,blue,yellow,green,cyan,gray,bright_blue,bright_green,bright_red,bright_black,bright_cyan
term.<color>(string)
// transforms the given string into bold text
term.bold(string)
// puts a strikethrough into the given string
term.strikethrough(string)
// underlines the given string
term.underline(string)
// colors the background of the outup following the given color, the available colors are: black,blue,yellow,green,cyan,gray
term.bg_<color>(string)
// sets the position of the cursor at a given place in the terminal