Path: utzoo!mnetor!uunet!husc6!ut-sally!nather From: nather@ut-sally.UUCP (Ed Nather) Newsgroups: comp.sys.ibm.pc Subject: Re: What's faster than 'type'-ing a menu screen Message-ID: <10604@ut-sally.UUCP> Date: 8 Mar 88 03:40:40 GMT References: <4742@ecsvax.UUCP> <62@dogie.edu> Distribution: na Organization: U. Texas CS Dept., Austin, Texas Lines: 39 Keywords: MSDOS type batch file In article <62@dogie.edu>, anderson@vms3.macc.wisc.edu (Jess Anderson) writes: > In article <4742@ecsvax.UUCP> mvolo@ecsvax.UUCP (Michael R. Volow) writes: > ]In setting up a menu system (IBMPC 4.77 MHz box) using batch files, > ]I have been using the DOS 'type' command to display the larger menu > ]screens. But the screens display quite slowly, about .75-1.0 sec, > ]using the 'type' command on this machine. I'm not eager to utilize > ]ansi.sys substitutes such as nansi.sys or Fansi-Console, because of > ]possible incompatibilities with other software. > > Despite your reservations, I think you could give nansi.sys a try. > I'm unsure of the amount of speed-up you can expect, but I have never > run into a compatibility problem with it. If you want fast screen painting, nansi.sys is unbeatable, in my experience. On a PC or XT using a mono display card, a full-screen Update appears instantaneous. To get this speed, however, you must put MS-DOS I/O into "raw" mode via the IOCTL system call, and you must send the output in one huge gulp. Writing in C, the fastest way I have found is with write(), although puts() does pretty well. I, too, have found no incompatibilities. x x x x x x x x x x dumb mailer ... -- Ed Nather Astronomy Dept, U of Texas @ Austin {allegra,ihnp4}!{noao,ut-sally}!utastro!nather nather@astro.AS.UTEXAS.EDU