diff options
| author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2020-05-14 18:18:07 +0300 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-05-16 14:08:10 +0200 |
| commit | e8392b282c2eaa28725241a9612804fb55113da4 (patch) | |
| tree | a19918f19c26bae56e589fa3adb3cd7a3e9955c5 /st.info | |
| parent | Add rin terminfo capability (diff) | |
| download | st-e8392b282c2eaa28725241a9612804fb55113da4.tar.gz st-e8392b282c2eaa28725241a9612804fb55113da4.zip | |
support REP (repeat) escape sequence
The sequence \e[Nb prints the last printed char N (more) times if it's
printable, and it's ignored after newline or other control chars.
This is Ecma-048/ANSI-X3.6 sequence and not DEC VT. It's supported by
xterm, and ncurses uses it when possible, e.g. when TERM is xterm* (and
with this commit also st*).
xterm supports only codepoints<=255, possibly due to internal limits.
We support any value/codepoint which was placed in a cell.
To test:
- tput rep 65 4 -> prints 'AAAA'
- printf "\342\225\246\033[4b" -> prints U+2566 1+4 times.
Diffstat (limited to '')
| -rw-r--r-- | st.info | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -184,6 +184,7 @@ st-mono| simpleterm monocolor, | |||
| 184 | # XTerm extensions | 184 | # XTerm extensions |
| 185 | rmxx=\E[29m, | 185 | rmxx=\E[29m, |
| 186 | smxx=\E[9m, | 186 | smxx=\E[9m, |
| 187 | rep=%p1%c\E[%p2%{1}%-%db, | ||
| 187 | # tmux extensions, see TERMINFO EXTENSIONS in tmux(1) | 188 | # tmux extensions, see TERMINFO EXTENSIONS in tmux(1) |
| 188 | Tc, | 189 | Tc, |
| 189 | Ms=\E]52;%p1%s;%p2%s\007, | 190 | Ms=\E]52;%p1%s;%p2%s\007, |
