pterm / pterm

✨ #PTerm is a modern Go module to easily beautify console output. Featuring charts, progressbars, tables, trees, text input, select menus and much more 🚀 It's completely configurable and 100% cross-platform compatible.

Home Page:https://pterm.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request to add callback for area_printer.Update

copydataai opened this issue · comments

Hi, I was trying to implement a callback to InteractiveSelect using the area, so I implemented that in area_printer.Update to every Update in area_printer.

Pull request

Hi, sorry for the late reply. I am not exactly sure, why a callback is needed. Could you please explain, what you were trying to do, that only works with a callback? Thanks!

@MarvinJWendt, it doesn't necessarily have to be implemented how I did. I've been thinking of using channels to communicate the changes and activate a callback.
The problem: I'm using Interactive Select to build altie to make changes with every iteration that the user makes inside the CLI.