Re: ANSI test scripts to test terminal capabilities?
Dennis Williamson <[email protected]> Tue, 29 Aug 2023 23:17:08 -0500
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <CANaoh6KdBokDs9rAmE17N1_m7oqQm3grzd1snAuWCwkFmR4dzA@mail.gmail.com> |
--00000000000015928306041c341f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Aug 29, 2023 at 10:34=E2=80=AFPM Dan Mahoney (Gushi) <[email protected]= shi.org> wrote: > On Tue, 29 Aug 2023, Dennis Williamson wrote: > > > I've found https://gist.github.com/sdeaton2/8450564 but I'm > looking for > > something more complete. > > > > Does anyone know of such a thing? > > > A) Use tput or an ANSI library to obtain the code sequences based on th= e > TERM setting instead of hard coding them. > > It's not my code -- I just wanted to be sure my terminal is doing "the > right thing" before I get dozens of "works on my device" responses. I'm > using BSD rather than linux, which people often wrongly poke as the > problem, but an xterm should still be an xterm. > > > B) See vttest https://invisible-island.net/vttest/vttest.html for xterm > tests > > vttest seems to be a tool to regression-test compatibility with the > venerable vt100 standard, but it at least confirms that my iTerm and > screen setup do "The right thing" with regard to bold text, so I'm more > convinced that someone hardcoded a value and forgot to embed the \003 > correctly. (Especially considering color works in the same program). > > I've reported a bug on github and can call it the end of the day > > It would be neat if vttest also supported more modern xterm features like > image embedding, custom composed characters, ligatures, 256-color support= , > foreign characters, right-to-left encoding, double-wide characters, or > even Emoji. > > At the very least, it showed me that my terminal doesn't support blinking > text -- which might be a good thing! > > Best, > > -Dan > > -- > > --------Dan Mahoney-------- > Techie, Sysadmin, WebGeek > Gushi on efnet/undernet IRC > FB: fb.com/DanielMahoneyIV > LI: linkedin.com/in/gushi > Site: http://www.gushi.org > --------------------------- > Option 4 in the first menu is "Test of double-sized characters". Terminal.app on MacOS (at least on mine which is Ventura) supports blinking text, for better or worse. I do miss HTML <blink> though. ;-) --=20 Visit serverfault.com to get your system administration questions answered. --00000000000015928306041c341f 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 Tue, Aug 29, 2023 at 10:34=E2=80= =AFPM Dan Mahoney (Gushi) <<a href=3D"mailto:[email protected]">danm@= prime.gushi.org</a>> wrote:<br></div><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex">On Tue, 29 Aug 2023, Dennis Williamson wrote:<br> <br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0I've found <a href=3D"https://gist.githu= b.com/sdeaton2/8450564" rel=3D"noreferrer" target=3D"_blank">https://gist.g= ithub.com/sdeaton2/8450564</a> but I'm looking for<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0something more complete.<br> ><br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0Does anyone know of such a thing?<br> <br> > A) Use tput or an ANSI library to obtain the code sequences based on t= he TERM setting instead of hard coding them.<br> <br> It's not my code -- I just wanted to be sure my terminal is doing "= ;the <br> right thing" before I get dozens of "works on my device" res= ponses.=C2=A0 I'm <br> using BSD rather than linux, which people often wrongly poke as the <br> problem,=C2=A0 but an xterm should still be an xterm.<br> <br> > B) See vttest=C2=A0<a href=3D"https://invisible-island.net/vttest/vtte= st.html" rel=3D"noreferrer" target=3D"_blank">https://invisible-island.net/= vttest/vttest.html</a> for xterm tests<br> <br> vttest seems to be a tool to regression-test compatibility with the <br> venerable vt100 standard, but it at least confirms that my iTerm and <br> screen setup do "The right thing" with regard to bold text, so I&= #39;m more <br> convinced that someone hardcoded a value and forgot to embed the \003 <br> correctly.=C2=A0 (Especially considering color works in the same program).<= br> <br> I've reported a bug on github and can call it the end of the day<br> <br> It would be neat if vttest also supported more modern xterm features like <= br> image embedding, custom composed characters, ligatures, 256-color support, = <br> foreign characters, right-to-left encoding, double-wide characters, or <br> even Emoji.<br> <br> At the very least, it showed me that my terminal doesn't support blinki= ng <br> text -- which might be a good thing!<br> <br> Best,<br> <br> -Dan<br> <br> -- <br> <br> --------Dan Mahoney--------<br> Techie,=C2=A0 Sysadmin,=C2=A0 WebGeek<br> Gushi on efnet/undernet IRC<br> FB:=C2=A0 <a href=3D"http://fb.com/DanielMahoneyIV" rel=3D"noreferrer" targ= et=3D"_blank">fb.com/DanielMahoneyIV</a><br> LI:=C2=A0 =C2=A0<a href=3D"http://linkedin.com/in/gushi" rel=3D"noreferrer"= target=3D"_blank">linkedin.com/in/gushi</a><br> Site:=C2=A0 <a href=3D"http://www.gushi.org" rel=3D"noreferrer" target=3D"_= blank">http://www.gushi.org</a><br> ---------------------------<br> </blockquote></div><br clear=3D"all"><div>Option 4 in the first menu is &qu= ot;Test of double-sized characters". Terminal.app on MacOS (at least o= n mine which is Ventura) supports blinking text, for better or worse. I do = miss HTML <blink> though. ;-)</div><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Visit <a href= =3D"http://serverfault.com" target=3D"_blank">serverfault.com</a> to get yo= ur system administration questions answered.</div></div> --00000000000015928306041c341f--