Skip to content

Commit

Permalink
Added new TILs on Ghostty
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbn committed Jan 7, 2025
1 parent fed3dcd commit bb4390e
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2192,3 +2192,6 @@ DSN
PDO
mysqli
RDBMS
Ghostty
ghostty
vNinja
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
- [fd - a fast alternative to find](#fd---a-fast-alternative-to-find)
- [FileMerge.app - a diff tool for macOS](#filemergeapp---a-diff-tool-for-macos)
- [find - find files and directories on the command line](#find---find-files-and-directories-on-the-command-line)
- [Ghostty - a fast and native terminal emulator](#ghostty---a-fast-and-native-terminal-emulator)
- [Git - version control system](#git---version-control-system)
- [git-delta - an commandline diff tool, also known as delta](#git-delta---an-commandline-diff-tool-also-known-as-delta)
- [GitHub - platform for hosting Git repositories](#github---platform-for-hosting-git-repositories)
Expand Down Expand Up @@ -269,7 +270,7 @@
<a id="csharp"></a>
### C# - .NET based language from Microsoft

- [Problem building: "MSBUILD : error MSB1011"](charp/problem_building_msb1011.md)
- [Problem building: "MSBUILD : error MSB1011"](csharp/problem_building_msb1011.md)

<a id="curl"></a>
### curl - a commandline tool for transferring data with URL syntax
Expand Down Expand Up @@ -391,6 +392,12 @@

- [Searching Found Files in Found Directories](find/searching_found_files_in_found_directories.md)

<a id="ghostty"></id>
### Ghostty - a fast and native terminal emulator

- [Unsuitable Terminal Error](ghostty/unsuitable_terminal.md)
- [Visor](ghostty/visor.md)

<a id="git"></a>
### Git - version control system

Expand Down
32 changes: 32 additions & 0 deletions ghostty/unsuitable_terminal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Unsuitable Terminal

*ghostty* is a new formidable terminal emulator. I wanted to try it out, but when I attempted to SSH to some remote hosts I got the following error:

```text
missing or unsuitable terminal: xterm-ghostty
```

I did some _googling_ and found [a blog post][vninja], which suggested 3 different workarounds.

One was updating `term_info` on the remote host, this is somewhat cumbersome and not something I wanted to maintain going forward with updates on the remote host.

Second was by the blog post author and involved changing the `TERM` environment variable to something more recognisable than: `xterm-ghostty`.

```shell
[[ "$TERM_PROGRAM" == "ghostty" ]]; then
export TERM=xterm-256color
```

The last one, which I chose to go with was changing my SSH configuration on my local machine, so the environment variable was set as part of the SSH configuration:

```text
SetEnv TERM=xterm-256color
```

The last part works like a charm as sort of does the same as the second one.

## Resources and References

- [vNinja.net: "Ghostty — Workaround for Missing or Unsuitable Terminal xterm-ghostty"][vninja]

[vninja]: https://vninja.net/2024/12/28/ghostty-workaround-for-missing-or-unsuitable-terminal-xterm-ghostty/
13 changes: 13 additions & 0 deletions ghostty/visor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Ghostty Visor

*Ghostty* has a nifty feature of a terminal window you can access easily even if *Ghostty* is not the active application.

I have mapped this to: `<shift>`-`<command>`-`<t>`.

So if *Ghostty* is running, I have an easily accessible terminal (visor). The feature is called quick terminal, but I have seen it referred to as a visor from other applications and in the requests for the feature in *Ghostty*.

- ["Request: Quake-style (Visor) Overlay Terminal Mode"](https://github.com/ghostty-org/ghostty/discussions/3733).

## Resources and References

- [Ghostty Documentation](https://ghostty.org/docs/config/keybind/reference#toggle_quick_terminal)

0 comments on commit bb4390e

Please sign in to comment.