diff options
author | Joe <rbo@gmx.us> | 2024-05-02 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-05-02 20:20:20 +0200 |
commit | 2f20bfedc4394301af9613e44bfe305b701ee12f (patch) | |
tree | eab2bc5da8de0555173d99f097d469af2bda4984 /src/i_info.go | |
parent | quick weird bugfix (diff) | |
download | hardflip-2f20bfedc4394301af9613e44bfe305b701ee12f.tar.gz hardflip-2f20bfedc4394301af9613e44bfe305b701ee12f.tar.bz2 hardflip-2f20bfedc4394301af9613e44bfe305b701ee12f.tar.xz hardflip-2f20bfedc4394301af9613e44bfe305b701ee12f.tar.zst hardflip-2f20bfedc4394301af9613e44bfe305b701ee12f.zip |
sshcmd
Diffstat (limited to 'src/i_info.go')
-rw-r--r-- | src/i_info.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i_info.go b/src/i_info.go index a5860f3..442a828 100644 --- a/src/i_info.go +++ b/src/i_info.go @@ -149,6 +149,15 @@ func i_info_ssh(ui HardUI, host *HostNode, line int) int { if line += 1; line > ui.dim[H] - 3 { return line } } if line += 1; line > ui.dim[H] - 3 { return line } + if len(host.Exec) > 0 { + i_draw_text(ui.s, + (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line, + ui.style[TITLE_STYLE], "Command: ") + i_draw_text(ui.s, + (ui.dim[W] / 3) + 12, line, ui.dim[W] - 2, line, + ui.style[DEF_STYLE], host.Exec) + if line += 2; line > ui.dim[H] - 3 { return line } + } // jump if len(host.Jump.Host) > 0 { i_draw_text(ui.s, |