|
From: Tait <gnu...@t4...> - 2011-03-21 07:15:09
|
>>>>> Currently the builtin readline causes gnuplot to terminate >>>>> if ^D (DEL) is entered on an empty line. >> >> Ok. The problem is that the builtin readline maps the DEL key >> to ^D on Windows. So "DEL" terminates gnuplot there. So you >> can accidentally close gnuplot while editing. > > Hmm. Initially you said that ^D causes gnuplot to exit if it's > typed in an empty line (i.e. you're _not_ editing). And that's > correct behavior. > > On the other hand, when in readline editing mode one would > generally expect ^D to delete rightwards, as in emacs (unless your > readline preference is set to vi-style.) And that's in fact what > happens on *nix when libreadline is used. ... > > Is the behavior on Windows with built-in readline different from > that? If so, I think that would be a bug. Windows behaves the same way. The delete-on-its-own-line causing gnuplot to exit was something I hadn't noticed before, which is all the more reason not to change that behavior, imo. (I've always used control and d to generate ^d, although I probably use "exit" just as often.) |