2022-03-28 15:03:21 +02:00
#+title : :os tty
#+subtitle : Make TTY Emacs suck less
#+created : August 07, 2020
#+since : 21.12.0
2021-10-16 01:28:51 +02:00
* Description :unfold:
2021-03-06 11:23:00 -05:00
This module configures Emacs for use in the terminal, by providing:
2020-08-07 23:40:06 -04:00
2021-10-16 01:28:51 +02:00
- System clipboard integration (through an external clipboard program or OSC-52
2020-08-07 23:40:06 -04:00
escape codes in supported terminals).
2021-10-16 01:28:51 +02:00
- Cursor-shape changing across evil states (requires a terminal that supports
2021-03-06 11:23:00 -05:00
it).
2021-10-16 01:28:51 +02:00
- Mouse support in the terminal.
2024-08-23 17:20:25 -04:00
- Support for the [[https://sw.kovidgoyal.net/kitty/keyboard-protocol/ ][Kitty keyboard protocol ]] in supported terminals.
2020-08-07 23:40:06 -04:00
** Maintainers
2021-10-16 01:28:51 +02:00
/This module has no dedicated maintainers./ [[doom-contrib-maintainer: ][Become a maintainer? ]]
2020-08-07 23:40:06 -04:00
2021-10-16 01:28:51 +02:00
** Module flags
- +osc ::
Instead of piping your kill ring through external programs, like =xclip= or
=pbcopy= , have Emacs emit OSC-52 escape codes instead, allowing Emacs to
2021-03-06 11:23:00 -05:00
communicate with your clipboard through your terminal, even across SSH
connections or Tmux. However, this requires [[https://github.com/spudlyo/clipetty#terminals-that-support-osc-clipboard-operations ][a supported terminal ]].
2020-08-07 23:40:06 -04:00
2021-10-16 01:28:51 +02:00
** Packages
2022-09-26 02:19:42 +08:00
- [[doom-package:clipetty ]] if [[doom-module:+osc ]]
- [[doom-package:evil-terminal-cursor-changer ]] if [[doom-module::editor evil ]]
2024-08-23 17:20:25 -04:00
- [[doom-package:kkp ]]
2022-09-26 02:19:42 +08:00
- [[doom-package:xclip ]] unless [[doom-module:+osc ]]
2021-10-16 01:28:51 +02:00
** Hacks
/No hacks documented for this module./
** TODO Changelog
# This section will be machine generated. Don't edit it by hand.
/This module does not have a changelog yet./
* Installation
[[id:01cffea4-3329-45e2-a892-95a384ab2338 ][Enable this module in your ~doom!~ block. ]]
2020-08-07 23:40:06 -04:00
This module has no hard prerequisites, but in order for its features to work you
2021-03-06 11:23:00 -05:00
need:
2020-08-07 23:40:06 -04:00
2021-10-16 01:28:51 +02:00
- For system clipboard integration:
- A supported clipboard program, such as:
- Linux: =xclip= , =xsel= , or =wl-clibpoard= (Wayland)
- macOS: =pbcopy= and =pbpaste= (included with macOS)
- Windows: =getclip= and =putclip= (cygwin)
2022-09-26 02:19:42 +08:00
- (If [[doom-module:+osc ]] is enabled) A terminal that supports OSC 52 escape codes, such as:
2021-10-16 01:28:51 +02:00
xterm (unix), iTerm2 (macOS), alacritty (cross platform), kitty (macOS,
2021-03-06 11:23:00 -05:00
linux), mintty (Windows), hterm (javascript), st (unix), mlterm (cross
platform)
2021-10-16 01:28:51 +02:00
- For cursor shape changing in the terminal you need A terminal that supports
2021-03-06 11:23:00 -05:00
VT's DECSCUSR sequence, such as: Gnome Terminal, xterm, iTerm (macOS),
Konsole, or mintty (Windows). Terminal.app (macOS) is supported too, but
requires [[http://www.culater.net/software/SIMBL/SIMBL.php ][SIMBL ]] and [[https://github.com/saitoha/mouseterm-plus/releases ][MouseTerm ]] Plus to work.
2020-08-07 23:40:06 -04:00
2021-10-16 01:28:51 +02:00
* TODO Usage
#+begin_quote
2023-09-16 20:19:11 +02:00
This module has no usage documentation yet. [[doom-contrib-module: ][Write some? ]]
2021-10-16 01:28:51 +02:00
#+end_quote
2020-08-08 04:32:59 -04:00
2021-10-16 01:28:51 +02:00
* TODO Configuration
#+begin_quote
2023-09-16 20:19:11 +02:00
/This module's configuration documentation is incomplete./ [[doom-contrib-module: ][Complete it? ]]
2021-10-16 01:28:51 +02:00
#+end_quote
** True-color and italic support
Consult [[https://github.com/syl20bnr/spacemacs/wiki/Terminal ][the spacemacs wiki ]] for details on achieving true color support for
terminal Emacs.
2020-08-07 23:40:06 -04:00
* Troubleshooting
2021-10-16 01:28:51 +02:00
/There are no known problems with this module./ [[doom-report: ][Report one? ]]
* Frequently asked questions
/This module has no FAQs yet./ [[doom-suggest-faq: ][Ask one? ]]
* TODO Appendix
#+begin_quote
2023-09-16 20:19:11 +02:00
This module has no appendix yet. [[doom-contrib-module: ][Write one? ]]
2021-10-16 01:28:51 +02:00
#+end_quote