Handling different stty settings
If the terminal and printer require different stty settings,
you must create a shell script to handle that:
: # /usr/bin/lprints # # Do local printing with stty settings that differ from # those of the terminal. The required settings are read # from environment variable LPRINTSTTY.
oldstty=`stty -g` [ "$LPRINTSTTY" != "" ] && stty $LPRINTSTTY
FORMS=X /usr/bin/lprint "$@"
Users can store the stty settings required for a local printer using the environment variable LPRINTSTTY. You can set system-wide values in the /etc/profile and /etc/cshrc files:
LPRINTSTTY="ixon ixoff -ixany onlcr"; export LPRINTSTTY