OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: whit on June 17, 2004, 04:42:43 pm

Title: Is there a way to automate TERM type by app?
Post by: whit on June 17, 2004, 04:42:43 pm
Noticing that hnb and kismet require \"export TERM=xterm-color\" to look right while joe requires \"export TERM=vt100\" to look right (and I suppose there may be terminal apps that want \"TERM=rxvt\" or whatever) - short of writing scripts to change the TERM before starting each of these, is there some way to associate a TERM with an app command in BASH so that it will then just be right?
Title: Is there a way to automate TERM type by app?
Post by: pgas on June 18, 2004, 02:07:46 am
You can use aliases like:

alias kismet=\'TERM=xterm-color kismet\'
alias joe=\'TERM=vt100 joe\'

try this in a shell and when you are happy  put them in something like .bashrc
Title: Is there a way to automate TERM type by app?
Post by: whit on June 18, 2004, 12:30:32 pm
Thanks. That works just fine (putting them in /home/root/.bashrc - since I\'m with limited wisdom running as root).

Anyone know how to set bash for the initial pre-X screen and ssh logins? That .bashrc doesn\'t do it. And the somewhat-standard /etc/bashrc has no effect ever.