Settings

Theme

Show HN: PTerm – Go module to beautify terminal output with interactive menus

pterm.sh

39 points by MarvinJWendt 4 years ago · 4 comments

Reader

Reubensson 4 years ago

Are you able to create terminal forms with multiple fields at the same time? I tried to look at the examples, but they all had single widget at a time. I used https://github.com/charmbracelet/bubbletea on one project, but it felt quite cumbersome to create forms with validation, multiple pages and states etc.

pbronez 4 years ago

Interesting that the website claims this is a “TUI” framework. In my mind, TUI means full screen, interactive terminal applications. This library seems focused on readable printing. The GitHub shows a full screen live timer, but there’s no obvious discussion of layouts, widgets, etc.

yessirwhatever 4 years ago

`putils` is not available yet, but your main first example uses it. The docs generally are very lacking.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection