[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.
This commit is contained in:
Justin C. Miller
2024-08-04 12:14:42 -07:00
parent e7fa1dde97
commit c6835dad70

View File

@@ -41,7 +41,7 @@ while true; do
-r | --remote) -r | --remote)
shift shift
vnchost="${1:-${VNCHOST:-"localhost:5500"}}" vnchost="${1:-${VNCHOST:-"localhost:5500"}}"
gfx="-vnc ${vnchost},reverse" gfx="-vnc ${vnchost},reverse=on"
vga="" vga=""
shift shift
;; ;;
@@ -117,13 +117,13 @@ if [[ -n $TMUX ]]; then
tmux split-window -h -l $log_width "$debugcon_cmd" tmux split-window -h -l $log_width "$debugcon_cmd"
tmux last-pane tmux last-pane
fi fi
tmux split-window -l 10 "sleep 1; telnet localhost 45454" tmux split-window -l 10 "sleep 1; nc localhost 45454"
fi fi
elif [[ $DESKTOP_SESSION = "i3" ]]; then elif [[ $DESKTOP_SESSION = "i3" ]]; then
if [[ -n $debug ]]; then if [[ -n $debug ]]; then
i3-msg exec i3-sensible-terminal -- -e "gdb ${debugtarget}" & i3-msg exec i3-sensible-terminal -- -e "gdb ${debugtarget}" &
else else
i3-msg exec i3-sensible-terminal -- -e 'telnet localhost 45454' & i3-msg exec i3-sensible-terminal -- -e 'nc localhost 45454' &
fi fi
fi fi