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

 
 
Show feedback again

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

Submitted by:  Robert Walton <bwalton>
Submitted on:  Tue 30 Oct 2012 05:10:37 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Crash
Status: Need InfoAssigned to: None
Originator Name: Bob WaltonOpen/Closed: Open
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 03 Nov 2012 04:48:40 PM UTC, 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
<Octave3.6.2_gcc4.6.2>/msys/msys.bat
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 30 Oct 2012 09:15:08 PM UTC, 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 30 Oct 2012 07:33:28 PM UTC, 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 30 Oct 2012 05:52:37 PM UTC, 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 30 Oct 2012 05:46:31 PM UTC, 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 30 Oct 2012 05:32:42 PM UTC, comment #2:

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

Robert Walton <bwalton>
Tue 30 Oct 2012 05:19:41 PM UTC, 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 30 Oct 2012 05:10:37 PM UTC, 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:

Octave3.6.2_gcc4.6.2_20120609.7z

Robert Walton <bwalton>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -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
  •  

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

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 03 Nov 2012 04:48:40 PM UTCphilipnienhuisSummaryDelete key causes Octave exit=>MinGW: Delete key causes Octave to exit
    Tue 30 Oct 2012 05:26:27 PM UTCjordighStatusNone=>Need Info
    Tue 30 Oct 2012 05:10:37 PM UTCbwaltonCarbon-Copy-=>Added -unavailable-
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup