Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Get hold of portable property. -- Charles Dickens, "Great Expectations"


devel / comp.unix.shell / OT: setting the dimensions of xterm terminal

SubjectAuthor
* OT: setting the dimensions of xterm terminalSivaram Neelakantan
`* Re: OT: setting the dimensions of xterm terminalJanis Papanagnou
 `* Re: OT: setting the dimensions of xterm terminalSivaram Neelakantan
  +* Re: OT: setting the dimensions of xterm terminalJanis Papanagnou
  |`* Re: OT: setting the dimensions of xterm terminalSivaram Neelakantan
  | `* Re: OT: setting the dimensions of xterm terminalJavier
  |  `* Re: OT: setting the dimensions of xterm terminalKeith Thompson
  |   +- Re: OT: setting the dimensions of xterm terminalJanis Papanagnou
  |   +* Re: OT: setting the dimensions of xterm terminalJavier
  |   |`- Re: OT: setting the dimensions of xterm terminalSivaram Neelakantan
  |   `- Re: OT: setting the dimensions of xterm terminalSivaram Neelakantan
  `* Re: OT: setting the dimensions of xterm terminalJavier
   `* Re: OT: setting the dimensions of xterm terminalChristian Weisgerber
    `- Re: OT: setting the dimensions of xterm terminalLew Pitcher

1
OT: setting the dimensions of xterm terminal

<85k0kdqx0e.fsf@gmail.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4257&group=comp.unix.shell#4257

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nsivaram...@gmail.com (Sivaram Neelakantan)
Newsgroups: comp.unix.shell
Subject: OT: setting the dimensions of xterm terminal
Date: Sun, 22 Aug 2021 21:42:17 +0530
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <85k0kdqx0e.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="3816b6da8175e23b516b3b3a8d83efa7";
logging-data="18284"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19m4RS5UQaL4hIzD1pQQegSAgekhVJfl1I="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)
Cancel-Lock: sha1:4v3dM6Dl+WYTPoF0pffUS6eBFbg=
sha1:1BXAilUW+bvo/G4kyv3sXwCQM2A=
User-Mail-Address: nsivaram.net@gmail.com
 by: Sivaram Neelakantan - Sun, 22 Aug 2021 16:12 UTC

In a fit of madness, I enabled X server in WSL ubuntu on my laptop.
As my laptop keeps changing quite frequently which means the screen
size keeps changing too and hence the xterm starts off at a different
position in each laptop. Now, I do know how to set the dimensions in
..[Xx]res* files but I do have to keep fiddling the numbers to get it
right so that it's offset by a few points from the top left.

Does anyone have a script or a function to compute the screen size and
suggest a typical 'fullwidth' by 40 rows size for xterm starting at the
top left?

For some reason, I've got obsessed with xterm starting off at random
positions on the screen and could only get part way to at least
iteratively, manually change the resource files repeatedly to get it
right.

!use xwininfo to get geometry
xterm*VT100.geometry: 172x39+0+23 !painfully identified as fullwidth
! was spilling over beyond screen dimensions. 39 because windows
taskbar overlays last row.

What do you do?

sivaram
--

Re: OT: setting the dimensions of xterm terminal

<sfu09f$f0p$1@news-1.m-online.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4258&group=comp.unix.shell#4258

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!news.karotte.org!news.space.net!news.m-online.net!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re: OT: setting the dimensions of xterm terminal
Date: Sun, 22 Aug 2021 19:07:59 +0200
Organization: (posted via) M-net Telekommunikations GmbH
Lines: 40
Message-ID: <sfu09f$f0p$1@news-1.m-online.net>
References: <85k0kdqx0e.fsf@gmail.com>
NNTP-Posting-Host: 2001:a61:241e:cc01:c4a3:9fa9:1171:7f54
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-Trace: news-1.m-online.net 1629652079 15385 2001:a61:241e:cc01:c4a3:9fa9:1171:7f54 (22 Aug 2021 17:07:59 GMT)
X-Complaints-To: news@news-1.m-online.net
NNTP-Posting-Date: Sun, 22 Aug 2021 17:07:59 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
X-Enigmail-Draft-Status: N1110
In-Reply-To: <85k0kdqx0e.fsf@gmail.com>
 by: Janis Papanagnou - Sun, 22 Aug 2021 17:07 UTC

On 22.08.2021 18:12, Sivaram Neelakantan wrote:
>
> In a fit of madness, I enabled X server in WSL ubuntu on my laptop.
> As my laptop keeps changing quite frequently which means the screen
> size keeps changing too and hence the xterm starts off at a different
> position in each laptop. Now, I do know how to set the dimensions in
> .[Xx]res* files but I do have to keep fiddling the numbers to get it
> right so that it's offset by a few points from the top left.
>
> Does anyone have a script or a function to compute the screen size and
> suggest a typical 'fullwidth' by 40 rows size for xterm starting at the
> top left?

I am a bit confused about what you try to achieve here with the
172x39+0+23 setting and full-screen.

If I want full-screen (with an xterm) I use option '-fullscreen'.
I also don't need offsets because the menu bar gets not convered.
And how many columns can be displayed depends also on font size.

Could it be that you see an issue where there is none?

Janis

> For some reason, I've got obsessed with xterm starting off at random
> positions on the screen and could only get part way to at least
> iteratively, manually change the resource files repeatedly to get it
> right.
>
> !use xwininfo to get geometry
> xterm*VT100.geometry: 172x39+0+23 !painfully identified as fullwidth
> ! was spilling over beyond screen dimensions. 39 because windows
> taskbar overlays last row.
>
>
> What do you do?
>
> sivaram
>

Re: OT: setting the dimensions of xterm terminal

<858s0swv02.fsf@gmail.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4261&group=comp.unix.shell#4261

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nsivaram...@gmail.com (Sivaram Neelakantan)
Newsgroups: comp.unix.shell
Subject: Re: OT: setting the dimensions of xterm terminal
Date: Mon, 23 Aug 2021 11:41:25 +0530
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <858s0swv02.fsf@gmail.com>
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="5e8f29e48bd3fd2fb284bd6270fb67cb";
logging-data="17346"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jrxfJ5kQNOuKZZWk/N2jA9S+NSBapuwE="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)
Cancel-Lock: sha1:xROBI8TEPuRHeKFzh+7Bg/P6FeQ=
sha1:tY9pHz4Yn1mwWwyw2meCjGKZKUA=
User-Mail-Address: nsivaram.net@gmail.com
 by: Sivaram Neelakantan - Mon, 23 Aug 2021 06:11 UTC

On Sun, Aug 22 2021,Janis Papanagnou wrote:

[snipped 15 lines]

>
> If I want full-screen (with an xterm) I use option '-fullscreen'.
> I also don't need offsets because the menu bar gets not convered.
> And how many columns can be displayed depends also on font size.
>
> Could it be that you see an issue where there is none?
>

-fs is making xterm spill beyond the right screen frame and below the
windows taskbar which I don't know how to fix or resolve and hence
those magic fiddly numbers.

[snipped 17 lines]

sivaram
--

Re: OT: setting the dimensions of xterm terminal

<sfvo3q$up1$1@news-1.m-online.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4262&group=comp.unix.shell#4262

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.m-online.net!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re: OT: setting the dimensions of xterm terminal
Date: Mon, 23 Aug 2021 11:00:42 +0200
Organization: (posted via) M-net Telekommunikations GmbH
Lines: 38
Message-ID: <sfvo3q$up1$1@news-1.m-online.net>
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net>
<858s0swv02.fsf@gmail.com>
NNTP-Posting-Host: 2001:a61:241e:cc01:c4a3:9fa9:1171:7f54
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-Trace: news-1.m-online.net 1629709242 31521 2001:a61:241e:cc01:c4a3:9fa9:1171:7f54 (23 Aug 2021 09:00:42 GMT)
X-Complaints-To: news@news-1.m-online.net
NNTP-Posting-Date: Mon, 23 Aug 2021 09:00:42 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
X-Enigmail-Draft-Status: N1110
In-Reply-To: <858s0swv02.fsf@gmail.com>
 by: Janis Papanagnou - Mon, 23 Aug 2021 09:00 UTC

On 23.08.2021 08:11, Sivaram Neelakantan wrote:
> On Sun, Aug 22 2021,Janis Papanagnou wrote:
>
>
> [snipped 15 lines]
>
>>
>> If I want full-screen (with an xterm) I use option '-fullscreen'.
>> I also don't need offsets because the menu bar gets not convered.
>> And how many columns can be displayed depends also on font size.
>>
>> Could it be that you see an issue where there is none?
>>
>
> -fs is making xterm spill beyond the right screen frame and below the
> windows taskbar which I don't know how to fix or resolve and hence
> those magic fiddly numbers.

I cannot tell why the "fontsize" option (-fs) does that in your
environment, in mine there's no "spilling". (I mentioned -fs
only because the font size influences screen size if rows/columns
are defined; "172x39" might fit on screen with one font size and
not fit with another one.)

But as I understand you just wanted full-screen mode, i.e.

xterm -fullscreen

Or did I miss a requirement in your original post?

Janis

>
> [snipped 17 lines]
>
> sivaram
>

Re: OT: setting the dimensions of xterm terminal

<851r6ktjkg.fsf@gmail.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4264&group=comp.unix.shell#4264

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nsivaram...@gmail.com (Sivaram Neelakantan)
Newsgroups: comp.unix.shell
Subject: Re: OT: setting the dimensions of xterm terminal
Date: Mon, 23 Aug 2021 18:16:39 +0530
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <851r6ktjkg.fsf@gmail.com>
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net>
<858s0swv02.fsf@gmail.com> <sfvo3q$up1$1@news-1.m-online.net>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="5e8f29e48bd3fd2fb284bd6270fb67cb";
logging-data="1153"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+r7giKUByo6RcCGhuk/EBA5yAKg+jX5z4="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)
Cancel-Lock: sha1:CzVkeYLsJonNWPEI2sgKSHRhzKY=
sha1:ESCaBmlyMYjUlDseQodiWUeouKQ=
User-Mail-Address: nsivaram.net@gmail.com
 by: Sivaram Neelakantan - Mon, 23 Aug 2021 12:46 UTC

On Mon, Aug 23 2021,Janis Papanagnou wrote:

[snipped 17 lines]

>
> I cannot tell why the "fontsize" option (-fs) does that in your
> environment, in mine there's no "spilling". (I mentioned -fs
> only because the font size influences screen size if rows/columns
> are defined; "172x39" might fit on screen with one font size and
> not fit with another one.)
>
> But as I understand you just wanted full-screen mode, i.e.
>
> xterm -fullscreen
>
> Or did I miss a requirement in your original post?
>
> Janis
>

oh wait, I messed up my requirements. If I launch xterm in
fullscreen, it spills over on the right and also below the taskbar of
Windows(I run wsl ubuntu). To fix that, I had to fiddle the numbers
to position xterm where I want. And was asking for any function that
computes dimensions for arbitrary laptop screen sizes as I gave up on
finding out why fullscreen was overflowing.

And you're right that changing font size from 10 to 12 does make it wonky.

Net net, ignoring why fullscreen makes it overflow, is there any
function/script that can generate a dimension set worth using?

sivaram
--

Re: OT: setting the dimensions of xterm terminal

<7r-dnWzdDPcmLLv8nZ2dnUU78RWdnZ2d@brightview.co.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4268&group=comp.unix.shell#4268

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 25 Aug 2021 16:10:19 -0500
From: inva...@invalid.invalid (Javier)
Subject: Re: OT: setting the dimensions of xterm terminal
Newsgroups: comp.unix.shell
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net> <858s0swv02.fsf@gmail.com> <sfvo3q$up1$1@news-1.m-online.net> <851r6ktjkg.fsf@gmail.com>
Message-ID: <7r-dnWzdDPcmLLv8nZ2dnUU78RWdnZ2d@brightview.co.uk>
Date: Wed, 25 Aug 2021 16:10:19 -0500
Lines: 16
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-DHeT5HMMLFUWGj2ZxIH6z2wEjg5de6OXAFk8Uuygt8wFqWloozKySVYOgyjuuubBnQikXlEHt4ZGvSN!0w74kZx03HjyjbYY4+ssoy7qINODkz0Cr35XhYLexNdp+aBr4xYRsw9zY2VY7/RuY2/R4slEAcNm!1xF9csFS2fXAMaVhGDiZvRDjdEYx
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1642
 by: Javier - Wed, 25 Aug 2021 21:10 UTC

Sivaram Neelakantan <nsivaram.net@gmail.com> wrote:
> Net net, ignoring why fullscreen makes it overflow, is there any
> function/script that can generate a dimension set worth using?

From xterm(1):

-maximized
This option indicates that xterm should ask the window manager
to maximize its layout on startup. This corresponds to the
maximized resource.

Maximizing is not the reverse of iconifying; it is possible to
do both with certain window managers.

It should work all right thing on any window manager, or at least in
those that are ICCCM compliant.

Re: OT: setting the dimensions of xterm terminal

<87ilztgnq1.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4269&group=comp.unix.shell#4269

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell
Subject: Re: OT: setting the dimensions of xterm terminal
Date: Wed, 25 Aug 2021 15:32:06 -0700
Organization: None to speak of
Lines: 41
Message-ID: <87ilztgnq1.fsf@nosuchdomain.example.com>
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net>
<858s0swv02.fsf@gmail.com> <sfvo3q$up1$1@news-1.m-online.net>
<851r6ktjkg.fsf@gmail.com>
<7r-dnWzdDPcmLLv8nZ2dnUU78RWdnZ2d@brightview.co.uk>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="3fda7fb741a212dc3fe7816f4a67cf4c";
logging-data="2414"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+UevuhMwHCYISYfHKl+RGh"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:klEZaYszAPFPmlWifAgrLjB2Spo=
sha1:+OUoxcebQLrctto1MJnkoFhr04Y=
 by: Keith Thompson - Wed, 25 Aug 2021 22:32 UTC

Javier <invalid@invalid.invalid> writes:
> Sivaram Neelakantan <nsivaram.net@gmail.com> wrote:
>> Net net, ignoring why fullscreen makes it overflow, is there any
>> function/script that can generate a dimension set worth using?
>
> From xterm(1):
>
> -maximized
> This option indicates that xterm should ask the window manager
> to maximize its layout on startup. This corresponds to the
> maximized resource.
>
> Maximizing is not the reverse of iconifying; it is possible to
> do both with certain window managers.
>
> It should work all right thing on any window manager, or at least in
> those that are ICCCM compliant.

In the environments I use most often (Cygwin on Windows 10 and
Cinnamon on Ubuntu), `xterm -maximized` does *not* do the same
thing as launching an xterm and then maximizing it.

`xterm -maximized` creates an xterm window that's big enough to fill
(almost) the entire display, but it's still an ordinary window that I
can move around and resize. With or without the `-maximized` option, if
I click the maximize button (typically in the upper right next to the
close button) or double-click the title bar, or use an appropriate
keyboard shortcut, I get a full-screen window that still has a title
bar, but I can't move or resize it without un-maximizing it.

I don't know if that means these window managers are not
ICCCM compliant. I personally would find it more convenient if
`xterm -maximized` created a true full-screen window, which is
usually what I want. Instead, I generally just launch an xterm
and maximize it manually. It's mildly annoying, but not bad enough
so far to induce me to find a better solution.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Re: OT: setting the dimensions of xterm terminal

<sg6h4d$t5k$1@news-1.m-online.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4270&group=comp.unix.shell#4270

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.karotte.org!news.space.net!news.m-online.net!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re: OT: setting the dimensions of xterm terminal
Date: Thu, 26 Aug 2021 00:44:29 +0200
Organization: (posted via) M-net Telekommunikations GmbH
Lines: 41
Message-ID: <sg6h4d$t5k$1@news-1.m-online.net>
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net>
<858s0swv02.fsf@gmail.com> <sfvo3q$up1$1@news-1.m-online.net>
<851r6ktjkg.fsf@gmail.com>
<7r-dnWzdDPcmLLv8nZ2dnUU78RWdnZ2d@brightview.co.uk>
<87ilztgnq1.fsf@nosuchdomain.example.com>
NNTP-Posting-Host: 2001:a61:2431:ec01:e4dc:60d7:d88f:8344
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-Trace: news-1.m-online.net 1629931469 29876 2001:a61:2431:ec01:e4dc:60d7:d88f:8344 (25 Aug 2021 22:44:29 GMT)
X-Complaints-To: news@news-1.m-online.net
NNTP-Posting-Date: Wed, 25 Aug 2021 22:44:29 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
X-Enigmail-Draft-Status: N1110
In-Reply-To: <87ilztgnq1.fsf@nosuchdomain.example.com>
 by: Janis Papanagnou - Wed, 25 Aug 2021 22:44 UTC

On 26.08.2021 00:32, Keith Thompson wrote:
> Javier <invalid@invalid.invalid> writes:
>> Sivaram Neelakantan <nsivaram.net@gmail.com> wrote:
>>> Net net, ignoring why fullscreen makes it overflow, is there any
>>> function/script that can generate a dimension set worth using?
>>
>> From xterm(1):
>>
>> -maximized
>> This option indicates that xterm should ask the window manager
>> to maximize its layout on startup. This corresponds to the
>> maximized resource.
>>
>> Maximizing is not the reverse of iconifying; it is possible to
>> do both with certain window managers.
>>
>> It should work all right thing on any window manager, or at least in
>> those that are ICCCM compliant.
>
> In the environments I use most often (Cygwin on Windows 10 and
> Cinnamon on Ubuntu), `xterm -maximized` does *not* do the same
> thing as launching an xterm and then maximizing it.
>
> `xterm -maximized` creates an xterm window that's big enough to fill
> (almost) the entire display, but it's still an ordinary window that I
> can move around and resize. With or without the `-maximized` option, if
> I click the maximize button (typically in the upper right next to the
> close button) or double-click the title bar, or use an appropriate
> keyboard shortcut, I get a full-screen window that still has a title
> bar, but I can't move or resize it without un-maximizing it.

Funny effect; a 'xterm -maximize' on my system fills one physical
screen, and if I pick its title bar to move it a bit around the
screen size instantly doubles (I have two logical screens running
side by side).

(But the screen-resize function on my Linux has anyway many bugs
that are similar or even more annoying.)

Janis

Re: OT: setting the dimensions of xterm terminal

<IoednaUCluKWT7v8nZ2dnUU78LnNnZ2d@brightview.co.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4271&group=comp.unix.shell#4271

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 25 Aug 2021 18:28:11 -0500
From: inva...@invalid.invalid (Javier)
Subject: Re: OT: setting the dimensions of xterm terminal
Newsgroups: comp.unix.shell
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net> <858s0swv02.fsf@gmail.com> <sfvo3q$up1$1@news-1.m-online.net> <851r6ktjkg.fsf@gmail.com> <7r-dnWzdDPcmLLv8nZ2dnUU78RWdnZ2d@brightview.co.uk> <87ilztgnq1.fsf@nosuchdomain.example.com>
Message-ID: <IoednaUCluKWT7v8nZ2dnUU78LnNnZ2d@brightview.co.uk>
Date: Wed, 25 Aug 2021 18:28:11 -0500
Lines: 53
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-1g9SoFH0QZo80MWAsZZfxz2zfeKs9mtVwI+Ip2Irf3XT+4LixX8wauIV0RI+SBtFvCtEhhh53C5bNlc!JNcubR8ywxwKTakFedRVEkncrlfhu4msSwtcKkAMqSbGgOmxvhuJBCwmmFgSYY5WrTe1gRG9Jd1g!4ekmDtfkmM6zHttrrxXi9Rhe7q/O
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3635
 by: Javier - Wed, 25 Aug 2021 23:28 UTC

Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
> Javier <invalid@invalid.invalid> writes:
>> Sivaram Neelakantan <nsivaram.net@gmail.com> wrote:
>>> Net net, ignoring why fullscreen makes it overflow, is there any
>>> function/script that can generate a dimension set worth using?
>>
>> From xterm(1):
>>
>> -maximized
>> This option indicates that xterm should ask the window manager
>> to maximize its layout on startup. This corresponds to the
>> maximized resource.
>>
>> Maximizing is not the reverse of iconifying; it is possible to
>> do both with certain window managers.
>>
>> It should work all right thing on any window manager, or at least in
>> those that are ICCCM compliant.
>
> In the environments I use most often (Cygwin on Windows 10 and
> Cinnamon on Ubuntu), `xterm -maximized` does *not* do the same
> thing as launching an xterm and then maximizing it.
>
> `xterm -maximized` creates an xterm window that's big enough to fill
> (almost) the entire display, but it's still an ordinary window that I
> can move around and resize. With or without the `-maximized` option, if
> I click the maximize button (typically in the upper right next to the
> close button) or double-click the title bar, or use an appropriate
> keyboard shortcut, I get a full-screen window that still has a title
> bar, but I can't move or resize it without un-maximizing it.
>
> I don't know if that means these window managers are not
> ICCCM compliant. I personally would find it more convenient if
> `xterm -maximized` created a true full-screen window, which is
> usually what I want. Instead, I generally just launch an xterm
> and maximize it manually. It's mildly annoying, but not bad enough
> so far to induce me to find a better solution.
>

I'm getting the same behaviour in fvwm2. I get an xterm whose size is
the root window + the size of the titlebar. I think a default
maximized size and default positioning policy needs to be defined in
the window manager config. But that would be window-manager specific.

I guess the best is just to write an script for getting the root
window size and calculate teh xterm size from that:

#!/usr/bin/env bash
w=$(xwininfo -root | sed -n '/ Width: /s/ Width: //p')
h=$(xwininfo -root | sed -n '/ Height: /s/ Height: //p')
xterm -fn 10x20 -geometry $((w/10-12))x$((h/20-9))+0+0

There is also xprop which gives more complete information than xwininfo

Re: OT: setting the dimensions of xterm terminal

<8bidnYFOK8-6Sbv8nZ2dnUU78UednZ2d@brightview.co.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4272&group=comp.unix.shell#4272

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 25 Aug 2021 18:37:11 -0500
From: inva...@invalid.invalid (Javier)
Subject: Re: OT: setting the dimensions of xterm terminal
Newsgroups: comp.unix.shell
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net> <858s0swv02.fsf@gmail.com>
Message-ID: <8bidnYFOK8-6Sbv8nZ2dnUU78UednZ2d@brightview.co.uk>
Date: Wed, 25 Aug 2021 18:37:11 -0500
Lines: 13
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-zbWSruCzZbWW/klsGweyXEDd4B7DVbKlYjsSUBd5XftyLWZux5yXTRg4QRiq/fPXUWHJKfR9gOr1Zx3!aSezm1P3w1lI3nXnGc0p3hJ/XSGYkaANFTmWmSxTJmksCcEiyPMnVEWGGyMw0x/lgxMGiODGEDvj!Yz0xTLG65951SfXnqqOqHZPw4khP
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1382
 by: Javier - Wed, 25 Aug 2021 23:37 UTC

Sivaram Neelakantan <nsivaram.net@gmail.com> wrote:
>
> -fs is making xterm spill beyond the right screen frame and below the
> windows taskbar which I don't know how to fix or resolve and hence
> those magic fiddly numbers.
>
> [snipped 17 lines]
>
> sivaram

I don't find that a problem. In xterm you can switch between
full-screen and default size with Alt-Enter. The same key combination
that was used for MS-DOS consoles in windows.

Re: OT: setting the dimensions of xterm terminal

<85k0k8cqsk.fsf@gmail.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4273&group=comp.unix.shell#4273

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nsivaram...@gmail.com (Sivaram Neelakantan)
Newsgroups: comp.unix.shell
Subject: Re: OT: setting the dimensions of xterm terminal
Date: Thu, 26 Aug 2021 18:21:39 +0530
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <85k0k8cqsk.fsf@gmail.com>
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net>
<858s0swv02.fsf@gmail.com> <sfvo3q$up1$1@news-1.m-online.net>
<851r6ktjkg.fsf@gmail.com>
<7r-dnWzdDPcmLLv8nZ2dnUU78RWdnZ2d@brightview.co.uk>
<87ilztgnq1.fsf@nosuchdomain.example.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="ff5641ae9286a04c3a915c0c6f982444";
logging-data="31795"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qgzixEVP/7gY1S+i36HZHEq8I3yn+eSo="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)
Cancel-Lock: sha1:aHUyfh5GD1uqaaLkMCRE1U8nRhE=
sha1:js9ueDFUkyrN2qTx3DgEmqNyps8=
User-Mail-Address: nsivaram.net@gmail.com
 by: Sivaram Neelakantan - Thu, 26 Aug 2021 12:51 UTC

On Wed, Aug 25 2021,Keith Thompson wrote:

[snipped 17 lines]

>
> In the environments I use most often (Cygwin on Windows 10 and
> Cinnamon on Ubuntu), `xterm -maximized` does *not* do the same
> thing as launching an xterm and then maximizing it.
>
> `xterm -maximized` creates an xterm window that's big enough to fill
> (almost) the entire display, but it's still an ordinary window that I
> can move around and resize. With or without the `-maximized` option, if
> I click the maximize button (typically in the upper right next to the
> close button) or double-click the title bar, or use an appropriate
> keyboard shortcut, I get a full-screen window that still has a title
> bar, but I can't move or resize it without un-maximizing it.
>
> I don't know if that means these window managers are not
> ICCCM compliant. I personally would find it more convenient if
> `xterm -maximized` created a true full-screen window, which is
> usually what I want. Instead, I generally just launch an xterm
> and maximize it manually. It's mildly annoying, but not bad enough
> so far to induce me to find a better solution.

this is what I get too.

sivaram
--

Re: OT: setting the dimensions of xterm terminal

<85fsuwcqrn.fsf@gmail.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4274&group=comp.unix.shell#4274

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nsivaram...@gmail.com (Sivaram Neelakantan)
Newsgroups: comp.unix.shell
Subject: Re: OT: setting the dimensions of xterm terminal
Date: Thu, 26 Aug 2021 18:22:12 +0530
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <85fsuwcqrn.fsf@gmail.com>
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net>
<858s0swv02.fsf@gmail.com> <sfvo3q$up1$1@news-1.m-online.net>
<851r6ktjkg.fsf@gmail.com>
<7r-dnWzdDPcmLLv8nZ2dnUU78RWdnZ2d@brightview.co.uk>
<87ilztgnq1.fsf@nosuchdomain.example.com>
<IoednaUCluKWT7v8nZ2dnUU78LnNnZ2d@brightview.co.uk>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="ff5641ae9286a04c3a915c0c6f982444";
logging-data="31795"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19n4I6cE+Ioif9QjIwKlSlofq59PhWgOwM="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)
Cancel-Lock: sha1:1Hwl5VZENHeTLYSDXXxpZrM6sY0=
sha1:rcIXfoSFmtIrMDhBpJyE2HNqubU=
User-Mail-Address: nsivaram.net@gmail.com
 by: Sivaram Neelakantan - Thu, 26 Aug 2021 12:52 UTC

On Wed, Aug 25 2021,Javier wrote:

[snipped 46 lines]

>
> #!/usr/bin/env bash
> w=$(xwininfo -root | sed -n '/ Width: /s/ Width: //p')
> h=$(xwininfo -root | sed -n '/ Height: /s/ Height: //p')
> xterm -fn 10x20 -geometry $((w/10-12))x$((h/20-9))+0+0
>
> There is also xprop which gives more complete information than xwininfo

Thanks, I'll try this out.

sivaram
--

Re: OT: setting the dimensions of xterm terminal

<slrnsifagm.1ls9.naddy@lorvorc.mips.inka.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4275&group=comp.unix.shell#4275

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!inka.de!mips.inka.de!.POSTED.localhost!not-for-mail
From: nad...@mips.inka.de (Christian Weisgerber)
Newsgroups: comp.unix.shell
Subject: Re: OT: setting the dimensions of xterm terminal
Date: Thu, 26 Aug 2021 14:49:58 -0000 (UTC)
Message-ID: <slrnsifagm.1ls9.naddy@lorvorc.mips.inka.de>
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net>
<858s0swv02.fsf@gmail.com>
<8bidnYFOK8-6Sbv8nZ2dnUU78UednZ2d@brightview.co.uk>
Injection-Date: Thu, 26 Aug 2021 14:49:58 -0000 (UTC)
Injection-Info: lorvorc.mips.inka.de; posting-host="localhost:::1";
logging-data="55178"; mail-complaints-to="usenet@mips.inka.de"
User-Agent: slrn/1.0.3 (FreeBSD)
 by: Christian Weisgerber - Thu, 26 Aug 2021 14:49 UTC

On 2021-08-25, Javier <invalid@invalid.invalid> wrote:

> I don't find that a problem. In xterm you can switch between
> full-screen and default size with Alt-Enter.

That's not a standard feature of xterm. Either your setup adds a
key-binding action, or it's a feature of your window manager.

--
Christian "naddy" Weisgerber naddy@mips.inka.de

Re: OT: setting the dimensions of xterm terminal

<sg8ckt$rk7$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4276&group=comp.unix.shell#4276

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.unix.shell
Subject: Re: OT: setting the dimensions of xterm terminal
Date: Thu, 26 Aug 2021 15:40:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <sg8ckt$rk7$1@dont-email.me>
References: <85k0kdqx0e.fsf@gmail.com> <sfu09f$f0p$1@news-1.m-online.net>
<858s0swv02.fsf@gmail.com>
<8bidnYFOK8-6Sbv8nZ2dnUU78UednZ2d@brightview.co.uk>
<slrnsifagm.1ls9.naddy@lorvorc.mips.inka.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 26 Aug 2021 15:40:13 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f191c1925a68b28ffc77dafcee1a783a";
logging-data="28295"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ND7Cek3RqnnpvqUa2Tsl033AQ/hoHBtg="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:rC9b7Ur3cC3MwDiLv6XdBVTa/lk=
 by: Lew Pitcher - Thu, 26 Aug 2021 15:40 UTC

On Thu, 26 Aug 2021 14:49:58 +0000, Christian Weisgerber wrote:

> On 2021-08-25, Javier <invalid@invalid.invalid> wrote:
>
>> I don't find that a problem. In xterm you can switch between
>> full-screen and default size with Alt-Enter.
>
> That's not a standard feature of xterm. Either your setup adds a
> key-binding action, or it's a feature of your window manager.

I beg to differ. This feature works in (at least) xterm -version X.Org 7.7.0(367),
and is documented in that version's manpage.

XTERM(1) X Window System XTERM(1)

NAME
xterm - terminal emulator for X

SYNOPSIS
xterm [-toolkitoption ...] [-option ...] [shell]

DESCRIPTION
The xterm program is a terminal emulator for the X Window System.
...

Default Key Bindings
The default bindings in the VTxxx window use the SELECT token, which is
set by the selectToClipboard resource. These are for the vt100 widget:
...
Alt <Key>Return:fullscreen() \n\

--
Lew Pitcher
"In Skills, We Trust"

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor