Skip to content

Commit

Permalink
Tools: update run_in_terminal_window.sh
Browse files Browse the repository at this point in the history
Remove the TERM variable dependency
  • Loading branch information
Silipwn authored and peterbarker committed May 21, 2024
1 parent 7e8a69d commit 20a23d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/autotest/run_in_terminal_window.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 && $* "'"'
Expand Down

0 comments on commit 20a23d8

Please sign in to comment.