From c6835dad70405f0d86d79a59a05a2498a6897be8 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Sun, 4 Aug 2024 12:14:42 -0700 Subject: [PATCH] [tools] Update telnet to nc in qemu.sh The telnet utility seems to have stopped existing on my wsl installation. That's fine, netcat is the more correct tool here anyways. --- qemu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu.sh b/qemu.sh index 43fbbf4..91c1ad7 100755 --- a/qemu.sh +++ b/qemu.sh @@ -41,7 +41,7 @@ while true; do -r | --remote) shift vnchost="${1:-${VNCHOST:-"localhost:5500"}}" - gfx="-vnc ${vnchost},reverse" + gfx="-vnc ${vnchost},reverse=on" vga="" shift ;; @@ -117,13 +117,13 @@ if [[ -n $TMUX ]]; then tmux split-window -h -l $log_width "$debugcon_cmd" tmux last-pane fi - tmux split-window -l 10 "sleep 1; telnet localhost 45454" + tmux split-window -l 10 "sleep 1; nc localhost 45454" fi elif [[ $DESKTOP_SESSION = "i3" ]]; then if [[ -n $debug ]]; then i3-msg exec i3-sensible-terminal -- -e "gdb ${debugtarget}" & else - i3-msg exec i3-sensible-terminal -- -e 'telnet localhost 45454' & + i3-msg exec i3-sensible-terminal -- -e 'nc localhost 45454' & fi fi