delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/19/12:15:38

From: =?ISO-8859-1?Q?Rafael_Garc=EDa?= <rafael AT geninfor DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP exe switch console to 80 columns
Date: Wed, 19 Mar 2003 18:11:37 +0100
Organization: Telefonica Data Espagna
Lines: 36
Message-ID: <3E78A4C9.7070004@geninfor.com>
References: <3E775AE7 DOT 8090604 AT geninfor DOT com> <5567-Tue18Mar2003230908+0200-eliz AT elta DOT co DOT il>
NNTP-Posting-Host: 80-24-251-44.uc.nombres.ttd.es
Mime-Version: 1.0
X-Trace: nsnmrro2-gest.nuria.telefonica-data.net 1048093899 18741 80.24.251.44 (19 Mar 2003 17:11:39 GMT)
X-Complaints-To: usenet AT nsnmrro2-gest DOT nuria DOT telefonica-data DOT net
NNTP-Posting-Date: Wed, 19 Mar 2003 17:11:39 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020826
X-Accept-Language: en-us, en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
>>Can I change this so I can use any console width?
> 
> Sorry, you can't: what you see is a misfeature of how Windows handles
> DOS programs.  Whenever a DOS program accesses the video memory
> directly, Windows resets the DOS box to the standard 80x24 size.
> Complain to Bill Gates.

I think he's very busy.

Now I'm getting confused because my hello world program can indeed print 
a 100 chars line BUT only until I execute other programs in that console.

Example:

start--run--cmd
mode con cols=100			<- OK: 100 cols console
helloworld				<- OK: no width change
rhide					<- auto full screen change
(exit rhide)
(alt-enter)				<- return to graphic window
mode con cols=100			<- OK: 100 cols console	
helloworld				<- FAIL: 80 cols while running

from now I cannot get 100 cols during execution of helloworld in this 
console, thought I do can with a new one.

I get this same problem using another exe in place of rhide. This 
another program is a big exe built with DJGPP. I have tried inserting a 
printf at main() and exiting, but I get the same behaviour.

I have tried some other EXEs, like du or upx between but these work ok, 
using the 100 cols console.

Any idea?

- Raw text -


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