tell users to press ctrl+D to exit

This commit is contained in:
Michael Moon 2011-02-11 12:00:19 +11:00
parent d10eb7b944
commit a6e8850ae3
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ mendel_talk() {
if ps | grep 'cat$' >/dev/null; then if ps | grep 'cat$' >/dev/null; then
skip_kill_cat=1 skip_kill_cat=1
fi fi
echo "press ctrl+D to exit"
( cat <&3 & cat >&3; kill $! ; ) 3<>/dev/arduino ( cat <&3 & cat >&3; kill $! ; ) 3<>/dev/arduino
# You're supposed to use "^D" to exit. If somebody uses "^C" instead, # You're supposed to use "^D" to exit. If somebody uses "^C" instead,
# it leaves the "cat" process connected between the terminal and /dev/arduino # it leaves the "cat" process connected between the terminal and /dev/arduino