1234567891011121314151617181920 |
- #!/bin/sh
- #rxvt does not understand the '-hold' option.
- #urxvt 20120214
- if [ "`echo -n ${*} | grep '\-hold '`" != "" ];then
- EXECCOMMAND="`echo -n ${*} | grep -o ' \-e .*' | sed -e 's/ \-e //'`"
- if [ "$EXECCOMMAND" != "" ];then
- echo '#!/bin/sh' > /tmp/xterm_simulate_hold.sh
- echo "$EXECCOMMAND" >> /tmp/xterm_simulate_hold.sh
- echo 'echo' >> /tmp/xterm_simulate_hold.sh
- echo 'echo -n "FINISHED. PRESS ENTER KEY TO CLOSE THIS WINDOW: "' >> /tmp/xterm_simulate_hold.sh
- echo 'read simuldone' >> /tmp/xterm_simulate_hold.sh
- chmod +x /tmp/xterm_simulate_hold.sh
- exec urxvt -e /tmp/xterm_simulate_hold.sh
- fi
- fi
- exec urxvt "${@}"
- #!/bin/sh
|