ex - $1 << EOF
1,\$s/^PC/xPC/
1,\$s/^BC/xBC/
1,\$s/^UP/xUP/
1,\$s/^ospeed/xospeed/
1,\$s/^LINES/xLINES/
1,\$s/^COLS/xCOLS/
1,\$s/^tgetflag/xtgetflag/
1,\$s/^tgetent/xtgetent/
1,\$s/^tgetstr/xtgetstr/
1,\$s/^tgetnum/xtgetnum/
1,\$s/^tgoto/xtgoto/
1,\$s/^tputs/xtputs/
1,\$s/^wrefresh/xwrefresh/
1,\$s/^initscr/xinitscr/
1,\$s/^cbreak/xcbreak/
1,\$s/^nl/xnl/
1,\$s/^flushinp/xflushinp/
1,\$s/^noecho/xnoecho/
1,\$s/^savetty/xsavetty/
1,\$s/^resetty/xresetty/
1,\$s/^echo/xecho/
1,\$s/^nocbreak/xnocbreak/
1,\$s/^nonl/xnonl/
1,\$s/^keypad/xkeypad/
1,\$s/^endwin/xendwin/
1,\$s/^printw/xprintw/
1,\$s/^fixterm/xfixterm/
1,\$s/^resetterm/xresetterm/
1,\$s/^setterm/xsetterm/
1,\$s/^baudrate/xbaudrate/
w
q
EOF
