Xref: utzoo comp.binaries.ibm.pc.d:10392 alt.sources:2539 Path: utzoo!utgpu!cs.utexas.edu!swrinde!ucsd!pacbell.com!ames!eos!data.nas.nasa.gov!amelia!roelofs From: roelofs@nas.nasa.gov (Cave Newt) Newsgroups: comp.binaries.ibm.pc.d,alt.sources Subject: Re: screen clearing TSR Keywords: Newtware Message-ID: <1990Nov12.055127.16872@nas.nasa.gov> Date: 12 Nov 90 05:51:27 GMT References: <66685.27384f72@vaxc.cc.monash.edu.au> Sender: news@nas.nasa.gov Followup-To: alt.sources.d Organization: University of Chicago Lines: 145 Michael Page, apm388p@vaxc.cc.monash.edu.au, writes: >I am looking for a simple utility which will enable me to *clear the screen* >(by sending ANSI [2J ?) by issuing a keystroke, for example while I am >in graphics mode of NCSA Telnet or Kermit. (Perhaps this last requirement >is irrelevant because presumably the keystroke would be intercepted by the >PC before it is sent off.) It's not clear to me whether you want something to send a clear-screen signal to the host computer or simply a local, PC-based screen-clearer. If the latter, here's a small (and pretty stupid) TSR to do it for you. All this does is check the current video mode and then do a reset to that mode (so if you're in graphics mode, you'll stay that way). It doesn't do anything beyond that, however, so if you're in a 35-line editor mode, you'll lose the bottom 10 lines (and maybe the cursor, too) when the mode gets reset. But hey--that's what caveat emptor is all about. :) Appended is a uuencoded .com file, then source (so you can compare with a debug dump and convince yourself there're no trojans lurking about), and follow-ups to alt.sources.d. Greg roelofs@amelia.nas.nasa.gov begin 600 hotclear.com MZS.0`````/M0Y&`\+G40N$``'H[8H!<`'R0//`IT!E@N_RX#`;`@YB!3M`_- J$#+DS1!;6,^X"37-(8D>`P&,!@4!M"6Z!P'-(:$L`([`M$G-(;HU`