view scripts/ @ 1108:fb8467436e6a draft

Tweak terminal_size to never set either to 0, and return true/false whether it could determine at least one coordinate. (If you set $COLUMNS but not $ROWS, we assume you're happy with the 80x25 default for the other.)
author Rob Landley <>
date Thu, 07 Nov 2013 09:04:50 -0600
parents 2428870ce50c
line wrap: on
line source


# If you want to use toybox netcat to talk to a serial port, use this.

if [ ! -c "$1" ]
  echo "Usage: /dev/ttyS0"
  exit 1

[ -z "$SPEED" ] && SPEED=115200

stty $SPEED -F "$1"
stty raw -echo -ctlecho -F "$1"
stty raw -echo  # Need to do it on stdin, too.
./toybox netcat -f "$1"
stty cooked echo  # Put stdin back.