diff options
author | Joe <rbo@gmx.us> | 2023-12-19 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-19 20:20:20 +0100 |
commit | 1c25cf8a8c1c5242826efd96d679729de2138ebc (patch) | |
tree | b443f7136f3768154b6c7e7f481d200a17767435 | |
parent | up (diff) | |
download | hardflip-1c25cf8a8c1c5242826efd96d679729de2138ebc.tar.gz hardflip-1c25cf8a8c1c5242826efd96d679729de2138ebc.tar.bz2 hardflip-1c25cf8a8c1c5242826efd96d679729de2138ebc.tar.xz hardflip-1c25cf8a8c1c5242826efd96d679729de2138ebc.tar.zst hardflip-1c25cf8a8c1c5242826efd96d679729de2138ebc.zip |
ye
Diffstat (limited to '')
-rw-r--r-- | c_defs.go | 7 | ||||
-rw-r--r-- | i_ui.go | 5 |
2 files changed, 9 insertions, 3 deletions
@@ -50,4 +50,11 @@ package main const ( W = 0 H = 1 + KEYS_HINTS = ` +(q)uit - +[x](a)dd/(i)nsert host - +[x](e)dit - +[x](d)elete - +[x](s)earch - +[x](?) help` ) @@ -106,13 +106,12 @@ func i_bottom_text(s tcell.Screen, t [2]int) { style := tcell.StyleDefault. Background(tcell.ColorReset). Foreground(tcell.ColorGrey) - keys_hint := "(q)uit - (a)dd/(i)nsert host - (e)dit - (s)earch - (?) help" spaces := "" - for i := 0; i < (t[W]) - len(keys_hint); i++ { + for i := 0; i < (t[W]) - len(KEYS_HINTS); i++ { spaces += " " } - i_draw_text(s, 0, t[H] - 1, t[W], t[H] - 1, style, spaces + keys_hint) + i_draw_text(s, 0, t[H] - 1, t[W], t[H] - 1, style, spaces + KEYS_HINTS) } func i_draw_zhosts_box(s tcell.Screen, t [2]int, def_style tcell.Style) { |