I am getting inconsistent backspace behavior when using st with the
config.h below (default package on Archlinux). The output of 'showkey
--ascii' when I press backspace and alt+backspace is below
^? 127 0177 0x7f
^[^H 27 0033 0x1b
8 0010 0x08
This behavior makes it hard to delete a word backwards without pressing
Escape key, especially on GNU Emacs.
How can I get rid of this inconsistent backspace behavior and get the
right backspace behavior (^?) even with alt (meta) pressed?
Here is 'st --version' output: /usr/bin/st 0.6 (c) 2010-2015 st engineers
Here is 'stty -a' output:
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt
= ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff
-iuclc -ixany imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt
echoctl echoke -flusho -extproc
Here is 'ncursesw6-config --version' output
6.0.20150808
The config.h diff to config.def.h in st-06.tar.gz
Index: b/config.h
===================================================================
--- a/config.h
+++ b/config.h
_AT_@ -5,7 +5,7 @@
*
* font: see
http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
-static char font[] = "Liberation Mono:pixelsize=12:antialias=false:autohint=false";
+static char font[] = "Fixed:pixelsize=18:antialias=false:autohint=false";
static int borderpx = 2;
static char shell[] = "/bin/sh";
static char *utmp = NULL;
Received on Mon Jul 04 2016 - 22:49:05 CEST