Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2024 19:54:03 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        "Pokala, Ravi" <rpokala@vdura.com>
Cc:        Jessica Clarke <jrtc27@freebsd.org>, Warner Losh <imp@freebsd.org>,  "src-committers@freebsd.org" <src-committers@freebsd.org>,  "dev-commits-src-all@freebsd.org" <dev-commits-src-all@freebsd.org>,  "dev-commits-src-main@freebsd.org" <dev-commits-src-main@freebsd.org>
Subject:   Re: 101afbc6ee2f - main - loader/menu: tweak for added line
Message-ID:  <CANCZdfqWTRwVKCrcRv3pgDCeKh9yyv8QJn5cbC4b-7y68Lo4cA@mail.gmail.com>
In-Reply-To: <98A87469-0F47-4D0C-8F17-382E664C96AB@panasas.com>
References:  <202408222337.47MNbMeJ041064@gitrepo.freebsd.org> <895EA850-1C39-40F6-9710-524C4B7342CA@freebsd.org> <CANCZdfr9C7zrba1d09W5zfQDhaknGXVCZvPYcVmA%2BAkeCXxpCA@mail.gmail.com> <98A87469-0F47-4D0C-8F17-382E664C96AB@panasas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000003b74e30620642bb4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, Aug 23, 2024 at 12:37=E2=80=AFAM Pokala, Ravi <rpokala@vdura.com> w=
rote:

> > 80x24 used to be very relevant for Serial, first as the typical termina=
l
> in the 70s and 80s, then in the default for xterm in the 90s and 2000s. B=
ut
> in 2024, I'm not sure there's many people still confining themselves to
> that, but maybe I'm ignorant of why my breaking it might be relevant.
>
> There's still lots of gear out there which uses RS-232 serial over DB9,
> which uses 80x24.
>

That needs the FreeBSD boot loader to run in menu mode on it? How many
80x24 terminals are there connected to FreeBSD machines as consoles? Or is
this some other connection? And can I get a rough idea where they might be
deployed?

I still need to see if this is an actual problem in 80x24 or not...

Warner


> -Ravi (rpokala@)
>
>
> From: <owner-src-committers@freebsd.org> on behalf of Warner Losh <
> imp@bsdimp.com>
> Date: Thursday, August 22, 2024 at 19:03
> To: Jessica Clarke <jrtc27@freebsd.org>
> Cc: Warner Losh <imp@freebsd.org>, "src-committers@freebsd.org" <
> src-committers@freebsd.org>, "dev-commits-src-all@freebsd.org" <
> dev-commits-src-all@freebsd.org>, "dev-commits-src-main@freebsd.org" <
> dev-commits-src-main@freebsd.org>
> Subject: Re: git: 101afbc6ee2f - main - loader/menu: tweak for added line
>
>
>
> On Thu, Aug 22, 2024 at 5:52=E2=80=AFPM Jessica Clarke <mailto:jrtc27@fre=
ebsd.org>
> wrote:
> On 23 Aug 2024, at 00:37, Warner Losh <imp@FreeBSD.org> wrote:
> >
> > The branch main has been updated by imp:
> >
> > URL:
> https://cgit.FreeBSD.org/src/commit/?id=3D101afbc6ee2f06f77e6886f1f3ffe11=
5c579967c
> >
> > commit 101afbc6ee2f06f77e6886f1f3ffe115c579967c
> > Author:     Warner Losh <imp@FreeBSD.org>
> > AuthorDate: 2024-08-22 23:28:51 +0000
> > Commit:     Warner Losh <imp@FreeBSD.org>
> > CommitDate: 2024-08-22 23:28:51 +0000
> >
> >    loader/menu: tweak for added line
> >
> >    I added a line to the menu, but didn't adjust so things were a
> >    line off. Make the necessary adjustments.
> >
> >    Fixes: 7cb65be96d47
> >    Sponsored by: Netflix
> >    MFC After: 3 days
> > ---
> > stand/lua/drawer.lua | 2 +-
> > stand/lua/menu.lua   | 2 +-
> > 2 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua
> > index a009b78164df..3a462930b86b 100644
> > --- a/stand/lua/drawer.lua
> > +++ b/stand/lua/drawer.lua
> > @@ -472,7 +472,7 @@ logodefs =3D {
> > brand_position =3D {x =3D 2, y =3D 1}
> > logo_position =3D {x =3D 46, y =3D 4}
> > menu_position =3D {x =3D 5, y =3D 10}
> > -frame_size =3D {w =3D 42, h =3D 13}
> > +frame_size =3D {w =3D 42, h =3D 14}
> > default_shift =3D {x =3D 0, y =3D 0}
> > shift =3D default_shift
> >
> > diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua
> > index 0587e5ae6586..ed84360d93b0 100644
> > --- a/stand/lua/menu.lua
> > +++ b/stand/lua/menu.lua
> > @@ -535,7 +535,7 @@ end
> >
> > function menu.autoboot(delay)
> > local x =3D loader.getenv("loader_menu_timeout_x") or 4
> > - local y =3D loader.getenv("loader_menu_timeout_y") or 23
> > + local y =3D loader.getenv("loader_menu_timeout_y") or 24
> > local endtime =3D loader.time() + delay
> > local time
> > local last
>
> Does this mean we no longer fit a standard 80x24 terminal, or does this
> place it on the 24th row so just fits?
>
> I've not tested that configuration, so I don't know. It's my guess it wil=
l
> be fine.
>
> I wonder if this configuration is relevant, though. 80x25 is the smallest
> text
> console in common use in FreeBSD these days. 80x24 used to be very releva=
nt
> for Serial, first as the typical terminal in the 70s and 80s, then in the
> default
> for xterm in the 90s and 2000s. But in 2024, I'm not sure there's many
> people
> still confining themselves to that, but maybe I'm ignorant of why my
> breaking
> it might be relevant.
>
> I'll test it this weekend...
>
> Warner
>
>

--0000000000003b74e30620642bb4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Fri, Aug 23, 2024 at 12:37=E2=80=
=AFAM Pokala, Ravi &lt;<a href=3D"mailto:rpokala@vdura.com">rpokala@vdura.c=
om</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=
">&gt; 80x24 used to be very relevant for Serial, first as the typical term=
inal in the 70s and 80s, then in the default for xterm in the 90s and 2000s=
. But in 2024, I&#39;m not sure there&#39;s many people still confining the=
mselves to that, but maybe I&#39;m ignorant of why my breaking it might be =
relevant.<br>
<br>
There&#39;s still lots of gear out there which uses RS-232 serial over DB9,=
 which uses 80x24.<br></blockquote><div><br></div><div>That needs the FreeB=
SD boot loader to run in menu mode on it? How many 80x24 terminals are ther=
e connected to FreeBSD machines as consoles? Or is this some other connecti=
on? And can I get a rough idea where they might be deployed?</div><div><br>=
</div><div>I still need to see if this is an actual problem in 80x24 or not=
...</div><div><br></div><div>Warner</div><div>=C2=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">
-Ravi (rpokala@)<br>
<br>
<br>
From: &lt;<a href=3D"mailto:owner-src-committers@freebsd.org" target=3D"_bl=
ank">owner-src-committers@freebsd.org</a>&gt; on behalf of Warner Losh &lt;=
<a href=3D"mailto:imp@bsdimp.com" target=3D"_blank">imp@bsdimp.com</a>&gt;<=
br>
Date: Thursday, August 22, 2024 at 19:03<br>
To: Jessica Clarke &lt;<a href=3D"mailto:jrtc27@freebsd.org" target=3D"_bla=
nk">jrtc27@freebsd.org</a>&gt;<br>
Cc: Warner Losh &lt;<a href=3D"mailto:imp@freebsd.org" target=3D"_blank">im=
p@freebsd.org</a>&gt;, &quot;<a href=3D"mailto:src-committers@freebsd.org" =
target=3D"_blank">src-committers@freebsd.org</a>&quot; &lt;<a href=3D"mailt=
o:src-committers@freebsd.org" target=3D"_blank">src-committers@freebsd.org<=
/a>&gt;, &quot;<a href=3D"mailto:dev-commits-src-all@freebsd.org" target=3D=
"_blank">dev-commits-src-all@freebsd.org</a>&quot; &lt;<a href=3D"mailto:de=
v-commits-src-all@freebsd.org" target=3D"_blank">dev-commits-src-all@freebs=
d.org</a>&gt;, &quot;<a href=3D"mailto:dev-commits-src-main@freebsd.org" ta=
rget=3D"_blank">dev-commits-src-main@freebsd.org</a>&quot; &lt;<a href=3D"m=
ailto:dev-commits-src-main@freebsd.org" target=3D"_blank">dev-commits-src-m=
ain@freebsd.org</a>&gt;<br>
Subject: Re: git: 101afbc6ee2f - main - loader/menu: tweak for added line<b=
r>
<br>
<br>
<br>
On Thu, Aug 22, 2024 at 5:52=E2=80=AFPM Jessica Clarke &lt;mailto:<a href=
=3D"mailto:jrtc27@freebsd.org" target=3D"_blank">jrtc27@freebsd.org</a>&gt;=
 wrote:<br>
On 23 Aug 2024, at 00:37, Warner Losh &lt;imp@FreeBSD.org&gt; wrote:<br>
&gt; <br>
&gt; The branch main has been updated by imp:<br>
&gt; <br>
&gt; URL: <a href=3D"https://cgit.FreeBSD.org/src/commit/?id=3D101afbc6ee2f=
06f77e6886f1f3ffe115c579967c" rel=3D"noreferrer" target=3D"_blank">https://=
cgit.FreeBSD.org/src/commit/?id=3D101afbc6ee2f06f77e6886f1f3ffe115c579967c<=
/a><br>
&gt; <br>
&gt; commit 101afbc6ee2f06f77e6886f1f3ffe115c579967c<br>
&gt; Author:=C2=A0 =C2=A0 =C2=A0Warner Losh &lt;imp@FreeBSD.org&gt;<br>
&gt; AuthorDate: 2024-08-22 23:28:51 +0000<br>
&gt; Commit:=C2=A0 =C2=A0 =C2=A0Warner Losh &lt;imp@FreeBSD.org&gt;<br>
&gt; CommitDate: 2024-08-22 23:28:51 +0000<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 loader/menu: tweak for added line<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 I added a line to the menu, but didn&#39;t adjust so thin=
gs were a<br>
&gt;=C2=A0 =C2=A0 line off. Make the necessary adjustments.<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 Fixes: 7cb65be96d47<br>
&gt;=C2=A0 =C2=A0 Sponsored by: Netflix<br>
&gt;=C2=A0 =C2=A0 MFC After: 3 days<br>
&gt; ---<br>
&gt; stand/lua/drawer.lua | 2 +-<br>
&gt; stand/lua/menu.lua=C2=A0 =C2=A0| 2 +-<br>
&gt; 2 files changed, 2 insertions(+), 2 deletions(-)<br>
&gt; <br>
&gt; diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua<br>
&gt; index a009b78164df..3a462930b86b 100644<br>
&gt; --- a/stand/lua/drawer.lua<br>
&gt; +++ b/stand/lua/drawer.lua<br>
&gt; @@ -472,7 +472,7 @@ logodefs =3D {<br>
&gt; brand_position =3D {x =3D 2, y =3D 1}<br>
&gt; logo_position =3D {x =3D 46, y =3D 4}<br>
&gt; menu_position =3D {x =3D 5, y =3D 10}<br>
&gt; -frame_size =3D {w =3D 42, h =3D 13}<br>
&gt; +frame_size =3D {w =3D 42, h =3D 14}<br>
&gt; default_shift =3D {x =3D 0, y =3D 0}<br>
&gt; shift =3D default_shift<br>
&gt; <br>
&gt; diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua<br>
&gt; index 0587e5ae6586..ed84360d93b0 100644<br>
&gt; --- a/stand/lua/menu.lua<br>
&gt; +++ b/stand/lua/menu.lua<br>
&gt; @@ -535,7 +535,7 @@ end<br>
&gt; <br>
&gt; function menu.autoboot(delay)<br>
&gt; local x =3D loader.getenv(&quot;loader_menu_timeout_x&quot;) or 4<br>
&gt; - local y =3D loader.getenv(&quot;loader_menu_timeout_y&quot;) or 23<b=
r>
&gt; + local y =3D loader.getenv(&quot;loader_menu_timeout_y&quot;) or 24<b=
r>
&gt; local endtime =3D loader.time() + delay<br>
&gt; local time<br>
&gt; local last<br>
<br>
Does this mean we no longer fit a standard 80x24 terminal, or does this<br>
place it on the 24th row so just fits?<br>
<br>
I&#39;ve not tested that configuration,=C2=A0so I don&#39;t know. It&#39;s =
my guess it will be fine.<br>
<br>
I wonder if this configuration is relevant, though. 80x25 is the smallest t=
ext<br>
console in common use in FreeBSD these days. 80x24 used to be very relevant=
<br>
for Serial, first as the typical terminal in the 70s and 80s, then in the d=
efault<br>
for xterm in the 90s and 2000s. But in 2024, I&#39;m not sure there&#39;s m=
any people<br>
still confining themselves to that, but maybe I&#39;m ignorant of why my br=
eaking<br>
it might be relevant.<br>
<br>
I&#39;ll test it this weekend...<br>
<br>
Warner<br>
<br>
</blockquote></div></div>

--0000000000003b74e30620642bb4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqWTRwVKCrcRv3pgDCeKh9yyv8QJn5cbC4b-7y68Lo4cA>