Live data from Hacker News

Rio: Terminal app built over WebGPU, WebAssembly and Rust

github.com

131–134 of 134 posts

Re: Rio: Terminal app built over WebGPU, WebAssembly and Rust

#131
post #120

Earlier quoted context omitted.

That’s like 254 too many.

Sounds like writing code in notepad.

Sounds like terminals as they existed for most of the life of computing. Honestly I’ve never found color added that much to my experience with a terminal and often ended up with poor contrast for certain things and a bunch of time tweaking color palettes.

Since eMacs and vi has been two color for a lot of its life, I’d say it’s more like writing code with pretty bog standard code editing tools.

Re: Rio: Terminal app built over WebGPU, WebAssembly and Rust

#132
post #86

Earlier quoted context omitted.

Kitty isn't "xterm-256color". That's something that Thomas Dickey, and I, and others, have pointed out time and again. It's just plain wrong to say to programs that something is XTerm when it isn't. Kitty is, unsurprisingly: https://invisible-island.net/ncurses/terminfo.src.html#tic-k... The problem that people have is different anyway. When they're doing things correctly, and setting the correct terminal type, they…

I'm not sure what to make of this. The terminfo you linked suggests to me that kitty provides at least the same capabilities as xterm-256color, unless I'm understanding the "use" capability wrong. Most machines I've SSHed into didn't have kitty's terminfo installed, which results in many things not working. Using xterm-256color as a safe fallback has always worked for me however. It would always be possible to define…

It's plain not correct. There's no "technically" about it.

Yes, you have misunderstood what xterm+256colour is. It's not xterm-256color. Notice the plus sign. What entries with plus signs in are is actually explained in commentary in the terminfo source file itself.

The full difference between the two entries is obtainable with infocmp, but that's just details. The simple fact is that for anything that isn't XTerm the xterm entries in terminfo/termcap are wrong. The few terminals that are close enough to XTerm to be for practical purposes compatible are the ones that were actually branches of actual XTerm at one point. All of the others, especially the recent ones like Alacritty, Kitty, and the like, are markedly and intentionally different.

The drawbacks in general are various and range from the subtle (e.g. some supposedly compatible terminal emulators mix up the home/end key codes with the find/select key codes, or they'll use different codes for higher numbered function keys, or for keys with modifiers) to the blatant (e.g. there are stark differences in indexed and direct colour support amongst terminal emulators). There's plenty of just plain odd along the way. I used the wrong TERM value for something the other day, and suddenly the Z shell's line editor was putting the cursor in column 80 all of the time.

The thing to remember is that one isn't helpless with respect to getting a proper terminfo/termcap entry installed on systems that don't have it. It's 2023, and not only has terminfo had the ability for users to supply extra terminfo entries for a long while, but historical termcap has gone away, and the few remaining systems such as FreeBSD that still use termcap can also just plonk in user-supplied termcap entries. They, too, nowadays have a mechanism for this. There's really zero excuse for not just copying the proper entry over and using it if it isn't there, nowadays. Indeed, Kitty even reportedly has a helper utility for hand-holding one through the process.

Re: Rio: Terminal app built over WebGPU, WebAssembly and Rust

#133
post #122

Earlier quoted context omitted.

> the default one is unbearably slow https://danluu.com/images/term-latency/loaded-terminal-laten...

[flagged]

You can't attack another user like this and we ban accounts that do, so please don't do it again. Your comment would have been fine with just the second part.

We've had to warn you about this before. If you'd please review https://news.ycombinator.com/newsguidelines.html and stick to the rules when posting here, we'd appreciate it.

Post reply on HN