TransIT AI

How-tos

Turn on syntax highlighting

Syntax highlighting colorizes keywords and status words in the terminal output as a device emits them. Off by default; toggle is per-device so it’s on for the lab gear you care about and off for everything else.

Steps

There are two places to flip the toggle:

When adding a new device

  1. Open the new-device dialog (sidebar + button).
  2. Fill in the device fields.
  3. Tick Syntax highlighting at the bottom of the form.
  4. Click Save.

On an existing device

  1. Right-click the device row in the sidebar.
  2. Pick Edit device….
  3. Tick Syntax highlighting.
  4. Click Save. The change takes effect on the next line of output — no reconnect needed.

A small “syntax highlighting” badge appears in the pane header when this device has highlighting on.

What gets highlighted

  • Interface / link state words: up, down, administratively down.
  • Protocol state: established, idle, active.
  • BGP / OSPF state.
  • MAC addresses, IPv4 addresses (in some contexts).
  • Generic positive / negative tokens (enabled, disabled, permit, deny).

The patterns are vendor-agnostic in v1. Per-vendor packs (Cisco BGP state shapes, Junos commit complete, etc.) are a follow-up.

When highlighting auto-bypasses

Full-screen programs like vi, less, top, htop, tmux need precise control over the terminal — colorizing their output would garble them. Highlighting auto-bypasses while the device is in the alternate screen (the standard ANSI sequence \x1b[?1049h that those programs send to take over the terminal). The pane header’s badge stays visible but the highlighter is a no-op until the alt screen is exited.