octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46661] Disable Ctrl+D instantly closing GUI


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #46661] Disable Ctrl+D instantly closing GUI
Date: Fri, 11 Dec 2015 22:47:38 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.2.1

Follow-up Comment #6, bug #46661 (project octave):

It's actually not even interpreted by readline, it's at the terminal driver
level. The terminal settings interpret the Ctrl+D as an EOF character, and the
interpreter parser handles the EOF.

You can verify this by running octave with --no-line-editing and Ctrl+D still
works.

Also note that it's Ctrl+D only when the input line is empty. So we don't want
Octave to exit if I've typed some text and then hit Ctrl+D, that means
something else to readline (delete-char by default).

Now we could use some terminal control calls to disable EOF processing, but
that might break other things, for example I wonder if digging into that would
break how Octave works on file input.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46661>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]