Anonymous
Not logged in
Talk
Contributions
Log in
Request account
Rest of What I Know
Search
Editing
Ghostty Configuration
From Rest of What I Know
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
I got recently annoyed with iTerm2 encountering random lag and using infinite CPU slowing everything down. It happened at a moment of personal exasperation so I decided to try out [https://ghostty.org/ Ghostty] since I've tried [https://github.com/alacritty/alacritty alacritty] before and it was too minimal for me. I know some people prefer managing their panes in [https://github.com/tmux/tmux/wiki tmux] but I prefer having my terminal emulator provide windowing features. So the minimal amount of things I needed were: * Window Splits * Tabs * Keyboard control on MacOS to move between those After I actually used Ghostty, I realized I also wanted: * A block cursor, that in neovim follows the insert-mode-bar, normal-mode-block convention * Support for Shift-Enter in Claude Code Ghostty fortunately supports both of these, though it has its MacOS configuration file in a very MacOS location and I would have preferred that it live in <code>~/.config</code>. It claims to support that path but doesn't actually seem to, so I just decided to use the weird "Application Support" path. In any case, here are the requisite configuration options <syntaxhighlight lang="ini"> # Cursor configuration # https://github.com/ghostty-org/ghostty/discussions/3836 cursor-style = block cursor-style-blink = false # no-cursor removes the default blinking bar # ssh-terminfo,ssh-env,sudo transmit the terminfo so CLIs know how to handle paging / colors shell-integration-features = no-cursor,ssh-terminfo,ssh-env,sudo # Claude Code Shift-Enter # https://github.com/anthropics/claude-code/issues/1282 keybind = shift+enter=text:\x1b\r </syntaxhighlight> You do need the shell integration features around <code>ssh</code> and <code>sudo</code> or otherwise you'll get messages like "WARNING: Terminal is not fully functional" any time you try to use a pager and your extra long commands won't wrap to the next line like you expect. The latter one is what prompted me to find these settings because it's impossible to read your own command when you have to scroll to remember the rest of it. {{#seo:|description=Ghostty is a terminal emulator that provides window splits, tabs, and keyboard controls on macOS.}} [[Category:Troubleshooting]] [[Category:Tips]]
Summary:
Please note that all contributions to Rest of What I Know are considered to be released under the Creative Commons Attribution-ShareAlike (see
Rest of What I Know:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs