FDOS / freecom

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

Command line editing broken if cursor not at EOL #98

Closed boeckmann closed 6 months ago

boeckmann commented 6 months ago

Several command line editing commands are broken if invoked with the cursor not being at the end of the command line. Especially ESC, CTRL-C, UP and DOWN keys remove part of the prompt or even more. This is because the cursor gets rewinded n characters, where n is the length of the whole command, and not the actual cursor position.