mirror of
https://github.com/prurigro/darkcloud-tmuxconfig.git
synced 2024-11-23 07:34:10 -05:00
Remove the terminfo italics stuff as this is no longer necessary
This commit is contained in:
parent
06500bfdcf
commit
6d14264cce
2 changed files with 0 additions and 30 deletions
|
@ -40,10 +40,6 @@
|
||||||
| `W` | Write scrollback buffer to file |
|
| `W` | Write scrollback buffer to file |
|
||||||
| `Alt-[0-9]` (no prefix) | Switch directly to the given window |
|
| `Alt-[0-9]` (no prefix) | Switch directly to the given window |
|
||||||
|
|
||||||
## Italics Support
|
|
||||||
|
|
||||||
Tmux supports italics if your terminal does, but the terminfo files _screen_ and _screen-256color_ don't advertise this, and most programs will display reversed text when it should be italics. To fix this, run: `tmux-italics-terminfo`, then follow the instructions it displays by changing `set-option -g default-terminal "screen-256color"` to `set-option -g default-terminal "screen-256color-it"` in your _tmux.conf_. You'll want to make sure your _/etc/bash.bashrc_, _/etc/dircolors_, possibly **vim** and any other terminal applications that check the `$TERM` variable have _screen-it_ and _screen-256color-it_ added.
|
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
* Written by Kevin MacMartin: [GitHub Projects](https://github.com/prurigro) | [Arch Linux AUR Packages](https://aur.archlinux.org/packages/?SeB=m&K=prurigro)
|
* Written by Kevin MacMartin: [GitHub Projects](https://github.com/prurigro) | [Arch Linux AUR Packages](https://aur.archlinux.org/packages/?SeB=m&K=prurigro)
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
SRC_TERMINFO="screen-256color"
|
|
||||||
TMP_TERMINFO="/tmp/${SRC_TERMINFO}.terminfo"
|
|
||||||
|
|
||||||
echo -n "Generating ${SRC_TERMINFO}-it... "
|
|
||||||
|
|
||||||
[[ -d "${HOME}/.terminfo" ]] \
|
|
||||||
|| install -d "${HOME}/.terminfo/"
|
|
||||||
[[ -f "${HOME}/.terminfo/s/${SRC_TERMINFO}-it" ]] \
|
|
||||||
&& rm "${HOME}/.terminfo/s/${SRC_TERMINFO}-it"
|
|
||||||
|
|
||||||
infocmp "$SRC_TERMINFO" | sed \
|
|
||||||
-e 's/^screen[^|]*|[^,]*,/'${SRC_TERMINFO}'-it|'${SRC_TERMINFO}' with italics support,/' \
|
|
||||||
-e 's/%?%p1%t;3%/%?%p1%t;7%/' \
|
|
||||||
-e 's/smso=[^,]*,/smso=\\E[7m,/' \
|
|
||||||
-e 's/rmso=[^,]*,/rmso=\\E[27m,/' \
|
|
||||||
-e '$s/$/ sitm=\\E[3m, ritm=\\E[23m,/' > "$TMP_TERMINFO"
|
|
||||||
tic "$TMP_TERMINFO"
|
|
||||||
|
|
||||||
rm "$TMP_TERMINFO"
|
|
||||||
|
|
||||||
[[ ! -f "${HOME}/.terminfo/s/${SRC_TERMINFO}-it" ]] && echo "Error!" && exit 1
|
|
||||||
|
|
||||||
echo -e "Done!\n"
|
|
||||||
echo -e "Now in your tmux.conf, change:\n\n set-option -g default-terminal \"screen-256color\"\n\nto:\n\n set-option -g default-terminal \"screen-256color-it\""
|
|
Loading…
Reference in a new issue