☰
Debian Codegraph
@
0.13.0-1
0.10.2-3
/
/
examples
/
example.sh
☽
☼
examples/example.sh
code
plain
raw
1
#!/bin/sh
2
3
old_tty_settings=$(stty -g)
4
stty -icanon
5
trap 'stty "$old_tty_settings"; exit 0' INT
6
7
echo "Press (CTRL-C) to interrupt..."
8
9
while true; do
10
nc -u localhost 6789
11
done
12