Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zkbd on OS X
- X-seq: zsh-users 16691
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: "Daniel Serodio (lists)" <daniel.lists@xxxxxxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: zkbd on OS X
- Date: Tue, 3 Jan 2012 12:13:53 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vAieXcRmAt4xlrufN20SmUEmFd+v+Pac+486oKmeJ4c=; b=lZBnbqhcMS6V/RP5rZg+fmGwbrqPOMi6i+YbHcXXQhKHTcVE3mrLXP9FkVnTdoYO4D CU75bsdCiUBnXga4FLhqQHBWEv0tRlInIEPhI3zb3iSh0LnmkGpuUcE6yk99tS/Zanhd CTAxwT/hUSpLprq3NWz7VwLAAgmYeGAZFX3+E=
- In-reply-to: <20120103101643.GA1879@redoubt.spodhuis.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4F01FE34.1020308@mandic.com.br> <20120103101643.GA1879@redoubt.spodhuis.org>
On 3 January 2012 11:16, Phil Pennock
<zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> On 2012-01-02 at 16:57 -0200, Daniel Serodio (lists) wrote:
>> Since 4.3.5 or so[1], zkbd uses ${DISPLAY:-$VENDOR-$OSTYPE} instead of
>
>> Has anyone had this problem before? Am I doing something wrong?
>
> You're not doing anything wrong; it was an Xorg/XFree86 assumption about
> the value of $DISPLAY, ":0", ":0.0", "hostname:0" or the like.
> ("hostname:displaynumber.screennumber"). I think that this might be an
> X11 requirement ...
>
> On MacOS, it's a Unix-domain socket, used by launchd to dynamically
> start up the X11 server when a client opens the socket, and hand off to
> the running server. From an X point of view, this should still have
> been exposed as ":0" and the local transport could have been chosen
> behind the scenes to be via a Unix-domain socket which triggers the
> launchd behaviour. Alas, Mac's are gratuitously different here.
>
> How about:
> ----------------------------8< cut here >8------------------------------
> if [[ -z "$DISPLAY" || $DISPLAY == */* ]]; then
> termID="$VENDOR-$OSTYPE"
> else
> termID="$DISPLAY"
> fi
> ----------------------------8< cut here >8------------------------------
Why does zkbd use $DISPLAY at all? Why would I be getting different
sequences for urxvt in :1 than in :0? Or have to set everything up
separately when the display number changes?
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author