Author Topic: Is there a way to automate TERM type by app?  (Read 2185 times)

whit

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Is there a way to automate TERM type by app?
« 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?

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Is there a way to automate TERM type by app?
« Reply #1 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
SLC-860 cacko / senao wifi

whit

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Is there a way to automate TERM type by app?
« Reply #2 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.