1828402 Members
4072 Online
109977 Solutions
New Discussion

About the screen

 
juno2
Super Advisor

About the screen

I try to use the command "screen -R" to open a new screen for background process , but the new screen seens are not the same system setting eg. TERM and PATH etc, how to preserve the same system setting when open a new screen ? thx.
5 REPLIES 5
Chris Wilshaw
Honored Contributor

Re: About the screen

Add the line

export ENV=.kshrc

to /etc/profile, then set up your TERM PATH etc variable changes in $HOME/.kshrc

This will work for screen, and any other utilities that allow multiple sessions.
juno2
Super Advisor

Re: About the screen

thx reply, when I open a new screen "screen -R" , I tried to check the TERM of this new screen
# echo $TERM
screen

, I tried set the .bash_profile to vt220 , then open a new screen , the new screen will be changed , how can I set the TERM of new screen remain unchange ? thx.
juno2
Super Advisor

Re: About the screen

is it possible to make the system settings(eg. TERM etc. )to unchange when I open a new screen ? thx.
juno2
Super Advisor

Re: About the screen

After I hv added a new screen , then the TERM setting of the new screen will be changed , is it possible to preserve all the settings ? thx.
T G Manikandan
Honored Contributor

Re: About the screen

You should have posted in under Linux section.

you can use the $HOME/.screenrc file for the settings.

Each time you run $screen this file is read.

Also,you can use

$screen -T vt220

Revert on further help