Tools: update run_in_terminal_window.sh

Remove the TERM variable dependency
This commit is contained in:
Ashwin Nambiar 2024-05-21 15:54:20 +10:00 committed by Peter Barker
parent 7e8a69d2b7
commit 20a23d8bf2

View File

@ -28,7 +28,7 @@ if [ -n "$SITL_RITW_TERMINAL" ]; then
printf "%q " "$@" >>"$FILEPATH"
chmod +x "$FILEPATH"
$SITL_RITW_TERMINAL "$FILEPATH" &
elif [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; then
elif [ -n "$TMUX" ]; then
tmux new-window -dn "$name" "$*"
elif [ -n "$DISPLAY" -a -n "$(which osascript)" ]; then
osascript -e 'tell application "Terminal" to do script "'"cd $(pwd) && clear && $* "'"'