screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to detach multi-display session from one single display (emacscl


From: John Davidorff Pell
Subject: Re: how to detach multi-display session from one single display (emacsclient question)
Date: Thu, 16 Mar 2006 20:48:29 -0800

A really great feature of the next release of screen, which I've been waiting a REALLY LONG TIME for, is an enhancement to the -p option. In the next release, you will be able to do "screen -X multiscreen -p +" and it will create a new screen window in the specified session to attach to. How cool is that? Well, not that cool since it's not released... ;-)

I've got a patch, but its been on the list before so I'm sure you can find it. If you can't, e-mail me off-list and I'll send it over. :-)

JP


On 15 Mar 2006, at 11:57, Torsten Scheck wrote:

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



--
<Beeth> Girls are like internet domain names, the ones I like are already
        taken.
 <honx> well, you can stil get one from a strange country :-P
                       -- geekissues.org quote #369





reply via email to

[Prev in Thread] Current Thread [Next in Thread]