console message

Displays some characters on the console. The 'message' may contain several values that will be concatenated. The 'eol' identifier can be used to add an end of line to the message.

All other functions are defined in ansi_terminal.pli module.

function console_move x y
  arg Int x y

Selects the point where 'console' instruction is going to write next.

function keyboard_readchar -> c
  arg Int c

Reads one character from the keyboard.These are the predefined constants for special characters:
keyboard_break
keyboard_rubout
keyboard_enter
keyboard_insert
keyboard_delete
keyboard_up
keyboard_down
keyboard_left
keyboard_right

function keyboard_input prompt -> s
  arg Str prompt s

displays the prompt, then waits for the user to enter a full line.