Function keys don't work in text-mode apps (Solved)

Please post any bugs you have found
Post Reply
Message
Author
User avatar
Alienx
Posts: 141
Joined: Fri 06 May 2005, 22:02
Location: Rio de Janeiro - Brazil

Function keys don't work in text-mode apps (Solved)

#1 Post by Alienx »

About Bash, MP and curses text-mode applications: I had a similar problem with MC, the functions keys dont work.

then I found the problem was in /root/.bashrc

this line must be deleted: . /etc/profile

and let only the last two:

export HISTFILESIZE=2000
export HISTCONTROL=ignoredups

the problem with MC has gone
Sorry, broken english above :-)

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

yes, the reason sourcing /etc/profile causes this problem is the line:

TERM=linux

MC does not work properly unless TERM=xterm
and it causes the problem with the line-drawing chars that MP uses

so if you change it to TERM=xterm it works ok

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#3 Post by BarryK »

So, could leave that line in .bashrc:

Code: Select all

 . /etc/profile
 export TERM=xterm
 export HISTFILESIZE=2000
 export HISTCONTROL=ignoredups
the inserted TERM line will override the one in profile, or so I think.

Post Reply