solarg wrote:

>> Try this
>>
>> run screen with options :
>>
>> screen -a -s /usr/xpg4/bin/sh -t vt100 -T vt100
>>
>> try that first and then feel free to change the shell to /bin/ksh93 or
>> whatever you like.
>>
> 
> it only works with a new session, not a current session:
> henry at ultra20:~$ screen -a -r 869.pts-2.ultra20 -t vt100 -T vt100
> henry at ultra20:~$ echo $TERM
> screen
> 
> i don't like this solution, because it works without option in Solaris 
> 10. I'm sure that something is lacking in my os2009.06, but i don't know 
> why.
> 

after reading the screen's man pages, i understand that dennis is 
offering the better solution, bacause it is said:
      In each window's environment screen opens, the  $TERM  vari-
      able  is set to "screen" by default. But when no description
      for "screen" is installed in the local termcap  or  terminfo
      data  base,  you set $TERM to - say - "vt100". This won't do
      much harm, as screen is VT100/ANSI compatible.  The  use  of
      the  "term"  command is discouraged for non-default purpose.
      That is, one may want  to  specify  special  $TERM  settings
      (e.g.  vt100) for the next "screen rlogin othermachine" com-
      mand. Use the command "screen -T vt100 rlogin  othermachine"
      rather than setting and resetting the default.

So if it was working in solaris 10, my guess is that it is due to the 
packaging of CSWscreen, that set TERM by default...
So the behaviour of screen in os2009.06 seems correct.

gerard

Reply via email to