Browse Source

Change simulation stepping key to ctrl+f

master
cancel 6 years ago
parent
commit
b89be487f9
  1. 3
      README.md
  2. 2
      tui_main.c

3
README.md

@ -65,7 +65,8 @@ Run the interactive terminal UI, useful for debugging or observing behavior. Pas
- `ctrl+q`: quit - `ctrl+q`: quit
- Arrow keys or `ctrl+h/j/k/l`: move cursor - Arrow keys or `ctrl+h/j/k/l`: move cursor
- `A`-`Z`, `a`-`z`, `0`-`9`, and other printable characters: write character to grid at cursor - `A`-`Z`, `a`-`z`, `0`-`9`, and other printable characters: write character to grid at cursor
- Spacebar: step the simulation one tick - Spacebar: play or pause
- `ctrl+f`: step the simulation one tick forward
- `ctrl+u`: undo - `ctrl+u`: undo
- return or enter: change into or out of overwrite/append mode - return or enter: change into or out of overwrite/append mode
- `/`: change into or out of key-trigger mode (for the `!` operator) - `/`: change into or out of key-trigger mode (for the `!` operator)

2
tui_main.c

@ -721,7 +721,7 @@ int main(int argc, char** argv) {
input_mode = Tui_input_mode_piano; input_mode = Tui_input_mode_piano;
} }
break; break;
case AND_CTRL(' '): case AND_CTRL('f'):
undo_history_push(&undo_hist, &field, tick_num); undo_history_push(&undo_hist, &field, tick_num);
orca_run(field.buffer, markmap_r.buffer, field.height, field.width, orca_run(field.buffer, markmap_r.buffer, field.height, field.width,
tick_num, &bank, piano_bits); tick_num, &bank, piano_bits);

Loading…
Cancel
Save