X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=config.def.h;h=0070635af8f536c10a74bb6a611940adb65a5a76;hb=235b438e689e1fab677ee7e6ee53491867c16b9d;hp=fd09d72b7cde7e477b66a08ce0a40175ff72f288;hpb=e2aa03e6b71436e1c9207b01777baa16b7a00ea5;p=st.git diff --git a/config.def.h b/config.def.h index fd09d72..0070635 100644 --- a/config.def.h +++ b/config.def.h @@ -303,6 +303,7 @@ static Key key[] = { { XK_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0}, { XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0}, { XK_BackSpace, XK_NO_MOD, "\177", 0, 0, 0}, + { XK_BackSpace, Mod1Mask, "\033\177", 0, 0, 0}, { XK_Home, ShiftMask, "\033[2J", 0, -1, 0}, { XK_Home, ShiftMask, "\033[1;2H", 0, +1, 0}, { XK_Home, XK_ANY_MOD, "\033[H", 0, -1, 0}, @@ -417,3 +418,12 @@ static uint selmasks[] = { [SEL_RECTANGULAR] = Mod1Mask, }; +/* + * Printable characters in ASCII, used to estimate the advance width + * of single wide characters. + */ +static char ascii_printable[] = + " !\"#$%&'()*+,-./0123456789:;<=>?" + "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" + "`abcdefghijklmnopqrstuvwxyz{|}~"; +