Skip to content

Add terminal UI examples using dialog - #38

Merged
gianluca-mascolo merged 1 commit into
mainfrom
dialog-tui
Jan 2, 2026
Merged

gianluca-mascolo merged 1 commit into
mainfrom
dialog-tui

Conversation

@gianluca-mascolo

Copy link
Copy Markdown
Owner

Summary

  • Add otptui.sh: TUI widget displaying OTP code with live countdown timer using dialog --gauge
  • Add otpmenu.sh: interactive menu to select OTP accounts from configuration file
  • Add OTPTUI.md: documentation explaining usage and integration with otpgui scripted mode
  • Add screenshots demonstrating the terminal interface

These example scripts provide a terminal-based alternative to the GTK interface, useful for headless servers, SSH sessions, or environments without a graphical display. They leverage otpgui -i script mode to integrate with dialog for TUI rendering.

Test plan

  • Run ./examples/otptui.sh <label> with a valid OTP label
  • Verify OTP code displays with countdown timer
  • Press 'q' to exit and verify clean termination
  • Run ./examples/otpmenu.sh and select an account from the menu
  • Verify selected account displays in otptui widget

🤖 Generated with Claude Code

Add example scripts that provide a TUI alternative to the GTK interface:
- otptui.sh: displays OTP code with live countdown using dialog gauge
- otpmenu.sh: interactive menu to select OTP account
- OTPTUI.md: documentation with usage instructions
- Screenshots demonstrating the interface

These scripts leverage otpgui's scripted mode (-i script) to integrate
with dialog for terminal-based OTP code generation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gianluca-mascolo
gianluca-mascolo merged commit f4d5af0 into main Jan 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant