-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a "driving mode" to the REPL (#819)
Ctrl+d in the REPL will toggle into "driving mode". In this mode, the arrow keys simply submit predefined commands to the REPL: | Key | REPL input | | --- | --- | | ↑ | `move;` | | ↓ | `turn back;` | | ← | `turn left;` | | → | `turn right;` | This yields a pretty natural driving experience: <a href="https://asciinema.org/a/pZQ7wexMllA5S3v9VrsrdjtsN" target="_blank"><img src="https://asciinema.org/a/pZQ7wexMllA5S3v9VrsrdjtsN.svg" width="640" /></a>
- Loading branch information
Showing
3 changed files
with
96 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters