diff options
Diffstat (limited to 'src/ui/status.vala')
-rw-r--r-- | src/ui/status.vala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ui/status.vala b/src/ui/status.vala new file mode 100644 index 0000000..db33820 --- /dev/null +++ b/src/ui/status.vala @@ -0,0 +1,24 @@ +using Curses; + +public class StatusPanel { + Window win; + + public StatusPanel() { + win = new Window(1, COLS - 2, LINES-1, 1); + win.bkgdset(COLOR_PAIR(2) | Attribute.BOLD); + + win.clrtobot(); + win.refresh(); + } + + public void set(string msg) { + win.mvaddstr(0,1, msg); + win.clrtobot(); + win.refresh(); + } + + public void redraw() { + win.touchwin(); + win.refresh(); + } +} |