Greetings. Today I checkouted latest st from repository and tried to replace urxvt-unicode with it. I have tried several times to do this before, but there were different annoying things I did not expect and have no time of trying to fix them.
Today I am very glad that really everything is working out now. mutt, tmux, vim, zsh, russian language, selection and pasting: everything is working perfectly fine. urxvt-unicode is deleted now at last. st is working faster than it, however I had to increase fps value. Except trivial interface outlook changes, I made several more serious ones: * I very like to see italic strings more visible by colorizing them. Italics are generated by grep, Ack, less, git diff (at least on my computer). So 0001-Highlight-italic-string-with-different-color-default.patch is based on http://st.suckless.org/patches/boldcolor and do just italics color highlighting. * 0002-Missing-Ctrl-PgUp-PgDown-key-sequences.patch adds Ctrl-PgUp and Ctrl-PgDown sequences. I used them to switch tabs inside tmux, so they were necessarily at least for me. * 0003-Missing-Shift-PageUp-key-sequence.patch adds Shift-PgUp sequence. Shift-PgDown was already defined here, but PgUp now. Maybe they will be useful for somebody. Anyway at least I am very happy to switch to st. Thanks to suckless community! -- Happy hacking, Sergey Matveev
diff --git a/config.def.h b/config.def.h index 34884c0..d664cc4 100644 --- a/config.def.h +++ b/config.def.h @@ -62,6 +62,8 @@ static unsigned int defaultbg = 0; static unsigned int defaultcs = 256; static unsigned int defaultucs = 257; +#define DEFAULTITALIC 11 + /* Internal shortcuts. */ #define MODKEY Mod1Mask diff --git a/st.c b/st.c index afa6813..80dcd10 100644 --- a/st.c +++ b/st.c @@ -2752,6 +2752,9 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { } if(base.mode & ATTR_ITALIC) { + fg = &dc.col[DEFAULTITALIC]; + } + if(base.mode & ATTR_ITALIC) { font = &dc.ifont; frcflags = FRC_ITALIC; }
diff --git a/config.def.h b/config.def.h index d664cc4..af23a7e 100644 --- a/config.def.h +++ b/config.def.h @@ -217,7 +217,9 @@ static Key key[] = { { XK_End, ShiftMask, "\033[K", -1, 0, 0}, { XK_End, ShiftMask, "\033[1;2F", +1, 0, 0}, { XK_End, XK_ANY_MOD, "\033[4~", 0, 0, 0}, + { XK_Prior, ControlMask, "\033[5;5~", 0, 0, 0}, { XK_Prior, XK_NO_MOD, "\033[5~", 0, 0, 0}, + { XK_Next, ControlMask, "\033[6;5~", 0, 0, 0}, { XK_Next, ShiftMask, "\033[6;2~", 0, 0, 0}, { XK_Next, XK_ANY_MOD, "\033[6~", 0, 0, 0}, { XK_F1, XK_NO_MOD, "\033OP" , 0, 0, 0},
diff --git a/config.def.h b/config.def.h index af23a7e..57926df 100644 --- a/config.def.h +++ b/config.def.h @@ -218,6 +218,7 @@ static Key key[] = { { XK_End, ShiftMask, "\033[1;2F", +1, 0, 0}, { XK_End, XK_ANY_MOD, "\033[4~", 0, 0, 0}, { XK_Prior, ControlMask, "\033[5;5~", 0, 0, 0}, + { XK_Prior, ShiftMask, "\033[5;2~", 0, 0, 0}, { XK_Prior, XK_NO_MOD, "\033[5~", 0, 0, 0}, { XK_Next, ControlMask, "\033[6;5~", 0, 0, 0}, { XK_Next, ShiftMask, "\033[6;2~", 0, 0, 0},
pgpPcXC7tsUgD.pgp
Description: PGP signature