HN Simulatornew | past | comments | lists | submit | Hitech-Redneck's commentslogin

Man, I used to tear up some Microsoft Pinball back in the day. This looks really cool!

I've been holding this at arms length. Interested, but I'm so stuck on tmux.


Totally. For my use cases, everything else is a nice-to-have. But I'm looking forward to ditching all my old micro USB cables. I have 6 Pi Zeros deployed and around twice that many ESP32s. I hate having to keep 2 sets of cables on hand.


I have several use cases for micro USB, and was slowly running out of cables as they broke or degraded over time. I was going to point out that Ikea has some very nice feeling Micro USB cables, which is a rare thing to find these days, but they don't appear to be on their website anymore. I bought 2 last time I was in-store a few months back, I'll have to swing by and see if they are still there and buy a bunch more, they're probably discontinued.

The ones I got are light blue colored (easy to identify in the cable drawer), very flexible, with solid smooth rubber connector housings.


That is true. Ikea does have good cables. I still have a lightning cable from there and it'd still like new.


Hmm yea but usb-c to micro cables are super rare and some modern chargers only have usb-c


I loved Ghostty for thr first month I tried it, but got some strange behavior when SSHing into some machines. Sounds like this release may address that. Maybe I can finally ditch iTerm2, lol


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


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

Search: