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

Very likely due to ghostty setting TERM to xterm-ghostty and your destination not recognizing it. Quick temp fix is using the wrapper (ghostty +ssh), see <https://ghostty.org/docs/features/ssh>. More permanently, copy terminfo to the remote machine, see <https://ghostty.org/docs/features/ssh>.

It’s rude to install a terminfo on a remote machine (which you may not be the owner of). It’s a preposterous for a terminal emulator to install things on a remote machine just to make it work.

It's actually the remote machine that isn't working, but I get the frustration. What I did to fix this is to override the environment variables in your SSH config like this:

Host * SetEnv TERM=xterm-256color


For me that wasn't enough, I added:

    Host *
        SetEnv TERM=xterm-256color
        SendEnv COLORTERM TERM_PROGRAM TERM_PROGRAM_VERSION

That’s a neat trick! Didn’t know setting env vars was possible in ssh configs

Not all environment variables will be passed through (depends on the server configuration), but stuff like TERM should

If you want to use in a terminal emulator features that do not exist in any xterm variant and the remote computer does know only xterm, there is no way to do that without installing data into the terminfo database.

Otherwise, there is no need to install anything, you should just set the environment variable TERM in the remote computer to one of the xterm variants and then modern terminal emulators like kitty or ghostty will still work fine, but of course only as long as you use the xterm-compatible subset of their features.


It's not a VAX that you're physically plugging a terminal into. The remote machine is totally capable of communicating with a newer terminal, it just needs to know how. You're being nice by giving it that information. You can also just install it locally in your home directory (~/.terminfo). (You used to be able to stuff the entire entry into the TERMCAP environment variable and not install anything.)

I presume though that the mentioned fix only installs the terming for the user, rather than system-wide. I don’t see how that’d be rude (assuming it’s some non-root user that you should reasonably be considered to have control over).

If the remote machine doesn’t have the right support for your terminal, what do you suggest?

You can install stuff--with tic(1)--inside your user account (you do have one, right?) and be happy that way.

That is exactly what Ghostty's SSH integration does, if you enable it.

Yea unfortunately eg Ubuntu’s bashrc has a script which will make it drop colors regardless of the presence of ghostty’s terminfo. Its `screen` will also fail, so e.g. it will refuse to upgrade to a new distro release.

Lots of jank due to this custom terminfo.


Every terminfo is custom, to the terminal it applies to. It's just that most entries are 20+ years old and even glacial distros have converged on some version of the database that mostly worked, until the recent resurgence of interest in actually writing new terminal software.

You can also just add this to your SSH config to get the typical functionality working:

    Host ...
        SetEnv TERM=xterm-256color

Agree with the weakness, but the benefit of provenance is still there. You can't tell if the picture that person took is of an AI image, but there's some value in saying "I took this" and being able to prove it.


I hope future social media presents this metadata so if someone claims a photo is from the BBC, it actually gets checked against the keys the BBC sign their photos with.


How does this actually work though?

1) I see a photo online and doubt it's provenance

2) I contact the photographer and ask to see their cloud image (???!)

2a) I borrow someone's mac to download the image (.jpg?) and it can be verified on that?


Ideally it’d be linked to public key on a DNS txt record or similar, and trustworthy clients (including social media apps) show the domain linked to the photo.


I was at a company acquired by IBM, and left within two years. When asked by HR at my exit interview why I was leaving I honestly answered "Lotus Notes".

My reasoning (which I ranted on extensively for the rest of the interview) was that mandating Lotus Notes as a tool internally, let alone continuing to sell it, reflected very poorly on how IBM felt about their employees, customers, and products. Examples:

* for YEARS IBM had to ship a "killnotes.exe" utility to their own employees because they couldn't figure out how to gracefully exit the app - and that's just one papercut out of hundreds;

* they misrepresented the popularity of the product, as the number of seats sold was tied to other bundled deals - most customers wouldn't touch the product;

* they continually gaslit employees and customers that Notes was great for common workflows (email in particular, searching in general) where in fact it was overwhelmingly a failure - and anyone who complained "didn't understand the product";

* they would send out multiple-choice surveys on "How would you like to improve Notes?" with every question and possible answer tied to developer-focused and database features with nothing allowing feedback on the primary use-cases that were driving users up the wall

In the end IBM's stance on Notes was either tone-deaf, incompetent, mendacious, malicious, opportunistic, extractive, callous, or shameless with no sense of pride in product.

I'm still bitter. Man, I hated that product.


Thanks for this! I created a Spotify list for future reference: https://open.spotify.com/playlist/3QbfwerjjiFUvip6Xbkbq6?si=...


FWIW these worseonpurpose articles have been popping up regularly, consistently accused of being slop, and the purported author has been called out as a Palantir AI shill. e.g. https://news.ycombinator.com/item?id=47779481


What’s Palantir’s angle on this?

If that’s what it take to draw attention to enshittification then, as the meme says, let them fight.


There's so much lock-in/captive-audience on these platforms I don't see this happening with mobile phones as they exist today. The only thing that will crack it is the "Next Big Thing"™, and who knows what/when that will be (AR glasses? Brain chips? Some AI wearable?)?


I like Kurt Vonnegut's take on this:

“When I was 15, I spent a month working on an archeological dig. I was talking to one of the archeologists one day during our lunch break and he asked those kinds of “getting to know you” questions you ask young people: Do you play sports? What’s your favorite subject? And I told him, no I don’t play any sports. I do theater, I’m in choir, I play the violin and piano, I used to take art classes.

And he went WOW. That’s amazing! And I said, “Oh no, but I’m not any good at ANY of them.”

And he said something then that I will never forget and which absolutely blew my mind because no one had ever said anything like it to me before: “I don’t think being good at things is the point of doing them. I think you’ve got all these wonderful experiences with different skills, and that all teaches you things and makes you an interesting person, no matter how well you do them.”

And that honestly changed my life. Because I went from a failure, someone who hadn’t been talented enough at anything to excel, to someone who did things because I enjoyed them. I had been raised in such an achievement-oriented environment, so inundated with the myth of Talent, that I thought it was only worth doing things if you could “Win” at them.”


Thank you for sharing that. I am going to save this one. Does that work for you? Could you shift from winning at things to just doing them?


I can attest to this, in my own way. I had a headstart since nobody ever pushed me, parents werent competitive fuckups and thus their child wasnt.

I do climbing, hiking, skiing, skitouring, diving, weightlifting, used to do paragliding, now trying to pick up wind surfing. None of those sports on high level, just keeping it cca the same.

Climbing is a good example since every climbing route is exactly graded for overall difficulty. Over years I even went down a bit from levels I used to do. I just go to the gym or rock, enjoy even the simplest routes that some consider for beginners, despite doing sport for 15 years. Many folks around keep pushing themselves hard to progress, I just dont have that bug.

Exactly same could be said for weightlifting, found my set of free weights values and just keep doing them. If I feel extra strong I may do few extra reps but thats it. I was even mocked here for saying this but who cares, I do it for myself and not to impress or do stupid empty status games with others. Its very sustainable that way too.


That sounds awesome! I basically do all the same sports, but I always need to win or to get better at them. I am trying to move in your direction though.


I don't know whether to upvote this or downvote this.


I believe the point was these companies benefited greatly and specifically from basic research funded by the government: they should therefore "give back" in kind (vs simply contributing to the tax base and relying on a government to figure out what to fund). The reality is these companies care only about shareholder value, and the current US administration has been terminating grants and cutting funding in basic research. I think it's fair to question, in this environment, what these companies' ethical responsibilities really should be.


Maybe too old to be applicable here, but the TRS-80 Models I and III (and probably more models) had no way to address pixels. You had to use semigraphic characters to emulate larger blocks at sub-character resolutions. https://bumbershootsoft.wordpress.com/2022/01/28/touring-the...


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

Search: