commit - e8392b282c2eaa28725241a9612804fb55113da4
commit + 475a0a36cb4fda1da30f014da65988e99b222876
blob - 54af09826c7389b4eac288273fb1aa121f471d76
blob + 0d35613e04222564ab5fee489df6e1812b0a027f
--- st.c
+++ st.c
int charset; /* current charset */
int icharset; /* selected charset for sequence */
int *tabs;
- Rune lastc; /* last printed char outside of sequence, 0 if control */
} Term;
/* CSI Escape sequence structs */
if (csiescseq.arg[0] == 0)
ttywrite(vtiden, strlen(vtiden), 0);
break;
- case 'b': /* REP -- if last char is printable print it <n> more times */
- DEFAULT(csiescseq.arg[0], 1);
- if (term.lastc)
- while (csiescseq.arg[0]-- > 0)
- tputc(term.lastc);
- break;
case 'C': /* CUF -- Cursor <n> Forward */
case 'a': /* HPR -- Cursor <n> Forward */
DEFAULT(csiescseq.arg[0], 1);
/*
* control codes are not shown ever
*/
- if (!term.esc)
- term.lastc = 0;
return;
} else if (term.esc & ESC_START) {
if (term.esc & ESC_CSI) {
}
tsetchar(u, &term.c.attr, term.c.x, term.c.y);
- term.lastc = u;
if (width == 2) {
gp->mode |= ATTR_WIDE;
blob - e5393db18d41fd2d67ea07f6bc7b848af7cd37fc
blob + d0694e229c84037a3b01c7518fe2eeb4568c7904
--- st.info
+++ st.info
# XTerm extensions
rmxx=\E[29m,
smxx=\E[9m,
- rep=%p1%c\E[%p2%{1}%-%db,
# tmux extensions, see TERMINFO EXTENSIONS in tmux(1)
Tc,
Ms=\E]52;%p1%s;%p2%s\007,