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


bug #42681: Freeze on Ctrl+s in Console

Submitted by:  Jonathan Hahn <helo>
Submitted on:  Fri Jul 4 14:34:40 2014  
Category: GUISeverity: 1 - Wish
Priority: 5 - NormalItem Group: Documentation
Status: FixedAssigned to: Mike Miller <mtmiller>
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Sat Feb 7 04:23:53 2015, 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 AdministratorIn charge of this item.
Sat Feb 7 00:07:57 2015, 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 AdministratorIn charge of this item.
Fri Feb 6 17:22:07 2015, 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 Jul 8 16:48:18 2014, 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 AdministratorIn charge of this item.
Fri Jul 4 22:25:06 2014, 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 Jul 4 15:00:49 2014, 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 AdministratorIn charge of this item.
Fri Jul 4 14:34:40 2014, 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one

   bug dependencies.


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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Feb 7 04:32:18 2015mtmillerDependencies-=>bugs #43520 is dependent
    Sat Feb 7 04:23:53 2015mtmillerStatusIn Progress=>Fixed
    Sat Feb 7 00:07:57 2015mtmillerStatusNeed Info=>In Progress
      Assigned toNone=>mtmiller
    Fri Feb 6 17:22:07 2015rik5SummaryFreeze on Strg+s in Console=>Freeze on Ctrl+s in Console
    Tue Jul 8 16:48:18 2014mtmillerSeverity3 - Normal=>1 - Wish
      Item GroupSegfault, Bus Error, etc.=>Documentation
    Fri Jul 4 15:00:49 2014mtmillerStatusNone=>Need Info

    Back to the top

    Powered by Savane 3.1-cleanup1