# This is an example hconsole input file
#
# You can try it with something like this:
#   hconsole.py example-commands --exit -- --tos etos512k.img
#
# I.e. specify EmuTOS image for Hatari and exit after the the input file.
#
# For more fun, use also Hatari's "--conout 2". :-)

# without this EmuTOS boot takes 10s more
setopt --fastfdc on --fast-forward on

# wait for EmuTOS to boot
sleep 3

# boot done, back to normal
setopt --fastfdc off --fast-forward off

# Note: keypress/down/up commands take either one character or
# a multidigit key scancode.  Scancodes need to be used for keys
# that produce non-alphanumeric characters (white space would
# even get stripped by command processing).
#
# Scancodes for special keys:
# - Tab: 15
# - Return: 28
# - Enter: 114
# - Space: 57
# - Delete: 83
# - Backspace: 14
# - Escape: 0x1
# - Control: 29
# - Alternate: 56
# - Left Shift: 42
# - Right Shift: 54
# - Caps Lock: 53
# - Insert: 82
# - Home: 71
# - Help: 98
# - Undo: 97
# - Cursor Up: 72
# - Cursor Down: 80
# - Cursor Left: 75
# - Cursor Right: 77

# Invoke EmuCON with ^Z: Control down, press Z, Control up
keydown 29
keypress Z
keyup 29

# press Return
keypress 28
# and output some text to EmuTOS console
text Welcome to 'hconsole' example...
