Re: Standard Input Max Length Limitation

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bryan So wrote:
> 
> I realized after a little experimentation that gets(0) has a pretty small max
> limit.  I think it can get only 128 characters.  
> 
> Is there a simple command to expand this limit?
> 
> Or must one write a complex getkey() input routine to get around this for
> longer
> (say 1K max) input?  I think getkey style input routine will involve complex
> screen scrolling/cursor positioning handling too, correct?
> 
> Thanks for any pointers.
> 
> Bryan

I assume you are using vanilla DOS.

For .COM files, DOS stores the command line tail at CS:#081 in a buffer that
ends at CS:#0FF. As a result, the command line under 16-bit DOS is at most 127
byte long. I don't know whether tehe Causeway extender does anything about it.

CChris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu