Live data from Hacker News

Everything you ever wanted to know about terminals

xn--rpa.cc

31–40 of 191 posts

Re: Everything you ever wanted to know about terminals

#31
post #23

The author seems to really not like ncurses. But why? Is there something wrong with it?

The article has no pictures of what it is selling, so it just seems like a rant, as suggested by the opening profanity. I don't see how I can use what they are saying to make a TUI.

Re: Everything you ever wanted to know about terminals

#32

Earlier quoted context omitted.

Isn't worrying about someone else's grammatical use of capitalization when the piece is understood anyway a little too pedantic?

I find the text more awkward to read without capital letters starting sentences, especially in paragraph form.

I can’t agree more. An author who can’t be bothered to follow well established forms of style, grammar, and punctuation in a technical article somehow deflates whatever else they have to say even if accurate. It’s not as if they are trying to emulate the works of E. E. Cummings, James Joyce, or Arno Schmidt.

Re: Everything you ever wanted to know about terminals

#34
post #5

> but i swear to god developers have so completely forgotten how terminals work that i might be one of a handful of people left on earth who actually has the knowledge to, so they all just layer their bullshit on top of ncurses (which should never have survived the '90s) instead and it's maddening. Actually, yes, understanding the tty in detail seems to become a dark art. However it's the best way to do complex thing…

It looks like you have done a lot of work with sixels based on your github too. Have you ever written anything about that?

> Have you ever written anything about that?

No, WYSIWYG: I don't bother much more than that with explaining how it's done: the source code + the comments + the github page already give all the details away to whoever wants to dig deeper.

I'm not much into social media or self promotion either: if people like what I do, they'll use it - I don't care much more than that, as everything was written for myself and my selfish needs first.

The tty/sixel world is very small world anyway, we generally know and recognize eachother, so we know where to look for cool new stuff :)

Re: Everything you ever wanted to know about terminals

#35

Earlier quoted context omitted.

it is a security centric view point not a "Western" one.

The solution is prohibiting characters that can easily be confused (across all writing systems), not banning Punycode altogether.

Or just allow only using a single script. A domain in all Cyrillic: great! Mixing Latin & Cyrillic: nono.

In practice, browsers already check for this and display the "raw" punycode if they detect mixed script usage, but I wish such domains would not be registrable at all. These checks are somewhat complex and difficult, and easy to get wrong.

Re: Everything you ever wanted to know about terminals

#36

Earlier quoted context omitted.

I find the text more awkward to read without capital letters starting sentences, especially in paragraph form.

I can’t agree more. An author who can’t be bothered to follow well established forms of style, grammar, and punctuation in a technical article somehow deflates whatever else they have to say even if accurate. It’s not as if they are trying to emulate the works of E. E. Cummings, James Joyce, or Arno Schmidt.

y'all are the most boring people on the planet istg. in the entire legion of internet writers making in depth technical content there is what, one who deviates from the conventions and you can't handle it.

This author is a much much better writer than average for free technical content! They have an interesting, unique style! The typography and punctuation are part of that style! It would be tangibly worse if they adhered to the (bad, and also arbitrary!) typographical conventions of raw html just to please a bunch of square-ass nerds. Shit just makes me sad seriously.

Re: Everything you ever wanted to know about terminals

#37
I built a cross platform app to print 'pretty formatted' source code [1]. I didn't want to re-invent the wheel on formatting source code, so looked at all the existing libraries. Originally I figured formatting to HTML, and then building a print-friendly HTML render would work. But this proved super challenging. I tried a dozen HTML engines (including Chromium) but none gave me enough control to render just a single page of the original source file.

Then I noticed Pygments, a Python-based library for pretty formatting source code, has an option to output an ANSI formatted file. I quickly found a bunch of libraries that could render ANSI formatted text to a print canvas.

In the end, I put the original source code file through 'pygmentize -16m -o tempfile.an` (`16m` is the 16M color terminal ANSI formatter) and pipe the `tempfile.an` through a print-optimized renderer to actually print the source code.

ANSI escapes FTW!

[1] WinPrint - https://github.com/tig/winprint [2] https://pygments.org/

Re: Everything you ever wanted to know about terminals

#38
post #31
post #23

The author seems to really not like ncurses. But why? Is there something wrong with it?

The article has no pictures of what it is selling, so it just seems like a rant, as suggested by the opening profanity. I don't see how I can use what they are saying to make a TUI.

Are you trying? I've been brutally bashing my head against some ancient telnet shit recently and this actually was concretely helpful and I could apply it immediately.

The tone and presentation seem calculated to annoy HN readers (nice) but this article has a bunch of difficult-to-uncover details with just enough context to apply them if you actually have a use for them and a desire to.

Re: Everything you ever wanted to know about terminals

#40
A while ago I was trying to find a way to make my terminal scroll back up after a command executed, so that if the output was long I could read it from the top without having to scroll up manually. There are ways to get yours shell to print something after the command executes, so I just needed to find an ansi escape sequence that would scroll up. Unfortunately I didn't see any sequences that do this. Anyone have any ideas?
Post reply on HN