Kitty: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with "A cross-platform, fast, feature-rich, GPU based terminal, with support for hyperlinks, image viewer. == References == * [https://sw.kovidgoyal.net/kitty/ Kitty] * [https://gi...")
 
Line 4: Line 4:
* [https://sw.kovidgoyal.net/kitty/ Kitty]
* [https://sw.kovidgoyal.net/kitty/ Kitty]
* [https://github.com/kovidgoyal/kitty Kitty] (github)
* [https://github.com/kovidgoyal/kitty Kitty] (github)

== Install / config ==
* See also [https://sw.kovidgoyal.net/kitty/faq/ Kitty FAQ]

* Setup terminfo
<source lang="bash">
# SSH locally so that kitty will install terminfo file automatically (in ~/.terminfo/kitty.terminfo)
kitty +kitten ssh localhost

# Can also copy the file manually:
# See https://sw.kovidgoyal.net/kitty/kittens/ssh/#manual-terminfo-copy
infocmp -a xterm-kitty | ssh myserver tic -x -o \~/.terminfo /dev/stdin
</source>

* Add <code>xterm-kitty</code> to {{file|~/.dircolors.cfg}}
<source lang="diff">
TERM xterm-color
TERM xterm-debian
+TERM xterm-kitty
# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
</source>

* Configure font thickness in white themes, {{file|.config/kitty/kitty.conf}}:
<source lang="bash">
# See kitty.conf help text on how to setup this variable
# See also https://github.com/kovidgoyal/kitty/issues/6226
# See background tech details at: https://github.com/kovidgoyal/kitty/pull/5969
text_composition_strategy 2.0 0
</source>


== Tips ==
== Tips ==

Revision as of 13:07, 18 July 2023

A cross-platform, fast, feature-rich, GPU based terminal, with support for hyperlinks, image viewer.

References

Install / config

  • Setup terminfo
# SSH locally so that kitty will install terminfo file automatically (in ~/.terminfo/kitty.terminfo)
kitty +kitten ssh localhost

# Can also copy the file manually:
# See https://sw.kovidgoyal.net/kitty/kittens/ssh/#manual-terminfo-copy
infocmp -a xterm-kitty | ssh myserver tic -x -o \~/.terminfo /dev/stdin
  • Add xterm-kitty to ~/.dircolors.cfg
 TERM xterm-color
 TERM xterm-debian
+TERM xterm-kitty
 # Below are the color init strings for the basic file types. A color init
 # string consists of one or more of the following numeric codes:
  • Configure font thickness in white themes, .config/kitty/kitty.conf:
# See kitty.conf help text on how to setup this variable
# See also https://github.com/kovidgoyal/kitty/issues/6226
# See background tech details at: https://github.com/kovidgoyal/kitty/pull/5969
text_composition_strategy 2.0 0

Tips

Increase font size

Increasing the font size dynamically seems to require to enable remote control

kitty -c NONE -o font_size=12 -o allow_remote_control=yes # Or through config
kitty @ set-font-size -- +2