Ensure that writes to /dev/tty succeed to determine if it is writeable.
[mmh] / test / scan /
drwxr-xr-x   ..
-rwxr-xr-x 1275 test-scan
-rwxr-xr-x 1352 test-scan-multibyte