-
Notifications
You must be signed in to change notification settings - Fork 0
Keyboard and Mouse
Nick Tracy edited this page Jul 18, 2026
·
1 revision
Newer examples read:
- Arrow keys — move a highlight
- Enter — activate
- Space — often an alternate activate key
- Letters — game controls (WASD) or menu shortcuts (W/S, J/K on the ESP dashboard)
If arrows do nothing:
- Click inside the terminal window so it has focus.
- Confirm you are not in a mode where the terminal captures arrows for scrolling.
- Try Enter/Space — some demos accept those even when arrows fail.
ANSITerm can listen for SGR mouse reports (a common xterm feature). When it works, clicking a drawn button feels natural.
- Some network/telnet clients
- Full-featured terminal emulators with mouse reporting enabled
- PuTTY connected to a serial COM port
- Many simple serial monitors
That is why Examples such as Basic, Advanced, Buttons, and ANS files also accept keyboard activation.
A full mouse click sends a press and a release. ANSITerm treats them separately so a single click does not fire your action twice. Sketches typically react to press only.
| Goal | Do this |
|---|---|
| Reliable demos for workshops | Design for keyboard first |
| Kiosk / desktop telnet UI | Enable mouse in the client and test clicks |
| Games | Turn mouse reporting off if unused (Graphic) |
ANSITerm is open source under the LGPL-3.0 license. · Repository · Issues