OT: linux vs vt100 termcap problems + screen - help!
Bill Campbell
bill at celestial.com
Thu Dec 9 10:27:26 PST 2010
On Wed, Dec 08, 2010, Fairlight wrote:
>>From inside the gravity well of a singularity, Brian K. White shouted:
>> I have not looked deeply into it since I haven't cared yet, but trying
>> to help someone else here the other day I saw that screen sets TERM to
>> "screen.${TERM}", and in /etc/termcap there are screen.linux,
>> screen.rxvt etc...
>
>THANK YOU!
>
>Setting local to linux and remote to screen.linux works perfectly for both
>yast on Linux, and mutt on Solaris and Linux.
>
>My only real annoyance is that I might log into the Solaris server either
>directly from Anzio (or PuTTY), or I may log in from inside screen--both
>from the same IP#--and they won't enable sshd environment setting for users
>due to (valid) security concerns. So I have yet to figure out an
>-automated- way of making my login process decide if it should run linux or
>screen.linux, since I'm coming from the same IP# no matter what (in this
>case, anyway). If anyone has a genius solution to that, let me know. I've
>been over things six ways from Sunday and can't figure out a decent way to
>determine a decent way to automate setting TERM to the right one yet.
Not a genius solution, but copying the FilePro ``p'' command to
/usr/local/bin in the PATH before /usr/bin, put in an appropriate
``case'' statement or other tests to look at the TERM environment
variable and reset as necessary.
Another thing we have done for years is to copy /etc/termcap to
/usr/local/etc/termcap and point the TERMCAP environment variable
to this. Any changes made to that will not be affected by system
updates, and it's easy to use ``diff'' to see what changes might
have been made in /etc/termcap that need to be moved over.
Bill
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186 Skype: jwccsllc (206) 855-5792
It is forbidden to kill; therefore all murderers are punished
unless they kill in large numbers and to the sound of trumpets.
-- Voltaire Rights (1771)
More information about the Filepro-list
mailing list