home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!usc!sdd.hp.com!caen!hellgate.utah.edu!lanl!simvax.meediv.lanl.gov!reed
- From: reed@eagle.agps.lanl.gov (Reed_Kevin)
- Subject: Curses Doesn't Use Terminal Features?????
- Message-ID: <29JUL199210425254@simvax.meediv.lanl.gov>
- News-Software: VAX/VMS VNEWS 1.41
- Sender: reed@simvax.meediv.lanl.gov (Reed_Kevin)
- Organization: Los Alamos National Laboratory, Mech. and Elec. Eng
- Date: Wed, 29 Jul 1992 17:42:00 GMT
- Lines: 35
-
- I was using some code t that uses Curses, and I was curious how
- it preformed a scroll. I slowed the vt220 terminal I was using
- down to 300baud and watched what happened when I called scroll()
- To my amazement, it completely rewrote the entire screen, rather
- then sending the escape sequence to cause the terminal to scroll.
- Does curses really generate all this extra noise on the network
- or did I observe something else? Included is the code I used to
- test it.
-
- #include <curses.h>
- main()
- {
- int i;
-
- initscr();
- scrollok(stdscr,TRUE);
- for(i=0;i<10;i++) {
- printw("Greetings\n\r");
- printw("all you people\n\r");
- printw("out there in netland\n\r");
- printw("Are we having fun yet?\n\r");
- }
- refresh();
- scroll(stdscr);
- printw("Yes, we are!\n\r");
- refresh();
- endwin();
- }
-
-
- Thanks, email responses to me, I post a summary if anyone is interested.
-
- Kevin Reed
- Los Alamos National Laboratory
- reed@eagle.agps.lanl.gov
-