FDOS / freecom

FreeDOS Command Shell (command.com)
http://www.freedos.org/
GNU General Public License v2.0
153 stars 39 forks source link

Multi-line command editing broken #102

Closed boeckmann closed 3 months ago

boeckmann commented 3 months ago

In addition to #98, multi-line editing seems to be broken, with the cursor jumping to wrong lines etc if scrolling is involved. Example: At the bottom screen line, recall a command from history that is longer than one line, move left one character and enter something. Cursor then jumps one line up, overwriting wrong part of the command line.

Further, reading the source, it seems that some parts of readcommandEnhanced() are generally not designed to to handle more than two lines of input.