[Top][All Lists]

[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. :-)


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.)


-------- 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).

# 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

Rough explanation:

If there is no session named "multiscreen" then
  Create it in a new xterm.
  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.


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

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

reply via email to

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