|
|
1.1 root 1: # This is an example hconsole input file
2: #
3: # You can try it with something like this:
4: # hconsole.py example-commands --exit -- --tos etos512k.img
5: #
1.1.1.2 ! root 6: # I.e. specify EmuTOS image for Hatari and exit after the the input file.
1.1 root 7: #
8: # For more fun, use also Hatari's --bios-intercept option. :-)
9:
1.1.1.2 ! root 10: # without this EmuTOS boot takes 10s more
! 11: setopt --fastfdc on
! 12:
! 13: # wait for EmuTOS to boot
! 14: sleep 5
1.1 root 15:
16: # Note: keypress/down/up commands take either one character or
17: # a multidigit key scancode. Scancodes need to be used for keys
18: # that produce non-alphanumeric characters (white space would
19: # even get stripped by command processing).
20: #
21: # Scancodes for special keys:
22: # - Tab: 15
23: # - Return: 28
24: # - Enter: 114
25: # - Space: 57
26: # - Delete: 83
27: # - Backspace: 14
28: # - Escape: 0x1
29: # - Control: 29
30: # - Alternate: 56
31: # - Left Shift: 42
32: # - Right Shift: 54
33: # - Caps Lock: 53
34: # - Insert: 82
35: # - Home: 71
36: # - Help: 98
37: # - Undo: 97
38: # - Cursor Up: 72
39: # - Cursor Down: 80
40: # - Cursor Left: 75
41: # - Cursor Right: 77
42:
43: # Invoke EmuCON with ^Z: Control down, press Z, Control up
44: keydown 29
45: keypress Z
46: keyup 29
47:
48: # press Return
49: keypress 28
50: # and output some text to EmuTOS console
51: text Welcome to 'hconsole' example...
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.