From: =?ISO-8859-1?Q?Rafael_Garc=EDa?= Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP exe switch console to 80 columns Date: Tue, 25 Mar 2003 09:54:14 +0100 Organization: Telefonica Data Espagna Lines: 23 Message-ID: <3E801936.3040701@geninfor.com> References: <3E775AE7 DOT 8090604 AT geninfor DOT com> <5567-Tue18Mar2003230908+0200-eliz AT elta DOT co DOT il> <3E7B3770 DOT 4000502 AT geninfor DOT com> NNTP-Posting-Host: 80-24-251-44.uc.nombres.ttd.es Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nsnmrro2-gest.nuria.telefonica-data.net 1048582457 24890 80.24.251.44 (25 Mar 2003 08:54:17 GMT) X-Complaints-To: usenet AT nsnmrro2-gest DOT nuria DOT telefonica-data DOT net NNTP-Posting-Date: Tue, 25 Mar 2003 08:54:17 +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 >>> Can I change this so I can use any console width? >> >> Whenever a DOS program accesses the video memory >> directly, Windows resets the DOS box to the standard 80x24 size. > > It seems this is not correct. I have a program patched to only printf a > message and exit, and it produces that 80 cols change, but only one of > the djgpp utils I have in djgpp\bin (v.exe) does it too. I don't know > what does this two programs have in common that the others don't have. > Well, the problem appears whenever you include any call to some conio function. It is no necesary to execute the function, only that it is in the program! int main() { printf("hello\n"); getchar(); // why do I get an 80 cols console? exit(0); gotoxy(5,5); // because this return 0; }