diff options
author | Joe <rbo@gmx.us> | 2024-01-08 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-08 20:20:20 +0100 |
commit | 249846c819a5f68ec58080f000ce8ab108e7b568 (patch) | |
tree | c5b1acbae17f74975513e24cb9c984d2ab95ee4f /i_ui.go | |
parent | coolio (diff) | |
download | hardflip-249846c819a5f68ec58080f000ce8ab108e7b568.tar.gz hardflip-249846c819a5f68ec58080f000ce8ab108e7b568.tar.bz2 hardflip-249846c819a5f68ec58080f000ce8ab108e7b568.tar.xz hardflip-249846c819a5f68ec58080f000ce8ab108e7b568.tar.zst hardflip-249846c819a5f68ec58080f000ce8ab108e7b568.zip |
cool
Diffstat (limited to 'i_ui.go')
-rw-r--r-- | i_ui.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_ui.go - * Mon Jan 08 11:37:32 2024 + * Mon Jan 08 12:18:01 2024 * Joe * * interfacing with the user @@ -139,7 +139,6 @@ func i_draw_box(s tcell.Screen, x1, y1, x2, y2 int, title string, fill bool) { } func i_bottom_text(ui HardUI) { - spaces := "" text := "" switch ui.mode { @@ -148,12 +147,13 @@ func i_bottom_text(ui HardUI) { case DELETE_MODE: text = DELETE_KEYS_HINTS } - for i := 0; i < (ui.dim[W]) - len(text); i++ { - spaces += " " - } i_draw_text(ui.s, 0, ui.dim[H] - 1, ui.dim[W], ui.dim[H] - 1, - ui.def_style.Dim(true), spaces + text) + ui.def_style.Dim(true), text) + text = " " + VERSION + i_draw_text(ui.s, + ui.dim[W] - 5, ui.dim[H] - 1, ui.dim[W], ui.dim[H] - 1, + ui.def_style.Dim(true), text) } func i_draw_zhosts_box(ui HardUI) { |