JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix bug where first selection snaps to lines
[st.git] / config.h
index 14800fb..87ec596 100644 (file)
--- a/config.h
+++ b/config.h
@@ -6,7 +6,9 @@
  * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
  */
 static char font[] = "Fantasque Sans Mono:pixelsize=16:antialias=true:autohint=false";
-static int borderpx = 1;
+//static int borderpx = 25; // setting for run dialog
+static int borderpx = 1; // normal setting
+static int histsize = 2000;
 static char shell[] = "/bin/sh";
 static char *utmp = NULL;
 
@@ -39,7 +41,7 @@ static unsigned int actionfps = 30;
  * blinking timeout (set to 0 to disable blinking) for the terminal blinking
  * attribute.
  */
-static unsigned int blinktimeout = 250;
+static unsigned int blinktimeout = 0;
 
 /*
  * bell volume. It must be a value between -100 and 100. Use 0 for disabling
@@ -57,7 +59,8 @@ static unsigned int tabspaces = 4;
 /* Terminal colors (16 first used in escape sequence) */
 static const char *colorname[] = {
        /* 8 normal colors */
-       "#2e3436",
+       // "#0d1b51", // background for run dialog
+       "#2e3436", // normal background
        "#cc0000",
        "#4e9a06",
        "#c4a000",
@@ -121,6 +124,10 @@ static Shortcut shortcuts[] = {
        { ShiftMask,            XK_Insert,      selpaste,       {.i =  0} },
        { MODKEY|ShiftMask,     XK_Insert,      clippaste,      {.i =  0} },
        { MODKEY,               XK_Num_Lock,    numlock,        {.i =  0} },
+       { ShiftMask,            XK_Up,          kscrollup,      {.i = -1} },
+       { ShiftMask,            XK_Down,        kscrolldown,    {.i = -1} },
+       { ShiftMask,            XK_Page_Up,     kscrollup,      {.i = -1} },
+       { ShiftMask,            XK_Page_Down,   kscrolldown,    {.i = -1} },
 };
 
 /*
@@ -163,8 +170,7 @@ static uint ignoremod = Mod2Mask|XK_SWITCH_MOD;
 /* Override mouse-select while mask is active (when MODE_MOUSE is set).
  * Note that if you want to use ShiftMask with selmasks, set this to an other
  * modifier, set to 0 to not use it. */
-//static uint forceselmod = ShiftMask;
-static uint forceselmod = -1;
+static uint forceselmod = ShiftMask;
 
 static Key key[] = {
        /* keysym           mask            string      appkey appcursor crlf */
@@ -261,8 +267,7 @@ static Key key[] = {
        { XK_Delete,        ShiftMask,      "\033[3;2~",    +1,    0,    0},
        { XK_Delete,        XK_ANY_MOD,     "\033[3~",      -1,    0,    0},
        { XK_Delete,        XK_ANY_MOD,     "\033[3~",      +1,    0,    0},
-       { XK_BackSpace,     XK_ANY_MOD,     "\177",         -1,    0,    0},
-       { XK_BackSpace,     XK_ANY_MOD,     "\177",         +1,    0,    0},
+       { XK_BackSpace,     XK_ANY_MOD,     "\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},