delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2012/09/08/03:28:46

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Date: Sat, 08 Sep 2012 10:28:38 +0300
From: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: DJGPP Gnu Info in a console window under Windows
In-reply-to: <k2e7vn$n3a$1@dont-email.me>
X-012-Sender: halo1 AT inter DOT net DOT il
To: djgpp AT delorie DOT com
Message-id: <83ipbpgehl.fsf@gnu.org>
References: <k2dlc3$fqj$1 AT dont-email DOT me> <d4b3773e-634c-469b-9817-635db66e8588 AT googlegroups DOT com> <k2e7vn$n3a$1 AT dont-email DOT me>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: DMcCunney <dennis DOT mccunney AT gmail DOT com>
> Date: Fri, 07 Sep 2012 21:45:57 -0400
> 
> >> The DJGPP port of info runs in a console window under Win2K, but with a
> >> quirk.  I prefer an 90x50 console window, but DJGPP sets an 80x40 screen
> >
> > Yeah, I think the NTVDM always forces more normal sizes for various reasons
>  > (compatibility?).
> 
> It defaults to 80x25, but does not force it.  If your DOS app will run 
> at a different size, you can configure a console window run from a 
> shortcut to open in the defined size.
> 
> > As for native DOS, I don't know what would happen, it might be hardcoded
>  > (you could check, but ...). Presumably it can be tweaked, but I'm not
> > sure offhand. There I typically run 80x43 these days.
> 
> I'd like to know if it can be, without source-crawling.

How about reading the djgpp/README file in the Texinfo distribution?
It says, inter alia:

   d. Optionally, set up environment variables for Info.  These are:

       * INFO_LINES   -- screen size for Info.
       * INFO_COLORS  -- screen colors for Info.

      (If you have DJGPP installed on your system, the file djgpp.env
      which comes with it already has entries for Info, see the [info]
      section there.)

      INFO_LINES can be one of 25 (the default), 28, 35, 40, 43, or 50
      (that's if you have a VGA; EGAs only support 25, 35 and 43 lines).
      I recommend 40 if your monitor is 17" or larger, and at least 28
      lines for smaller monitors (I work with 40 lines even on 14"
      monitors).

      INFO_COLORS should have the following syntax:

		set INFO_COLORS=XX.YY

      where XX is the text attribute for text displayed in the text
      windows and the echo area, and YY is the text attribute for the
      modeline (aka the status line).  Each attribute is a numeric
      value of a byte which describes the desired combination of
      foreground and background colors.  The individual bits in the
      attribute byte are defined as follows:

			bBBBFFFF

      where `b' is the blink bit, `BBB' are the 3 bits for background
      color and `FFFF' are the 4 bits for the foreground color.  This is
      the usual PC text attribute byte structure, and is further explained
      in any standard reference on text-mode programming for the PC.

      My favorite setting for INFO_COLORS is `0x1e.0x31'.  This makes
      Info use yellow foreground on blue background for the text and
      blue foreground on cyan background for the modelines.

      After you've played with these variables and have chosen the values
      you like, it's a good idea to put them on the DJGPP.ENV file, in the
      [info] section.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019