vanhofen
3 years ago
3 changed files with 69 additions and 1 deletions
@ -0,0 +1,42 @@ |
|||
# /etc/inputrc - global inputrc for libreadline |
|||
|
|||
# Be 8 bit clean. |
|||
set input-meta on |
|||
set output-meta on |
|||
set bell-style visible |
|||
|
|||
# To allow the use of 8bit-characters like the german umlauts, comment out |
|||
# the line below. However this makes the meta key not work as a meta key, |
|||
# which is annoying to those which don't need to type in 8-bit characters. |
|||
|
|||
# set convert-meta off |
|||
|
|||
"\e0d": backward-word |
|||
"\e0c": forward-word |
|||
"\e[h": beginning-of-line |
|||
"\e[f": end-of-line |
|||
"\e[1~": beginning-of-line |
|||
"\e[4~": end-of-line |
|||
#"\e[5~": beginning-of-history |
|||
#"\e[6~": end-of-history |
|||
"\e[3~": delete-char |
|||
"\e[2~": quoted-insert |
|||
|
|||
# Common standard keypad and cursor |
|||
# (codes courtsey Werner Fink, <werner@suse.de>) |
|||
#"\e[1~": history-search-backward |
|||
"\e[2~": yank |
|||
"\e[3~": delete-char |
|||
#"\e[4~": set-mark |
|||
"\e[5~": history-search-backward |
|||
"\e[6~": history-search-forward |
|||
# Normal keypad and cursor of xterm |
|||
"\e[F": end-of-line |
|||
"\e[H": beginning-of-line |
|||
# Application keypad and cursor of xterm |
|||
"\eOA": previous-history |
|||
"\eOC": forward-char |
|||
"\eOB": next-history |
|||
"\eOD": backward-char |
|||
"\eOF": end-of-line |
|||
"\eOH": beginning-of-line |
@ -0,0 +1,18 @@ |
|||
link readline directly to ncurses since it needs symbols from it |
|||
|
|||
upstream readline does this on purpose (no direct linking), but |
|||
it doesn't make much sense in a Linux world |
|||
|
|||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> |
|||
|
|||
--- a/support/shobj-conf
|
|||
+++ b/support/shobj-conf
|
|||
@@ -42,7 +42,7 @@
|
|||
SHOBJ_LIBS= |
|||
|
|||
SHLIB_XLDFLAGS= |
|||
-SHLIB_LIBS=
|
|||
+SHLIB_LIBS=-lncurses
|
|||
|
|||
SHLIB_DOT='.' |
|||
SHLIB_LIBPREF='lib' |
Loading…
Reference in new issue