bugGNU Octave - Bugs: bug #49703, arrow keys, backspace and tab are...

 
 

bug #49703: arrow keys, backspace and tab are not available

Submitter:  None
Submitted:  Sat 26 Nov 2016 01:22:28 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Performance
Status:  None Assigned to:  None
Originator Name:  zjb Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 4.2.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 04 Feb 2022 12:28:21 PM UTC, comment #18: 

There is a plan to replace the current terminal widget, which will probably reduce the priority of fixes to the current one that aren't breaking ability to use octave. Unfortunately that didn't make it into the soon to be released v7. But hopefully is finished for octave 8.

Nicholas Jankowski <nrjank>
Group Member
Fri 04 Feb 2022 07:57:08 AM UTC, comment #17: 

This bug still exists. Is there any plan to fix it?
Tested on two Windows 10 installations.

Anonymous
Tue 05 Mar 2019 06:07:38 AM UTC, comment #16: 

“Disable global shortcuts when Command Window has focus” is indeed checked.

Andrew Janke <apjanke>
Mon 14 Jan 2019 06:03:42 PM UTC, comment #15: 

Have you checked the preference "Disable global shortcuts when Command Window has focus"?

Moreover, the underlying terminal implementations for the console widgets are completely different on Windows and Mac/Linux.

Torsten Lilge <ttl>
Group Member
Mon 14 Jan 2019 10:00:46 AM UTC, comment #14: 

Interestingly, the "Ctrl-X to display control sequences" seems to work on Windows. (Tested on Windows 10 VM using Octave 4.4.1.) Though it reports the same sequence for any modified arrow press. Maybe the macOS build is intercepting Ctrl-whatever keypresses before they make it to the QTerminal widget.

Andrew Janke <apjanke>
Sat 12 Jan 2019 06:12:43 AM UTC, comment #13: 

I'm having a little luck modifying my ~/.inputrc file to configure how the Command Window behaves: I've been able to set some completion options in it. Maybe I could use that to define how Ctrl-arrow and the like behave.

Is there a way in the Command Window (that's a QTerminal, right?) to echo back the literal control sequence it is receiving, like you can in some terminals (like iTerm and Terminal.app) by hitting Ctrl-X and then pressing a key combination?

Andrew Janke <apjanke>
Fri 11 Jan 2019 11:23:16 PM UTC, comment #12: 

This only happens in the command window. In the editor, arrow keys with modifiers behave exactly as I would expect/like.

Andrew Janke <apjanke>
Fri 11 Jan 2019 08:22:04 PM UTC, comment #11: 

@Andrew: Does this only happen in the command window, or also in the editor? Actually, the command window only provides few key navigation facilities.

Torsten Lilge <ttl>
Group Member
Fri 11 Jan 2019 12:32:17 PM UTC, comment #10: 

Also, shift-arrow does nothing. I would expect that to expand the selection, and to move by words when done as ctrl-shift-arrow or alt-shift-arrow.

Andrew Janke <apjanke>
Fri 11 Jan 2019 12:31:17 PM UTC, comment #9: 

I'm having a similar issue on Mac.

The arrow keys work on their own. But modified arrow keys (Ctrl-arrow, Alt-arrow, Cmd-arrow) still only move one character at a time. On a Mac, I would expect Ctrl-arrow and/or Alt-arrow to move one word at a time, and Cmd-arrow to move to the start or end of the line.

Also, clicking in the current line in the command window doesn't move the cursor, like I would expect. I can click and drag to select text, but not click to move the cursor.

Is there a way to enable these arrow controls on Mac?

macOS 10.13.6, Octave 4.4.1, installed via Octave.app (4.4.1-beta3).

My environment:


>> system('env')
SHELL=/bin/zsh
TERM=xterm
TMPDIR=/var/folders/_4/9mx5ryp52bb_z6drbcbrhwl40000gn/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.LKIonCIuny/Render
LC_NUMERIC=C
USER=janke
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.6MmApez1ZG/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
COLUMNS=121
PATH=/Applications/Octave-4.4.1.app/Contents/Resources/usr/bin/:/Applications/Octave-4.4.1.app/Contents/Resources/usr/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app_4.4.1_0/4.4.1/libexec/octave/4.4.1/site/exec/x86_64-apple-darwin15.6.0:/Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app_4.4.1_0/4.4.1/libexec/octave/api-v52/site/exec/x86_64-apple-darwin15.6.0:/Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app_4.4.1_0/4.4.1/libexec/octave/site/exec/x86_64-apple-darwin15.6.0:/Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app_4.4.1_0/4.4.1/libexec/octave/4.4.1/exec/x86_64-apple-darwin15.6.0:/Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app_4.4.1_0/4.4.1/bin
_=/usr/bin/env
PWD=/Users/janke
GS_OPTIONS=-sICCProfilesDir=/Applications/Octave-4.4.1.app/Contents/Resources/usr/opt/ghostscript_9.25_0/share/ghostscript//iccprofiles/ -sGenericResourceDir=/Applications/Octave-4.4.1.app/Contents/Resources/usr/opt/ghostscript_9.25_0/share/ghostscript//Resource/ -sFontResourceDir=/Applications/Octave-4.4.1.app/Contents/Resources/usr/opt/ghostscript_9.25_0/share/ghostscript//Resource/Font
XPC_FLAGS=0x0
F77=/Applications/Octave-4.4.1.app/Contents/Resources/usr/bin/gfortran
LINES=58
XPC_SERVICE_NAME=0
HOME=/Users/janke
SHLVL=2
FC=/Applications/Octave-4.4.1.app/Contents/Resources/usr/bin/gfortran
GNUTERM=qt
LOGNAME=janke
DISPLAY=/private/tmp/com.apple.launchd.Z8CDwxgsBB/org.macosforge.xquartz:0
LC_TIME=C


Andrew Janke <apjanke>
Thu 15 Dec 2016 01:15:22 PM UTC, comment #8: 

getenv('CHARSET')
ans=cp936

getenv('INPUTRC')
ans=

(the second is empty)
the charset is a Chinese charset because I choose zh_cn in language settings.But I have tried en_us and the problem is still there.

Also,I remove qt-settings but nothing happen except the welcome window pop up.Actually,I met the problem just after I installed octave, with no settings changed.

Anonymous
Tue 13 Dec 2016 01:17:35 PM UTC, comment #7: 

Works fine for me

You could try removing  qt-settings from  %USERPROFILE%\.config\octave\

and see if that helps

Also what do these return:

getenv('CHARSET')
getenv('INPUTRC')


John Donoghue <lostbard>
Group Member
Tue 13 Dec 2016 12:17:10 PM UTC, comment #6: 

ans = windows


It's the same in both CLI mode and GUI mode when I run getenv term/gnuterm, while in CLI mode these problems don't exist.

Anonymous
Mon 12 Dec 2016 03:28:29 PM UTC, comment #5: 

and

getenv('GNUTERM')



John Donoghue <lostbard>
Group Member
Mon 12 Dec 2016 02:50:46 PM UTC, comment #4: 


>> getenv('TERM')

ans = cygwin

Anonymous
Mon 12 Dec 2016 12:45:08 PM UTC, comment #3: 

In the command window, what does it display if you run the command:

getenv('TERM')


John Donoghue <lostbard>
Group Member
Mon 12 Dec 2016 08:37:50 AM UTC, comment #2: 

I install octave from the official installer, and just click the shortcut “octave (gui)”in the start menu to run it, on win10 platform.

Anonymous
Sun 11 Dec 2016 03:17:39 PM UTC, comment #1: 

Did you install from the official installer or the zip file, and how are you running octave ?

John Donoghue <lostbard>
Group Member
Sat 26 Nov 2016 01:22:28 PM UTC, original submission:  

When I press arrow keys, backspace and tab in the GUI command mode, just some strange things will happen, such as the last two characters will swap or "[A[B[C[D" will appear(arrow keys). Of course this is not I want.These problems make it so hard to use command mode in GUI. Also, the mouse cannot be used to move the cursor freely. Anyway, edit a simple command is much easier in MATLAB.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by apjanke (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by None (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 group members can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code