Annotation of hatari/tools/hconsole/example-commands, revision 1.1

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: #
        !             6: # I.e. specify TOS image for Hatari and exit after the the input file.
        !             7: #
        !             8: # For more fun, use also Hatari's --bios-intercept option. :-)
        !             9: 
        !            10: # wait for TOS to boot
        !            11: sleep 3
        !            12: 
        !            13: # Note: keypress/down/up commands take either one character or
        !            14: # a multidigit key scancode.  Scancodes need to be used for keys
        !            15: # that produce non-alphanumeric characters (white space would
        !            16: # even get stripped by command processing).
        !            17: #
        !            18: # Scancodes for special keys:
        !            19: # - Tab: 15
        !            20: # - Return: 28
        !            21: # - Enter: 114
        !            22: # - Space: 57
        !            23: # - Delete: 83
        !            24: # - Backspace: 14
        !            25: # - Escape: 0x1
        !            26: # - Control: 29
        !            27: # - Alternate: 56
        !            28: # - Left Shift: 42
        !            29: # - Right Shift: 54
        !            30: # - Caps Lock: 53
        !            31: # - Insert: 82
        !            32: # - Home: 71
        !            33: # - Help: 98
        !            34: # - Undo: 97
        !            35: # - Cursor Up: 72
        !            36: # - Cursor Down: 80
        !            37: # - Cursor Left: 75
        !            38: # - Cursor Right: 77
        !            39: 
        !            40: # Invoke EmuCON with ^Z: Control down, press Z, Control up
        !            41: keydown 29
        !            42: keypress Z
        !            43: keyup 29
        !            44: 
        !            45: # press Return
        !            46: keypress 28
        !            47: # and output some text to EmuTOS console
        !            48: 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.