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

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