bugGNU Octave - Bugs: bug #37655, MinGW: Delete key causes Octave to...


bug #37655: MinGW: Delete key causes Octave to exit

Submitted by:  Robert Walton <bwalton>
Submitted on:  Tue Oct 30 17:10:37 2012  
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Bob WaltonOpen/Closed: Closed
Release: 3.6.2Operating System: Microsoft Windows

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 Oct 12 19:36:41 2013, comment #9:

From my tests a year ago it can be concluded that this is in no way a crash. The Del key had unexpected/undesired effects on MinGW => "Incorrect result" would be a better description.

Presently, with an MXE (= MingW) built Octave 3.7.7+ (17644:b26499314482, from this afternoon), on Win7 & WinXP:

-octave-cli.exe catches Del (that is: I hear the system bell and Octave is otherwise unaffected)

-octave (GUI): Del works as it should (deletes char under cursor, left shift all chars to the right)

We can conclude that this bug has "somehow been fixed".

Closing report....

Philip Nienhuis <philipnienhuis>
Project Member
Sat Oct 12 04:50:40 2013, comment #8:

This is listed as a crash, but against an old version of Octave (3.6.2).


Do you still have this problem with the delete key and MinGW on the development branch?

Rik <rik5>
Project Administrator
Sat Nov 3 16:48:40 2012, comment #7:

Some tests:

- MinGW (MSYS) shell: <Del> doesn't end the shell, <Ctrl>-d does;

(on a blank line:)
- Octave-3.4.3_gcc4.5.2: <Ctrl>-d closes Octave, <Del> does nothing.

- Octave-3.6.2_MSVC2010 (both GUI and CLI): <Ctrl>-d closes Octave, <Del> does nothing.

- Octave-3.6.1_gcc4.6.2: both <Del> and <Ctrl>-d close Octave;

- Octave-3.6.2_gcc4.6.2: both <Del> and <Ctrl>-d close Octave;

Starting an MSYS shell using
gives me a shell that doesn't close on <Del>

So, apparently for the 3.6.x MinGW versions the Octave terminal should be adapted to catch <Del>. Maybe this is an easy fix, but I wouldn't know where to search.

BTW I'd rather mark this bug as "postponed" (= until someone finds time & priority to fix this) than "won't fix"

Adapted title so that it is clear that only MinGW binaries are affected.

Philip Nienhuis <philipnienhuis>
Project Member
Tue Oct 30 21:15:08 2012, comment #6:

It seems to me that allowing delete to exit Octave
on Windows systems is high risk for those users.
Is there any way to trap the delete character before
it causes exit? This would only be needed for Windows.

Michael Godfrey <godfrey>
Tue Oct 30 19:33:28 2012, comment #5:

> However key mappings are done in Windows should
> be able to produce the same behavior.

It may be impossible to distinguish delete and ctrl-d on Windows depending on the terminal emulator. We might be able to do this on the GUI since that's our own terminal emulator.

I'm tempted to mark this bug as wontfix since we can't control cmd.exe.

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Tue Oct 30 17:52:37 2012, comment #4:

In linux delete in a blank line does nothing,
ctrl-d terminates Octave as it should.

However key mappings are done in Windows should
be able to produce the same behavior.

Michael Godfrey <godfrey>
Tue Oct 30 17:46:31 2012, comment #3:

It is expected with ctrl-d, which is an alias to delete. Try it, you can do ctrl-d or hit delete to delete. With a blank line you're sending an end-of-file character to Octave which is a signal to exit.

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Tue Oct 30 17:32:42 2012, comment #2:

Yes, this also happens when holding the Ctrl key down and pushing the "d" key. Expected behavior??

Robert Walton <bwalton>
Tue Oct 30 17:19:41 2012, comment #1:

Does this happen if you hit "ctrl-d" too? If so, this may be expected behaviour.

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Tue Oct 30 17:10:37 2012, original submission:

Pushing the keyboard "Delete" key on a blank line causes Octave to immediately exit. Other than that, command line editing works as expected, including the function of the Delete key. Using a
diary file shows everything in the session up to and including the last Octave prompt, with no error messages. An "octave-core" files is not written.

Windows XP SP3 32 bit, up-to-date.
Octave installed from MinGW file:


Robert Walton <bwalton>


(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

   bug dependencies.


Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by philipnienhuis (Posted a comment)
  • -unavailable- added by godfrey (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by bwalton (Submitted the item)
  • -unavailable- added by bwalton

    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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Dec 10 17:54:11 2013jordighDependencies-=>bugs #40865 is dependent
    Sat Oct 12 19:36:41 2013philipnienhuisItem GroupCrash=>Incorrect Result
      StatusNeed Info=>Fixed
    Sat Nov 3 16:48:40 2012philipnienhuisSummaryDelete key causes Octave exit=>MinGW: Delete key causes Octave to exit
    Tue Oct 30 17:26:27 2012jordighStatusNone=>Need Info
    Tue Oct 30 17:10:37 2012bwaltonCarbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup