Skip to content

Example Basic

github-actions[bot] edited this page Jul 18, 2026 · 3 revisions

Example: Basic

Goal: See a welcome message, a framed box, and activate a button.

Setup

  1. Board with USB serial.
  2. Upload BasicExample.
  3. Open a terminal at 9600 baud (terminal guide).

What you should see

  • Yellow: Welcome to ANSITerm!
  • A white box with a short green caption inside
  • A cyan Click Me! button
  • A hint line: activate with mouse, Enter, or Space

How to interact

Action Result
Press Enter or Space Screen clears; shows Button clicked!
Mouse click on the button (if supported) Same

Tips

  • If boxes look like garbage characters, enable UTF-8 in the terminal.
  • If nothing happens when you click, use Enter/Space — many serial terminals do not send mouse events.
  • Unplug/replug USB on some boards redraws the main screen automatically.

When to move on

Once this works, open Buttons to learn keyboard navigation between controls.

Screenshot: BasicExample

Welcome UI; motion shows mouse click then Button clicked!

BasicExample static

Interaction preview (emulated keys / mouse / Wi‑Fi)

BasicExample motion

Clone this wiki locally