help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A trick: how to set Ctrl-u to kill-whole-line in Octave command line on


From: roland65
Subject: A trick: how to set Ctrl-u to kill-whole-line in Octave command line on Linux
Date: Tue, 30 Aug 2016 01:33:49 -0700 (PDT)

Hi,

in Octave (as in bash), you have to use Ctrl-a + Ctrl-k or End + Ctrl-u to
clean the whole command line. This is quite annoying, especially when you
are a Matlab user, because in Matlab (as in zsh) you only have to press
Ctrl-u to clean the whole command line.

To make Octave behave like Matlab on Linux, the trick is to create a
~/.inputrc file with the following commands:

set bind-tty-special-chars off
"\C-u": kill-whole-line

Then after restarting Octave, you can clean the whole command line using
Ctrl-u.

By the way, I don't know how to do this on Windows...




--
View this message in context: 
http://octave.1599824.n4.nabble.com/A-trick-how-to-set-Ctrl-u-to-kill-whole-line-in-Octave-command-line-on-Linux-tp4679528.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]