You are not logged in.

#1 2009-10-04 21:51:19

Gutti
Member
Registered: 2009-09-19
Posts: 17

octave/matlab history scrollback in linux shell ?? - [Solved]

Hi,

I you enter in Matlab or Octave for example the three letters "plo" on the command prompt and like on the linux shell scroll via upkey through the history of Your commands it only gives You the commands starting with "plo" like "plot(x,y)", ...

Would be great to have that in the linux shell (bash, xterm, ..)  as well - is there a terminal emulator doing that ?? big_smile

Cheers Phil

Last edited by Gutti (2009-11-09 23:37:13)

Offline

#2 2009-10-05 10:30:11

jerryluc
Member
From: Norway
Registered: 2008-05-20
Posts: 95

Re: octave/matlab history scrollback in linux shell ?? - [Solved]

zsh

Offline

#3 2009-10-05 11:17:25

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: octave/matlab history scrollback in linux shell ?? - [Solved]

or if you want to stick with bash put the following in your .inputrc

"\e[A":history-search-backward
"\e[B":history-search-forward

Offline

#4 2009-10-07 06:38:58

Gutti
Member
Registered: 2009-09-19
Posts: 17

Re: octave/matlab history scrollback in linux shell ?? - [Solved]

Excellent it works (even with the bash)!! big_smile - Thanks to both of You, that was a question
bugging me for some time.

Does zsh have other advantages over the bash ? (reasons to swap ?)

Offline

#5 2009-10-07 06:51:24

Gutti
Member
Registered: 2009-09-19
Posts: 17

Re: octave/matlab history scrollback in linux shell ?? - [Solved]

One more thought. - It makes really a difference when working on the command line - couldn't that
be activated by default (for the bash). Quite a few people are probably unaware of this possibility - or does
it cause trouble when writing scripts ?

Offline

Board footer

Powered by FluxBB