git clone http://angband.pl/git/termrec http://angband.pl/termrec.html
and use it instead hardcoded headers and footers
be sure to set your terminal width/height to 80x24 or 120x35 to get rid of your prompt type ‘export PS1=”playterm $ “’ if you want to turn off wordwrap in your terminal type: echo -e “\e[?7l\c” sometimes it helps to type ‘export TERM=vt100’ again before you start the real deal use CTRL-C to prevent commentary text (for instructing the user) being processed