Gregor Zattler wrote on 03/14/2006 10:00 PM:
[...]
I use this simple line of bash script:
{ emacsclient --alternate-editor "emacs -nw" "$@" ; \
screen -d emacsserver ; } &>/dev/null & screen -x emacsserver
I don't really get what you are doing here, as I don't have emacs at
hand and as I don't know what emacsclient does. Anyway, I assume
this is
what you want to do (instead of screen -d emacsserver):
screen -X detach
[...]
this script several times from several windows for different files I
will see the last opened file in all windows (that's not optimal
but o.k.). When done with editing one file (via ^x# aka
[...]
As for the window control: I have a weird setup, which works fine for
me. See below for details. Maybe it helps. (I've sent this summary
some
time ago, but I guess the message got never approved by the
moderator as
I wasn't list member then.)
Cheers,
Torsten
-------- Original Message --------
Subject: Script for taking full advantage of screen in X environment
Date: Thu, 15 Sep 2005 16:55:26 +0200
From: Torsten Scheck <address@hidden>
To: address@hidden
Dear fellow screen users:
My working environment is X with lots of xterms (in my case urxvt) and
I'm quite happy with this. But there have been many occasions, when I
wished that I were in a screen session, but I wasn't. To solve this
problem I use a script, which creates a new window in a shared screen
session for each new xterm. The script is bound to a keyboard shortcut
of my window manager (ion3).
/usr/local/bin/multiscreen
---------------8<---------------8<---------------
#!/bin/sh
# tested with debian
screen -x multiscreen -X eval "screen -t $$" other \
&& x-terminal-emulator -e screen -x multiscreen -p $$ \
|| x-terminal-emulator -e screen -S multiscreen
---------------8<---------------8<---------------
Rough explanation:
If there is no session named "multiscreen" then
Create it in a new xterm.
else
Send to the existing session commands to create a new screen-window
with a unique title and switch back to previous window.
Create a new xterm and display the newly created screen window.
It works for me: I can use screen features, when I need them.
Otherwise
screen is transparent to my X working environment. (Except for the
missing xterm scrollback buffer, but I prefer screen's scrollback
history buffer anyway.)
As I haven't been a screen power user in the past, I'd be
interested, if
there are better ways to accomplish screen integration in X.
Cheers,
Torsten
--
Torsten Scheck <address@hidden> Jabber:address@hidden
GnuPG 1024D/728E 6696 F43D D622 78F1 F481 45C0 2147 69AB DD54
software engineer:open standards/access/knowledge:enthgnusiast
_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users