UI Dialogs

SolidGroundUX DocumentationSolidGroundUX
NL

Provide dialog-style user interaction helpers

Source: target-root/usr/local/lib/solidgroundux/common/ui-dlg.sh

Provide dialog-style user interaction helpers

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_dlg_keymapBuild a readable key legend for a dialog choice set.- $1 — encoded dialog choices; optional $2: paused flag.Prints labels for enabled keys.

Description

Implements dialog-oriented interaction patterns for console applications.

The library:

  • Provides higher-level dialog constructs built on top of ui-ask
  • Supports timed prompts with auto-continue behavior
  • Normalizes user responses into consistent action tokens
  • Enables structured interaction flows such as confirmations and selections
  • Integrates with UI rendering for consistent look and feel

Design principles

  • Build on top of primitive input helpers (ui-ask)
  • Normalize interaction results for predictable scripting
  • Keep dialogs lightweight and composable
  • Support both interactive and semi-automated scenarios

Role in framework

  • Intermediate interaction layer between raw input (ui-ask) and applications
  • Used by scripts requiring structured or timed user decisions

Non-goals

  • Full-screen or TUI-style dialog systems
  • Complex workflow/state engines
  • Persistent dialog sessions

Helpers

Reserved keys are matched case-insensitively.