mirror of https://github.com/ArduPilot/ardupilot
Tools: tag run-in-terminal-window output with RiTW:
This commit is contained in:
parent
909f7779c7
commit
c23ee3d35c
|
@ -5,7 +5,7 @@
|
||||||
# Sigh: theres no common way of handling command line args :-(
|
# Sigh: theres no common way of handling command line args :-(
|
||||||
name="$1"
|
name="$1"
|
||||||
shift
|
shift
|
||||||
echo "Starting $name : $*"
|
echo "RiTW: Starting $name : $*"
|
||||||
# default to xterm as it has the most consistent options and can start minimised
|
# default to xterm as it has the most consistent options and can start minimised
|
||||||
if [ -n "$DISPLAY" -a -n "$(which osascript)" ]; then
|
if [ -n "$DISPLAY" -a -n "$(which osascript)" ]; then
|
||||||
osascript -e 'tell application "Terminal" to do script "'"$* "'"'
|
osascript -e 'tell application "Terminal" to do script "'"$* "'"'
|
||||||
|
@ -20,7 +20,7 @@ elif [ -n "$STY" ]; then
|
||||||
screen -X screen -t "$name" $*
|
screen -X screen -t "$name" $*
|
||||||
else
|
else
|
||||||
filename="/tmp/$name.log"
|
filename="/tmp/$name.log"
|
||||||
echo "Window access not found, logging to $filename"
|
echo "RiTW: Window access not found, logging to $filename"
|
||||||
cmd="$1"
|
cmd="$1"
|
||||||
shift
|
shift
|
||||||
# the following "true" is to avoid bash optimising the following call
|
# the following "true" is to avoid bash optimising the following call
|
||||||
|
|
Loading…
Reference in New Issue