PC-More bug fix (already)

Donald L. Nash dlnash at ut-ngp.UUCP
Tue Dec 10 05:11:13 AEST 1985


Sorry world, but there seems to be a small flaw in PC-More.  It seems that
I inadvertantly made the thing specific to only IBM PCs with monochrome
monitors.  The fix is really easy.  If you have a monochrome monitor, don't
anything.  If you have a color monitor, then edit the source code and replace
every occurance of "crt_mode(7)" with "crt_mode(2)".  The "7" means a mono
monitor, and the "2" means a color monitor in 80 x 25 bw mode.  If you are
using a EGA, then you are in a little bit more trouble.  My compiler does not
support the EGA, so all references to "crt_cls()" and "crt_mode(7)" will have
to be deleted.  This will mean that More will no longer clear the screen.  If
you do this, then you should also get rid of the variable "nlp" in main().
Sorry for the problem....

I've got some mail concerning portabilities of the binaries.  I wrote the
program on an IBM PC XT with a monochrome monitor.  The only functions
I used which could be very IBM specific are the functions to clear the screen
(discussed above) and the function to do a direct keyboard read.  Since I
don't know how the people at C.I. implemented these functions, I can only
guess at their portability.  I would say that these functions probably
call the BIOS.  If your PClone has a compatible BIOS, then you may be in luck.
When I said "IBM compatible", I really meant "very compatible."
Sorry again for any confusion....


					Don Nash

UUUU        UUUU
 UU          UU      UUCP:  ...!{ihnp4,allegra,seismo!ut-sally}!ut-ngp!dlnash
 UU TTTTTTTTTUUTTT   APRA:  dlnash at ngp.UTEXAS.EDU
 UU TT    TT UU TT
 UU       TT UU
  UU      TTUU
    UUUUUUUU         The University of Texas at Austin
          TT         Hook 'em Horns!
         TTTT



More information about the Comp.sources.bugs mailing list