Re: Standard Input Max Length Limitation
- Posted by CChris <christian.cuvier at agriculture.gouv.fr> Jun 25, 2007
- 718 views
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