Open dmacvicar opened 9 years ago
Hi dmacvicar,
This feature can be implemented manually (Par
+ dynamically calculating height
, troublesome though). I am working on another branch, so all the new widgets are scheduled behind that.
Bottom bar is a very useful part, I will keep this in mind.
May be there is something I get wrong, but how one would fix it position to the bottom?
Right now the width is dynamic with the grid, but the height of widgets seem to be fixed unless I am missing something.
For now height value has to be assigned by the user (otherwise grid wont know how to set height for each row). You can use termui.TermHeight
to get current height value and set it accordingly when Resize
events happen.
+1
I'm also trying to achieve this for an UrbanDictionary CLI but can't get it working since I use https://github.com/pkg/term for handling input characters to use the arrow keys and q for quit. What I would like is either to be able to disable the built in "any character exits" functionality or have a more extensive character input system built into termui removing the pkg/term
dependency.
This happens to be what I'd display in termui status bar.
Definition #1 for yo +4840 -1266 [Use arrow keys to cycle and q to quit]
I see in examples the following listening channel, can it be used to capture user input somehow?
<-termui.EventCh()
I am using your nice library for a dashboard and one feature I am missing a lot if the ability to have a single 1-character status bar at the bottom (like tmux) to show some help, hot-keys, etc.
I may be able to send a patch myself, but until I dig into it, I track it here.