bugGNU Octave - Bugs: bug #42681, Freeze on Ctrl+s in Console


bug #42681: Freeze on Ctrl+s in Console

Submitter:  Jonathan Hahn <helo>
Submitted:  Fri 04 Jul 2014 02:34:40 PM UTC
Category:  GUI Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  mtmiller
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


( Jump to the original submission )

Sat 07 Feb 2015 04:23:53 AM UTC, comment #6: 

Fixed by disabling output flow control unconditionally in the unix terminal:


Ctrl-S should no longer cause inadvertent freezing, and Ctrl-Q and Ctrl-S can now be configured in readline.

Mike Miller <mtmiller>
Project Administrator
Sat 07 Feb 2015 12:07:57 AM UTC, comment #5: 

I agree, it's pretty risky to leave Ctrl-S bound to flow control in the GUI terminal, and it's basically useless.

I don't remember at the moment, but I think I had a patch already tested to disable flow control in the unix terminal, where there is already some terminal control stuff being done.

Mike Miller <mtmiller>
Project Administrator
Fri 06 Feb 2015 05:22:07 PM UTC, comment #4: 

I would really like to see this fixed as I use the Ctrl+S binding for my own purposes in readline.

I think the problem here is that Ctrl+S is being seen by the terminal emulator and the default behavior of this is not easily overridden.  When I use the preferences dialog (Shortcuts, Disable global shortcuts when terminal window has focus) I can disable general shortcut processing like Ctrl+N for New File.  But this doesn't work for Ctrl+S.  Interestingly, on Windows Ctrl+S brings up the incremental search through history feature.  So there must be an actual difference in code between the two terminal implementations in libgui/qterminal/libqterminal/(win32|unix).  Maybe the answer lies there.

Rik <rik5>
Project Administrator
Tue 08 Jul 2014 04:48:18 PM UTC, comment #3: 

Thanks for confirming. I'm not sure what the right approach should be in this case. Marking as documentation for now, but may also be fixed by disabling this particular readline binding by default when in GUI mode.

Mike Miller <mtmiller>
Project Administrator
Fri 04 Jul 2014 10:25:06 PM UTC, comment #2: 

Yes I mean Ctrl+s. I thought everything was frozen, but you are right. It is only the Console Window.

That the Run-Button at the editor was not working as well confused me.

Maybe there could be a hint for the readline mode in GUI.

Jonathan Hahn <helo>
Fri 04 Jul 2014 03:00:49 PM UTC, comment #1: 

Thanks for your bug report. Do you mean that after Ctrl+s you are unable to type in the console window? Or is the entire GUI frozen (unable to click any menus, switch tabs?)

If it's only text entry that is "frozen", this is expected readline behavior with the Ctrl+s key sequence. Enter Ctrl-q to turn on text input again.

Mike Miller <mtmiller>
Project Administrator
Fri 04 Jul 2014 02:34:40 PM UTC, original submission:  

I have Console and Editor upon each other. Sometimes I press Strg+s for saving my script while the cursor still is in Console. After that the GUI is freezed.

Jonathan Hahn <helo>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by helo (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.





    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-07 mtmiller Dependencies- bugs #43520 is dependent
    2015-02-07 mtmiller StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2015-02-07 mtmiller StatusNeed Info In Progress
        Assigned toNone mtmiller
    2015-02-06 rik5 SummaryFreeze on Strg+s in Console Freeze on Ctrl+s in Console
    2014-07-08 mtmiller Severity3 - Normal 1 - Wish
        Item GroupSegfault, Bus Error, etc. Documentation
        Release3.8.1 dev
    2014-07-04 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.9