diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-10-04 18:49:41 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-10-04 18:49:41 +0000 |
| commit | c8cf7bbaa9c6ee1ef312ddebb407f8bb13683210 (patch) | |
| tree | 466f070c42a9be2edabefdefb7f65f4167601797 /src/main.cc | |
| parent | 4f771b084a20758df20d36aea4e62c964f8fc6a0 (diff) | |
Window: add a basic status line
Diffstat (limited to 'src/main.cc')
| -rw-r--r-- | src/main.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index f7165702..19ff9e0f 100644 --- a/src/main.cc +++ b/src/main.cc @@ -123,6 +123,16 @@ void draw_window(Window& window) clrtoeol(); addch('~'); } + move(max_y, 0); + + set_attribute(A_UNDERLINE, 0); + set_attribute(A_REVERSE, 0); + set_attribute(A_BLINK, 0); + set_attribute(A_BOLD, 0); + set_color(Color::Cyan, Color::Black); + + clrtoeol(); + addstr(window.status_line().c_str()); const WindowCoord& cursor_position = window.cursor_position(); move(cursor_position.line, cursor_position.column); |
