zsh-users
 help / Atom feed
From: Julien Nicoulaud <julien.nicoulaud@gmail.com>
To: Alwyn Kik <alwyn@proteon.com>
Cc: Mailing-list zsh-users <zsh-users@zsh.org>
Subject: Re: Center terminal on screen?
Date: Fri, 9 Aug 2019 22:36:50 +0200
Message-ID: <CA+mcLN4k_+g8Hx-yAP2G9r9ajKZTq2yC0gs5pW89aP0HRmB0Aw@mail.gmail.com> (raw)
In-Reply-To: <f5902d41-f477-d1fc-409b-370aa210d9fd@proteon.com>

[-- Attachment #1: Type: text/plain, Size: 1135 bytes --]

Positioning windows is the job of the window manager, not the shell or
terminal emulator.

You should be able to do it using wmctrl if your window manager implements
the EWMH API, which Xfce does: https://linux.die.net/man/1/wmctrl
See this answer for examples: https://askubuntu.com/a/104190/898

Le lun. 5 août 2019 à 09:48, Alwyn Kik <alwyn@proteon.com> a écrit :

> Fairly sure that's dependent on the terminal emulator you're using, not
> the shell you use in it.
>
> In your case, you would need to look up the possibility to do this with
> xfce4-terminal or install xterm and use that instead.
>
> On 8/4/19 1:23 AM, johnywhy@gmail.com wrote:
> > hi,
> >
> > is there a command to center the terminal window on the screen? On
> > arch linux / xfce, with zsh.
> >
> > This tip offers an escape sequence for positioning the window on
> > upper-left, but changing the values has no effect.
> > printf '\e[3;0;0t'
> > <
> https://apple.stackexchange.com/questions/33736/can-a-terminal-window-be-resized-with-a-terminal-command/47841#47841
> >
> >
> >
> > Thx!
> >
> >
> Cheers,
>
> Alwyn
>
>

  reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-03 23:23 johnywhy
2019-08-05  1:39 ` Grant Taylor
2019-08-05  7:47 ` Alwyn Kik
2019-08-09 20:36   ` Julien Nicoulaud [this message]
2019-08-09 22:13     ` johny why

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+mcLN4k_+g8Hx-yAP2G9r9ajKZTq2yC0gs5pW89aP0HRmB0Aw@mail.gmail.com \
    --to=julien.nicoulaud@gmail.com \
    --cc=alwyn@proteon.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

zsh-users

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox