On 6/15/2026 10:35 AM, Thomas Desi via Freedos-user wrote:
If the 127 (128) character restriction in DOS can be changed to higher
values in 4DOS, DOG or any other Doses?
IN the DOS source code it seems to be just a value set in the COMBUF
allocation:
COMBUF
DB 128 ; Max number of characters to read
DB ? ; Number of characters actually read
DB 128 DUP (?) ; The command line buffer itself
Anyone thinking that changing this value in command.asm would work??
No, it does NOT work. As that limit of 127 bytes is fixed due to the
size of the Program Segment Prefix, which is a 256 byte structure
defined by (MS)DOS and FreeDOS has for compatibility reasons to follow
that structure layout to the letter. You can't just change that number
in FreeCOM and expect no bad things to happen by overwriting adjacent
memory locations and/or DOS functions that deal with the PSP to cut
everything off after those 127 bytes.
4DOS gets away with it because it has its own command shell and can do
as it pleases, but likely at the cost of compatibility...
Ralf
_______________________________________________
Freedos-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-user