Skip to content

user guide terminal setup

github-actions[bot] edited this page Oct 28, 2026 · 53 revisions

Terminal setup (fonts and colors)

Solomon is a terminal application: it writes text and ANSI styling to stdout. Your terminal emulator chooses the font, size, and ligatures — Solomon cannot change those from code or from config.toml.

Font (required)

Use a monospace font in your terminal settings. Proportional fonts break alignment of the welcome banner, tool output, and REPL prompt.

Turn off ligatures in the terminal font settings (or pick a “Mono” variant without ligatures). Ligatures merge character sequences (e.g. =>, !=) into single glyphs and can make copied text and layout misleading in a CLI.

Suggested fonts by platform

Platform Examples
Windows Cascadia Mono, Consolas, JetBrains Mono
macOS SF Mono, JetBrains Mono, Menlo
Linux JetBrains Mono, Fira Code Mono, DejaVu Sans Mono, Ubuntu Mono

Solomon does not verify or enforce a font name at runtime.

Emoji and symbols

Assistant and tool output may include emoji or Unicode symbols. Solomon does not adjust grapheme width or alignment for them. Minor visual misalignment is expected and does not affect chat content or persistence.

Custom welcome logo

Create ~/.solomon/banner/ascii/logo.txt to replace the crown in the terminal welcome banner, without source code or recompilation. If SOLOMON_HOME is set, put the file in the same banner/ascii/ subdirectory of that root instead. Solomon creates the banner/ascii/ and banner/colors/ directories when loading the welcome logo. The file is read whenever a welcome banner is printed. Removing it restores the embedded crown. The application icon is unchanged.

Use UTF-8 text with LF or CRLF line endings. ASCII, Braille, and other printable Unicode characters are supported. Limits are 160 terminal cells per row, 64 rows, and 64 KiB. Empty drawings, invalid UTF-8, tabs, ANSI escapes, and other terminal control characters are rejected; Solomon uses its default crown if the file is missing, unreadable, or invalid.

For example:

 /\
/__\
SOLOMON

The logo is monochrome by default. For colors, add ~/.solomon/banner/colors/colors.txt with the same number of rows and one whitespace-separated six-digit RGB hex value per Unicode code point, including spaces (no # prefix). A combining-character or emoji sequence uses the color of its first code point. For a row ABC, use FF0000 00FF00 0000FF. The color file is limited to 256 KiB. A present but invalid or unreadable color file restores the default crown and its colors; delete the color file to use a monochrome custom drawing. Custom colors receive the same saturation and contrast adjustment as the crown and respect the terminal's color settings.

The banner follows the drawing's width and height. On narrow terminals it clips the logo to its column and abbreviates the information text, keeping the frame within the available width. It does not scale the drawing or redraw an already printed banner when the terminal window is resized.

Colors

Styling is handled by internal/termcolor on top of lipgloss and termenv. The palette is fixed for dark backgrounds; there is no light-theme mode.

When output is plain (no ANSI colors)

Colors are disabled when any of the following applies:

Condition Effect
stdout is not a TTY (pipe, redirect, capture) Plain text only
NO_COLOR is set to any value Plain
CLICOLOR=0 Plain
solomon exec --no-color … Plain (also sets NO_COLOR for child tools)

Piping overrides FORCE_COLOR: redirected stdout never receives color codes from Solomon.

Interactive REPL on a real terminal uses colors when none of the disable rules above apply.

Machine-readable runs

With solomon exec --json or --jsonl, stdout is JSON. Use a pipe or --no-color if you need to guarantee no escape sequences on stdout. Diagnostics go to stderr.

Logo and REPL input

The Braille welcome logo uses the same color policy as the rest of the UI (including downgrade on limited terminals). In the interactive REPL, Solomon owns the multiline editor and redraws the prompt block directly with ANSI cursor movement.

Multiline input (interactive REPL)

The REPL prompt uses a Solomon-owned raw-mode editor instead of delegating the main input buffer to readline. This allows editing a message as a real multiline buffer.

Key / action Behavior
Enter Submit the current message.
Alt+Enter / Ctrl+Enter Insert a newline when the terminal sends a distinguishable modified-Enter sequence. Some terminals send the same bytes as Enter, so this is terminal-dependent.
Arrow Up / Arrow Down Move between lines inside the current message. On the first line, Up loads previous history; on the last line, Down advances history.
Arrow Left / Arrow Right Move horizontally; image tags are treated as a single logical unit.
Backspace / Delete Edit the current buffer; Backspace at the start of a line joins it with the previous line.
Paste text Bracketed paste inserts multiline text into the current message without submitting it.
Paste image Ctrl+V when the clipboard holds an image (raw-mode editor; Windows banner also hints this). Inserts an [img-N] tag.
@ file/folder Type @ plus a name fragment to open a path picker under the prompt; Tab, Enter, or arrow keys select a match. Inserts the shortest unique @path tag (plain text, no SHA). Arrow Left/Right and Backspace/Delete treat each tag as one unit. On send, file or folder content is expanded for the model (visible transcript keeps the short tags).

Tab completion (interactive REPL)

While the REPL prompt is active, Solomon runs its own line editor in raw mode. The Tab key is handled inside Solomon (not by bash, zsh, or PowerShell tab completion on the host shell). This applies in Terminal.app, Ghostty, GNOME Terminal, Konsole, Windows Terminal, and other VT-style emulators.

Key / action Behavior
Tab Complete / slash names and skill tokens; slash arguments (e.g. /reasoning, /log, /add, /remove, /resume, /goto); @ workspace paths (files and directories under the project root, shortest unique tag on full select); on shell lines (!… or shell-first): PATH binaries on command tokens (including after |, ||, &&, ;), go subcommands (from go help) as the second token after go, and workspace paths (relative under the project, ~/… home, or other absolute paths; quoted paths, \ escapes, \ or / separators) on file-like tokens.
Tab again Cycle or list candidates when more than one match remains.
Ctrl+C Cancel an open completion menu (same as canceling other readline modes).

Set SOLOMON_NO_COMPLETE=1 to disable REPL tab completion (Tab then does nothing useful beyond readline’s default bell).

On Windows, prefer Windows Terminal (WT_SESSION) for reliable input; legacy conhost may still work but Quick Edit and mouse selection can interfere with the line editor.

Manual QA checklist (after changes to completion)

  1. /mo + Tab → completes toward /models.
  2. Double Tab on a partial / command shows a candidate list.
  3. /reasoning l + Tab → completes toward low.
  4. !go te + Tab → completes toward test.
  5. !g + Tab → offers PATH matches (e.g. go, git when on PATH).
  6. Buffer containing [img-1] + Tab does not corrupt the tag display.
  7. Smoke-test on at least: macOS Terminal or Ghostty, one Linux terminal, Windows Terminal.

See also

Clone this wiki locally