You are not logged in.

#1 2005-10-28 22:33:58

uberGeek
Member
From: Near Chicago
Registered: 2004-01-07
Posts: 65
Website

Simple Bash/keyboard (key mapping) question

If I log in at a virtual console, the home key moves the cursor to the start of the line, as root, or as a user.  If I'm in WindowMaker, and I open an Eterm, home key moves the cursor to the start of the line, just like in the VC, however, if I SU to root, the home key gives me a ~ at the current cursor position.

Where should I be looking to fix this, besides 45 minutes with Google?

Thank you for any help, ideas, etc...


carb $ now; uname -a; uptime
Sun 03Jul11 14:54:25 CDT -0500
Linux carb 2.6.17-ARCH #1 SMP PREEMPT Fri Jul 7 09:15:53 CEST 2006 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
14:54:25 up 1463 days,  9:24,  1 user,  load average: 1.00, 1.00, 1.00

Offline

#2 2005-10-28 23:19:29

uberGeek
Member
From: Near Chicago
Registered: 2004-01-07
Posts: 65
Website

Re: Simple Bash/keyboard (key mapping) question

Found the problem:

Some package install added this to my .bashrc

test -n "$DISPLAY" && export TERM=xterm-color

Bug?  Probably not, but annoying that the assumption is made that I am running xterm.

The fix was easy, delete the line, as I've been using a custom .bashrc that, among other things, handles TERM exporting properly.


carb $ now; uname -a; uptime
Sun 03Jul11 14:54:25 CDT -0500
Linux carb 2.6.17-ARCH #1 SMP PREEMPT Fri Jul 7 09:15:53 CEST 2006 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
14:54:25 up 1463 days,  9:24,  1 user,  load average: 1.00, 1.00, 1.00

Offline

#3 2005-10-28 23:23:49

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Offline

#4 2005-11-02 04:16:35

uberGeek
Member
From: Near Chicago
Registered: 2004-01-07
Posts: 65
Website

Re: Simple Bash/keyboard (key mapping) question

Jolly good Dusty, and thank you.  I'll be using that info to improve my configs and .bashrc.


carb $ now; uname -a; uptime
Sun 03Jul11 14:54:25 CDT -0500
Linux carb 2.6.17-ARCH #1 SMP PREEMPT Fri Jul 7 09:15:53 CEST 2006 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
14:54:25 up 1463 days,  9:24,  1 user,  load average: 1.00, 1.00, 1.00

Offline

Board footer

Powered by FluxBB