MODE CON

B

Barney

An excerpt from the MODE command's on-line help reads as
follows:

Display mode: MODE CON[:] [COLS=c] [LINES=n]


Does anyone know what the lowest and highest number of
rows and columns that can be assigned?
 
W

Walter Briscoe

In message <[email protected]> of Sat, 2 Aug 2003
19:53:04 in microsoft.public.win2000.cmdprompt.admin, Barney
An excerpt from the MODE command's on-line help reads as
follows:

Display mode: MODE CON[:] [COLS=c] [LINES=n]


Does anyone know what the lowest and highest number of
rows and columns that can be assigned?

I could tell you the answer. It seems better to tell you how to find
out. Start with a huge number which gives you a failure.
Half the proposed number until you get a success.
set difference to half the current number.
add the difference to the current number.
repeat:
try again.
half the difference.
end if difference is zero.
add the difference if previous result OK
subtract the difference if previous result US.

1048576 is a nice large number which produces a failure with mode con
lines=1048576.
 
P

Phil Robyn

Walter said:
In message <[email protected]> of Sat, 2 Aug 2003
19:53:04 in microsoft.public.win2000.cmdprompt.admin, Barney
An excerpt from the MODE command's on-line help reads as
follows:

Display mode: MODE CON[:] [COLS=c] [LINES=n]


Does anyone know what the lowest and highest number of
rows and columns that can be assigned?


I could tell you the answer. It seems better to tell you how to find
out. Start with a huge number which gives you a failure.
Half the proposed number until you get a success.
set difference to half the current number.
add the difference to the current number.
repeat:
try again.
half the difference.
end if difference is zero.
add the difference if previous result OK
subtract the difference if previous result US.

1048576 is a nice large number which produces a failure with mode con
lines=1048576.

Then of course there is always the question of *useful* values. A font
small enough to allow the display of, say, 500 characters (cols=500) on
a single line is probably not readable for most people. So what does it
matter if the maximum 'legal' value for 'cols' is 32767?
 
D

Dean Wells [MVP]

Legible or otherwise, it does create an extremely wide *scrolling* shell
which may be useful to some ... can't really imagine for what but who am
I to ask why? :)

--
Dean Wells [MVP / Windows platform]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l


Phil Robyn said:
Walter said:
In message <[email protected]> of Sat, 2 Aug 2003
19:53:04 in microsoft.public.win2000.cmdprompt.admin, Barney
An excerpt from the MODE command's on-line help reads as
follows:

Display mode: MODE CON[:] [COLS=c] [LINES=n]


Does anyone know what the lowest and highest number of
rows and columns that can be assigned?


I could tell you the answer. It seems better to tell you how to find
out. Start with a huge number which gives you a failure.
Half the proposed number until you get a success.
set difference to half the current number.
add the difference to the current number.
repeat:
try again.
half the difference.
end if difference is zero.
add the difference if previous result OK
subtract the difference if previous result US.

1048576 is a nice large number which produces a failure with mode con
lines=1048576.

Then of course there is always the question of *useful* values. A font
small enough to allow the display of, say, 500 characters (cols=500) on
a single line is probably not readable for most people. So what does it
matter if the maximum 'legal' value for 'cols' is 32767?

--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top