hi kevin:
I tried that and it looks good, in terms that my apps inside
screen now get retained across X reboot...but then I find
another issue that make it hard to use this approach in
practice:
it looks now I can't copy$paste between vim and other apps, or
even between vim instances I was running inside screen...
previously I can at least achieve that with following vim
config:
if match($TERM, "screen")!=-1
set term=xterm
let g:GNU_Screen_used = 1
else
let g:GNU_Screen_used = 0
endif
function! InScreen(command)
return g:GNU_Screen_used ? 'screen '.a:command : a:command
endfunction
I double maybe this related to the fact that, with this approach now
screen (and all its child) is not a child of X, so it has problem to
access the X selections or clipboards...
any idea?
regards
ping
On 07/07/2011 03:21 PM, ping wrote:
hi Kevin:
thanks and that sounds exactly what my issue was.
I'll try start screen from outside of X and see if it is ok.
regards
ping
On 07/07/2011 09:37 AM, Kevin Van Workum wrote:
Ping,
If you start screen from an X session, then screen is a
child of X. So when X dies, so does screen. To do what you
want, you would have to start screen outside of X.
There are many ways to do this. For example, you could
start a screen session at boot time from rc.local. Or you
could just switch to a different tty (e.g. ctrl-alt-F2) and
start a new screen session there. Then go back to X
(ctrl-alt-F7) and reattach to that screen session.
Kevin
On Mon, Jul 4, 2011 at 2:44 PM, ping
<address@hidden>
wrote:
guys:
I use screen for years and I'm happy with it.
one thing annoyed me a lot is everytime when i need
to reload X (it's not stable), and when I come back
and find everything in my screen (vim, news, mutt,
telnet, ssh,...everything) also went away, the
session/windows are there though. searching the
internet I haven't got much useful info.
people are saying they use screen to get persistent
sessions across X...how can i archive that?
thanks!
regards
ping
_______________________________________________
screen-users mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/screen-users
--
Kevin Van Workum, PhD
Sabalcore Computing Inc.
Run your code on 500 processors.
Sign up for a free trial account.
www.sabalcore.com
877-492-8027 ext. 11
|