Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!sophist!goer From: goer@sophist.uucp (Richard Goerwitz) Newsgroups: comp.unix.questions Subject: no curses; smaller code Message-ID: <7452@tank.uchicago.edu> Date: 4 Feb 90 05:22:07 GMT Sender: news@tank.uchicago.edu Reply-To: goer@sophist.UUCP (Richard Goerwitz) Distribution: usa Organization: University of Chicago Lines: 23 Occasionally I find myself having to do something trivial to the screen, but because I'm accustomed to using cur- ses, this typically increases the size of the executable by a good 25k. Below is a typical piece of code (nor- mally I'd use tput clear to clear the screen - it's just an example). If someone could show me how to do this using lower level functions, I'd appreciate it: #include main() { initscr(); clear(); refresh(); endwin(); exit(); } -Richard L. Goerwitz goer%sophist@uchicago.bitnet goer@sophist.uchicago.edu rutgers!oddjob!gide!sophist!goer