tell users to press ctrl+D to exit
This commit is contained in:
parent
d10eb7b944
commit
a6e8850ae3
1
func.sh
1
func.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue