Enable bold & italic using terminfo database
Extend the default `xterm-256color` terminfo to enable italic and bold text in `xterm`, `screem`, and `tmux`.
This commit is contained in:
commit
4f08d9ee4b
5
.conduit.yaml
Normal file
5
.conduit.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- command:
|
||||||
|
- tic xterm-256color.terminfo
|
||||||
|
- tic screen-256color.terminfo
|
||||||
|
- tic tmux-256color.terminfo
|
21
README.md
Normal file
21
README.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Terminal Configuration
|
||||||
|
|
||||||
|
## terminfo
|
||||||
|
|
||||||
|
Enable italic and bold text in `xterm-256color`, `screen-256color`, and
|
||||||
|
`tmux-256color` using user [terminfo][terminfo] database compiler [tic][tic].
|
||||||
|
|
||||||
|
* `sitm` enter italics mode, set to `\E[3m` which enables italics
|
||||||
|
* `ritm` exit italics mode, set to `\E[23m` which disables italics
|
||||||
|
* `smso` enter standout mode, set to `\E[7m` which enables bold
|
||||||
|
* `rmso` exit standout mode, set to `\E[27m` which disabled bold
|
||||||
|
|
||||||
|
To compile a [terminfo][terminfo] database for the current user, output to
|
||||||
|
`~/.terminfo`, use the following command.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ tic xterm-256color.terminfo
|
||||||
|
```
|
||||||
|
|
||||||
|
[terminfo]: https://linux.die.net/man/5/terminfo
|
||||||
|
[tic]: https://linux.die.net/man/1/tic
|
4
screen-256color.terminfo
Normal file
4
screen-256color.terminfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
screen-256color|xterm 256 colors italic bold,
|
||||||
|
sitm=\E[3m, ritm=\E[23m,
|
||||||
|
smso=\E[7m, rmso=\E[27m,
|
||||||
|
use=xterm-256color,
|
4
tmux-256color.terminfo
Normal file
4
tmux-256color.terminfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
tmux-256color|xterm 256 italic bold,
|
||||||
|
sitm=\E[3m, ritm=\E[23m,
|
||||||
|
smso=\E[7m, rmso=\E[27m,
|
||||||
|
use=xterm-256color,
|
4
xterm-256color.terminfo
Normal file
4
xterm-256color.terminfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
xterm-256color|xterm 256 colors italic bold,
|
||||||
|
sitm=\E[3m, ritm=\E[23m,
|
||||||
|
smso=\E[7m, rmso=\E[27m,
|
||||||
|
use=xterm-256color,
|
Reference in New Issue
Block a user