diff options
author | Joe <rbo@gmx.us> | 2024-04-09 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-04-09 20:20:20 +0200 |
commit | 3acb6f058d8a4d505535bcf091a0bec008144ef3 (patch) | |
tree | a887ee52bd3628ea0a1b47d4551b6fcd012b0abe /src/i_ui.go | |
parent | qwe (diff) | |
download | hardflip-3acb6f058d8a4d505535bcf091a0bec008144ef3.tar.gz hardflip-3acb6f058d8a4d505535bcf091a0bec008144ef3.tar.bz2 hardflip-3acb6f058d8a4d505535bcf091a0bec008144ef3.tar.xz hardflip-3acb6f058d8a4d505535bcf091a0bec008144ef3.tar.zst hardflip-3acb6f058d8a4d505535bcf091a0bec008144ef3.zip |
cool
Diffstat (limited to '')
-rw-r--r-- | src/i_ui.go | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/i_ui.go b/src/i_ui.go index 37e1912..ea76488 100644 --- a/src/i_ui.go +++ b/src/i_ui.go @@ -679,19 +679,30 @@ func i_ui(data_dir string) { i_draw_insert_panel(data.ui, data.insert) if data.ui.insert_sel_ok == true { switch data.ui.insert_sel { - case 0: + case INS_PROTOCOL: i_prompt_type(data.ui) - case 1, 6: + case INS_SSH_HOST, + INS_SSH_JUMP_HOST, + INS_RDP_HOST: i_prompt_generic(data.ui, "Host/IP: ", false, "") - case 2, 7: + case INS_SSH_PORT, + INS_SSH_JUMP_PORT, + INS_RDP_PORT: i_prompt_generic(data.ui, "Port: ", false, "") - case 3, 8: + case INS_SSH_USER, + INS_SSH_JUMP_USER, + INS_RDP_USER: i_prompt_generic(data.ui, "User: ", false, "") - case 4, 9: + case INS_SSH_PASS, + INS_SSH_JUMP_PASS, + INS_RDP_PASS: i_prompt_generic(data.ui, "Pass: ", true, "") - case 5, 10: + case INS_SSH_PRIV, + INS_SSH_JUMP_PRIV: i_prompt_generic(data.ui, "Private key: ", false, home_dir) + case INS_RDP_DOMAIN: + i_prompt_generic(data.ui, "Domain: ", false, "") } } else if data.insert_err != nil { i_draw_insert_err_msg(data.ui, data.insert_err) |