Live data from Hacker News

Libghostty is coming

mitchellh.com

121–130 of 275 posts

Re: Libghostty is coming

#121

Earlier quoted context omitted.

Not to mention that every time you ssh to another server your keyboard stops working correctly. The solution is on their website: > infocmp -x xterm-ghostty | ssh YOUR-SERVER -- tic -x - I mean... I could learn what it does, but no way on earth I am going to be typing something like that every time I want to ssh somewhere. (This is somehow fixed in 1.2 but it requires additional entry in the config for whatever reaso…

> (This is somehow fixed in 1.2 but it requires additional entry in the config for whatever reason. Can't it just work?) "For whatever reason": because it requires modifying `ssh` and doing that by default is a really sketchy thing to do because it is a very security sensitive tool. No program (Ghostty included) should be mucking with that by default. We want users to be aware. "Can't it just work?": No, because the…

Ouch, I did not expect my complaining would get a response from the author!

Just to be clear, I do think Ghostty is amazing piece of software and it's so fast that it's hard to believe, so thank you for the hard work.

> read Ghostty's terminfo page, but also just do some light web searching on how terminfo works. Its a total nightmare.

Oh, yea, I totally get that. I actually _did_ try to understand what the issue is, but gave up on that time-sink rabbit hole and decided I might give it another try once the xterm-ghostty is more popular.

Re: Libghostty is coming

#122
Someone call @keithw. He put a tremendous amount of brainpower into getting the Unicode side of this puzzle "right" (or, as "right" as it is possible to be) when he wrote mosh. I'm sure he and Hashimoto could have a grand old (but zero-width non-joining) conversation!

Re: Libghostty is coming

#123

I really want to like Ghostty but: - Still no ⌘F for find. - No way (that I know of) to select previous output or specific string and copy with only keyboard shortcuts. - No ⌘. sending CTRL-C (muscle memory and being advertised as native to the Mac is what one would expect). - Fonts still don't render as nicely as in Terminal.app. I've fiddled with `font-thicken-strength` and it's close, but not quite. Probably impos…

Search in scroll back is coming in 1.3, unfortunately that's going to be 6 months away. There's a lot happening in the Ghostty app though, check out the 1.2 release notes

Best news I've heard all day.

Re: Libghostty is coming

#124
Offtopic, formatting related, and always a fun discussion:

The function signature of [1] ...

  ghostty_input_mods_e ghostty_surface_key_translation_mods(ghostty_surface_t,
                                                            ghostty_input_mods_e);
(^^^ probably not readable in small screens)

... is the perfect example of why "align continuation lines to the open bracket" is the absolute worse option versus the simpler, consistent and only logical choice of "align continuation lines with an extra indentation", aka

    AlignAfterOpenBracket: DontAlign
in Clang-Format [2].

[1]: https://github.com/ghostty-org/ghostty/blob/f97518cc10059918...

[2]: https://clang.llvm.org/docs/ClangFormatStyleOptions.html#ali...

Re: Libghostty is coming

#125
post #88
post #44

I want to use this to modernize vterm in Emacs. If I could only synchronize the terminal cursor and the Emacs point, and preserve lines as lines, not split them...

I wasn't aware that vterm need modernizing. Happy user of vterm at work and ghostty at home!

vterm flickers a lot with any busier TUI. Claude Code sucks in vterm. I'd also really look forward to using libghostty to try an alternative to vterm in emacs.

Re: Libghostty is coming

#126

Earlier quoted context omitted.

I love ghostty. The only thing that is missing is a find feature which is such an odd omissions for an incredible piece of software.

To add... The missing scrollbars feel painful to me. I don't even want them for scrolling, really. I want the visual reference for: "How much content is in this window" and "Where am I in that content" I still use it daily but it means I have to switch tools for certain things, and reading log files or log output is one of the more common reasons I switch. I should probably look into trying to get the scrollback info…

Suggestion to use Klogg (https://github.com/variar/klogg) for reading log files.

I always was on the camp of "tail -f file.log" but since discovering this app, I saw the light.

Re: Libghostty is coming

#127
post #124

Offtopic, formatting related, and always a fun discussion: The function signature of [1] ... ghostty_input_mods_e ghostty_surface_key_translation_mods(ghostty_surface_t, ghostty_input_mods_e); (^^^ probably not readable in small screens) ... is the perfect example of why " align continuation lines to the open bracket " is the absolute worse option versus the simpler, consistent and only logical choice of " align cont…

Indeed. Also note this isn't the real public C API. This is, as I noted in the blog post as a disclaimer, an internal-only C API so it is admitedly very ugly.

(I assume you know this, just adding context for other readers)

Re: Libghostty is coming

#128
post #11

Earlier quoted context omitted.

I do indeed live in the terminal (all day due to work), but tmux adds too much value for me to do all terminal management in Neovim (tmux session-management being what I use most). I've just encountered too many visual "glitches" in the Neovim terminal to rely on it for everything. That's not to say, however, that I never use the built-in Neovim :terminal. > I thought it might be easier to only ever have one buffer o…

I'd be curious to hear more about how tmux helps you — I tried it and besides keeping a permanent session open on a remote server to me I didn't find much use for it compared to regular terminal tabs

I use it daily locally, and find it amusing how many only think of it as being useful on remote servers (not to invalidate your use-case -- I'm just contrasting my own use). As a precursor, I view UNIX as my IDE, of which tmux is a part: this IDE runs on Windows (WSL2), macOS, Linux, and Android (Termux). That aside, here are a few reasons I find tmux to be useful in this concoction of tools:

- Session management. I've written custom scripts for myself around this (zoxide + fzf). If you want to see how this can be used, look at ThePrimagen's workflow. I don't use his scripts but he has a good demo of how he harnesses sessions.

- Unified scrollback management - easily search the scrollback, yank it, etc. My favorite thing to do is to yank part of the scrollback, then `Prefix+B,=` to list everything I've yanked (think of this like a "clipboard manager" specific to tmux), select an entry, and press `e` to edit it in `$EDITOR`.

- This one might be a stretch, but I tend to try and use only terminal tools (without being utterly insane) because then tmux can be my "tiling window manager" no matter what OS I'm on. Oh, I have to use Windows for work? Not to worry, tmux runs in WSL2, as do most of my preferred tools, so I feel mostly at home even though I normally really dislike Windows.

- It's scriptable. Read `man tmux` and use your imagination!

Notwithstanding any of that, there are cons, the most apparent one being that I am limited to text-based tools this way. An example of this: getting images to work in tmux, though many modern terminal emulators support them, is a huge pane, so I haven't bothered.

Re: Libghostty is coming

#129
post #128

Earlier quoted context omitted.

I'd be curious to hear more about how tmux helps you — I tried it and besides keeping a permanent session open on a remote server to me I didn't find much use for it compared to regular terminal tabs

I use it daily locally, and find it amusing how many only think of it as being useful on remote servers (not to invalidate your use-case -- I'm just contrasting my own use). As a precursor, I view UNIX as my IDE, of which tmux is a part: this IDE runs on Windows (WSL2), macOS, Linux, and Android (Termux). That aside, here are a few reasons I find tmux to be useful in this concoction of tools: - Session management. I'…

That's very helpful – thanks for taking the time.

Re: Libghostty is coming

#130

I really want to like Ghostty but: - Still no ⌘F for find. - No way (that I know of) to select previous output or specific string and copy with only keyboard shortcuts. - No ⌘. sending CTRL-C (muscle memory and being advertised as native to the Mac is what one would expect). - Fonts still don't render as nicely as in Terminal.app. I've fiddled with `font-thicken-strength` and it's close, but not quite. Probably impos…

> No ⌘. sending CTRL-C

Wait wait wait, this is a shortcut in Mac??

Post reply on HN