LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   "Page up" in Gutsy terminal (https://www.linuxquestions.org/questions/ubuntu-63/page-up-in-gutsy-terminal-604446/)

teek 12-04-2007 11:11 AM

"Page up" in Gutsy terminal
 
People,

I used to run Gentoo and got used to the command line there. Although I don't use it that often in Gutsy now, I still miss one key-functionality:

The Page up key... in Gentoo it gave me the last time I used the command of which I had just typed the first letters.

Sorry, very unclear description, an example:

I would type "ssh" on the command line and with page up I could go through all the commands that I typed before starting with ssh (like ssh, sshfs, ssh -X 192.168.2.2, etc.) whereas the up arrow cycles through all commands I have given.

Hope it's it clear now :)?

Thanx in advance!

forrestt 12-04-2007 12:57 PM

This is probably due to the shell you were using on Gentoo vs. the shell you are running on Gutsy. Do you remember what shell you used?

Forrest

teek 12-04-2007 03:50 PM

He forrestt, thanx for the reply.

I was using gnome-terminal on both Gentoo en Gutsy, the only difference was that on Gentoo I used gnome 2.16 and now 2.18... that can't be it (right?).

Any further ideas??

forrestt 12-04-2007 04:10 PM

No, gnome-terminal is the terminal emulator you used. The shell would be the command line interface that is brought up after the terminal is opened. Examples would be bash, tcsh, csh, zsh, ash.

Forrest

teek 12-04-2007 04:19 PM

Ah, I see Ubuntu uses dash where gentoo uses bash...
Ok that would explain it. Thanx.

If you or anyone has an idea on how to enable this feature in dash, your are more then welcome to post it here :)

For now, I have a new direction to look for, thanx for that.

forrestt 12-04-2007 04:20 PM

You can always change your default shell to bash.

Also, according to this page

Edit a file called .inputrc in your home directory and add the following lines:

Code:

"\e[5~": history-search-backward
"\e[6~": history-search-forward

log out, and then log back in.

HTH

Forrest

teek 12-04-2007 05:02 PM

Aha, they are working on it:

https://wiki.ubuntu.com/Spec/EnhancedBash

Lets hope this great great feature makes it into dash fast ;)

Edit... just read your last comment... I believe that will make you search your history but not history for the just partially typed command.


All times are GMT -5. The time now is 04:57 AM.