LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2008, 07:16 PM   #1
imputerate
LQ Newbie
 
Registered: May 2006
Location: houston/malibu
Distribution: ubuntu
Posts: 19

Rep: Reputation: 0
Readline for Xterm-bash


trying to set things up so i can 'ssh -X' among machines in my lan, and
then load emacs in gui mode [not emacs -nw] on the host machine [this is
NOT an emacs question;]

first i want to fix it so i use only the bash shell and only the Xterm
terminal emulator, no matter which defaults are set for the os or window
manager i'm dealing with;

on my ubuntu and slackware machines, i'm dealing with the default
terminal emulators gnometerm and konsole , respectively; both os's use
bash as the default shell

so, i attach Xterm to a keyboard shortcut to get Xterm/bash [confirmed
by 'echo $TERM' , 'echo $SHELL' ];

i also want to use readline customizations in my shell's command line;

so i have configured ~/.inputrc:
M-h is one of my emacs customizations; here it is in .initrc for
Readline:
-------------------------------------------------------------
$if mode=emacs
-------------------------snip-------------------------------------
"\M-h": backward-delete-char

# why won't these work? -v is moribund; -g > ls lists;
#"\M-g": forward-delete-char
#"\M-v": forward-delete-word
-----------------snip-------------------------------------------
$endif
-------------------------------------------------------------------

also: i put the following line in my
~/.bashrc:

export INPUTRC=/home/hodgson/.inputrc

PROBLEM:

Readline works in... [i.e. .inputrc is sourced by ...] KDE/Xterm/bash;

but not in Gnome/Xterm/bash [it DID work in Gnome/Gnometerm/bash]

as i understand it: on the ubuntu box [Xterm/bash] bash isn't getting
the right escape sequences from Xterm [but on the slackware box they
come thru konsole];

is this the critical matter? what does that mean, and, what do i do?

thanks, imputerate
 
Old 06-19-2008, 06:26 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
This may just be a problem with the Meta key binding in xterm.

Try setting up a key binding that doesn't require Meta, and then see if that works.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[bash / readline] Access / output content of yank buffer? FnordPerfect Programming 1 01-19-2007 10:54 AM
xterm and bash completion athanatos Slackware 12 07-22-2006 12:47 PM
taking off the bash-3xx of the XTerm maginotjr Slackware 3 10-05-2005 07:18 PM
xterm start with sh instead of bash freeindy Linux - Software 4 04-25-2004 10:58 AM
Difference between bash and xterm krackerroot Red Hat 4 09-08-2003 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration