Tools: update run_in_terminal_window.sh
Remove the TERM variable dependency
This commit is contained in:
parent
7e8a69d2b7
commit
20a23d8bf2
@ -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 && $* "'"'
|
||||
|
Loading…
Reference in New Issue
Block a user