]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - misc/gen_edit.sh
ncurses 5.9 - patch 20120310
[ncurses.git] / misc / gen_edit.sh
index e84c039c0cfc58d035d42dc22857254040001056..49557111d77899dbde291ba04f3db6394ce0fc6e 100755 (executable)
@@ -29,7 +29,7 @@
 #
 # Author: Thomas E. Dickey
 #
-# $Id: gen_edit.sh,v 1.3 2012/01/22 19:58:06 Sven.Joachim Exp $
+# $Id: gen_edit.sh,v 1.4 2012/02/11 16:30:03 tom Exp $
 # Generate a sed-script for converting the terminfo.src to the form which will
 # be installed.
 #
@@ -39,6 +39,7 @@
 
 : ${datadir=@datadir@}
 : ${xterm_new=@WHICH_XTERM@}
+: ${xterm_kbs=@XTERM_KBS@}
 
 # If we're not installing into /usr/share/, we'll have to adjust the location
 # of the tabset files in terminfo.src (which are in a parallel directory).
@@ -57,6 +58,14 @@ cat <<EOF
 EOF
 fi
 
+if test "$xterm_kbs" != "BS" ; then
+cat <<EOF
+/^xterm+kbs|fragment for backspace key/,/^#/{
+       s/kbs=^H,/kbs=^?,/
+}
+EOF
+fi
+
 # Work around incompatibities built into Linux console.  The 2.6 series added
 # a patch to fixup the SI/SO behavior, which is closer to vt100, but the older
 # kernels do not recognize those controls.