File:  [HATARI the Atari ST Emulator] / hatari / tools / hconsole / example-commands
Revision 1.1.1.4 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 9 08:54:52 2019 UTC (7 years, 3 months ago) by root
Branches: hatari, MAIN
CVS tags: hatari02210, hatari02200, hatari02100, hatari02000, hatari01900, hatari01800, HEAD
hatari 1.8.0

# 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...

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.