Hacker Newsnew | past | comments | ask | show | jobs | submit | teddyh's commentslogin

Many years ago, terminal emulators used to allow keyboard rebindings via escape codes. This is why it was then common knowledge to never “cat” untrusted files, and to use a program to display the files instead; either a pager, like “less”, or a text editor.

I believe there were even more substantial issues in some terminal emulators, where escape sequences could write to arbitrary files or even execute programs. I think it's still very reasonable advice to avoid dumping arbitrary bytes into the terminal stream, even if only to avoid screwing up the state of the terminal.

I recommend <https://www.youtube.com/watch?v=vtIzMaLkCaM>, Larry McEnerney’s lecture The Craft of Writing Effectively.

Disappointingly, this draft does not reference previous important and influential work in this field: <https://isotropic.org/papers/chicken.pdf>.

(Also available in video format: <https://www.youtube.com/watch?v=yL_-1d9OSdk>)


> For example, in IPv4 each host has one local net address, and the gateway uses NAT to let it speak with the Internet. Simple and clean.

No, that’s not the IPv4 design. That’s an incredibly ugly hack to cope with IPv4 address shortage. It was never meant to work this way. IPv6 fixes this to again work like the original, simpler design, without ”local” addresses or NAT.

> In IPv6 each host has multiple global addresses.

Not necessarily. You can quite easily give each host one, and only one, static IPv6 address, just like with old-style IPv4.


Hyrum's law. That's how IPv4 is being used in practice.

> You can quite easily give each host one, and only one, static IPv6 address, just like with old-style IPv4.

You literally CAN NOT. On Android there's no way to put in a static IPv6 or even use stateful DHCPv6.


> Hyrum's law. That's how IPv4 is being used in practice.

It's still very ugly to mess with the ports that way.

The only clean NAT is 1:1 IP NAT.


> You literally CAN NOT. On Android there's no way to put in a static IPv6 or even use stateful DHCPv6.

Blame the closed and proprietary Android platform for that; not IPv6.


The problem here is the IPv6 design. It has multiple ways of configuration, and ALL of them suck.

Manual address input is clumsy because of IPv6 address length, stateless RA is limited and doesn't allow network introspection, stateless DHCP is pointless, stateful DHCP is not supported by the most widely deployed OS. There's also prefix delegation that needs stateful DHCP.


> Screen does not have UTF8 support, tmux does.

“‘-U’

Run screen in UTF-8 mode. This option tells screen that your terminal sends and understands UTF-8 encoded characters. It also sets the default encoding for new windows to ‘utf8’.”

— <https://www.gnu.org/software/screen/manual/screen.html#Invok...>

“Command: defutf8 state

(none) Same as the ‘utf8’ command except that the default setting for new windows is changed. Initial setting is on if screen was started with ‘-U’, otherwise off.”

— <https://www.gnu.org/software/screen/manual/screen.html#Chara...>


Which does not work correctly for Korean, Japanese, Chinese, I think Thai, and a few more with somewhat ambiguous character widths.

This can lead to ghost characters that aren't shown, overlapping characters, etc.

It was an attempt to bolt on UTF8 support, but it's not great.



“If you wish to make an apple pie from scratch, you must first invent the universe.”

— Carl Sagan


If you want any negatively inclined people to be unable to resort to think that you are lying, a good thing for you to do would be to link to the bugtracker issues that you created long ago.

Those people can think whatever they want to think, doesn't change what the facts are. I can't be bothered to look for them - I'm not sure which email address I used for which bugzilla (or was it something other than bugzilla?), or whether that bugzilla still exists (probably not? I haven't seen a bugzilla in a while). I'm not even 100% sure which decade it was (but probably 2010s, it was early in the thunderbird enshittification process). All I know is that I filed a couple - more than one, perhaps 3 or 4 - bugs for thunderbird, had zero response on any of them, and decided that it's not worth my time to try to engage with them any further.

“Now, chat, settle down.”

> I can just listen to what those people and the politicians elect actually say, and what they say is flippin' 'Climate change is a chinese hoax' lunacy.

You probably don’t actually listen to what they say. You probably instead listen to what your preferred media channels report on, and selectively quote from, what they say. You think these two things are the same, since you think that your news sources are perfectly accurate. But those who actually listen to those people, and prefer different media channels, probably have other opinions.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: