aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_ui.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-03-01 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-03-01 20:20:20 +0100
commitb56388dde593f09c03addbe65093289c1b70d1e6 (patch)
tree14931b9eb6cfd0a3e5317c04527a86915519e4ae /src/i_ui.go
parentcommit (diff)
downloadhardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.gz
hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.bz2
hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.xz
hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.zst
hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.zip
qwe
Diffstat (limited to 'src/i_ui.go')
-rw-r--r--src/i_ui.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/i_ui.go b/src/i_ui.go
index f52a3bc..31cc6bb 100644
--- a/src/i_ui.go
+++ b/src/i_ui.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/i_ui.go
- * Tue Feb 27 14:31:52 2024
+ * Fri Mar 01 15:27:17 2024
* Joe
*
* interfacing with the user
@@ -372,7 +372,7 @@ func i_prompt_type(ui HardUI) {
ui.s.ShowCursor(len(text), ui.dim[H] - 1)
}
-func i_prompt_generic(ui HardUI, prompt string, secret bool) {
+func i_prompt_generic(ui HardUI, prompt string, secret, file bool) {
i_draw_text(ui.s,
1, ui.dim[H] - 1, ui.dim[W] - 1, ui.dim[H] - 1,
ui.style[DEF_STYLE], prompt)
@@ -643,16 +643,16 @@ func i_ui(data_dir string) {
switch data.ui.insert_sel {
case 0:
i_prompt_type(data.ui)
- case 1:
- i_prompt_generic(data.ui, "Host/IP: ", false)
+ case 1, 6:
+ i_prompt_generic(data.ui, "Host/IP: ", false, false)
case 2:
- i_prompt_generic(data.ui, "Port: ", false)
+ i_prompt_generic(data.ui, "Port: ", false, false)
case 3:
- i_prompt_generic(data.ui, "User: ", false)
+ i_prompt_generic(data.ui, "User: ", false, false)
case 4:
- i_prompt_generic(data.ui, "Pass: ", true)
+ i_prompt_generic(data.ui, "Pass: ", true, false)
case 5:
- i_prompt_generic(data.ui, "Private key: ", false)
+ i_prompt_generic(data.ui, "Private key: ", false, true)
}
}
}