From: gobo72 Date: Fri, 23 Sep 2011 01:19:18 +0000 (+0000) Subject: Corrigé problème avec les touches CTRL-left-arrow et CTRL-right-arrow qui ne fonction... X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=e9b2413f8007e4c4952c27327d37cb8f548607e5;p=hvlinux.git Corrigé problème avec les touches CTRL-left-arrow et CTRL-right-arrow qui ne fonctionnaient pas correctement avec bash. --- diff --git a/stage1/create-config-files b/stage1/create-config-files index 2f423e9..0c29a0b 100755 --- a/stage1/create-config-files +++ b/stage1/create-config-files @@ -133,38 +133,9 @@ else fi EOF -install -v -m644 ${SCRDIR}/misc/DIR_COLORS ${LFS}/etc/DIR_COLORS - -echo "Creating /etc/inputrc" -cat > ${LFS}/etc/inputrc << "EOF" -# Begin /etc/inputrc - -# Enable 8bit input -set meta-flag On -set input-meta On -# Turns off 8th bit stripping -set convert-meta Off -# Keep the 8th bit for display -set output-meta On - -# none, visible or audible -set bell-style none - -# All of the following map the escape sequence of the value contained inside -# the 1st argument to the readline specific functions -"\eOd": backward-word -"\eOc": forward-word -# for linux console -"\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 -# for xterm -"\eOH": beginning-of-line -"\eOF": end-of-line -EOF +install -v -m644 ${SCRDIR}/misc/DIR_COLORS ${LFS}/etc + +install -v -m644 ${SCRDIR}/misc/inputrc ${LFS}/etc cat >> ${LFS}/etc/modules << "EOF" # /etc/modules: kernel modules to load at boot time. diff --git a/stage1/misc/inputrc b/stage1/misc/inputrc new file mode 100644 index 0000000..3ed6c06 --- /dev/null +++ b/stage1/misc/inputrc @@ -0,0 +1,37 @@ +# Begin /etc/inputrc + +# Enable 8bit input +set meta-flag On +set input-meta On + +# Turns off 8th bit stripping +set convert-meta Off + +# Keep the 8th bit for display +set output-meta On + +# none, visible or audible +set bell-style none + +set completion-ignore-case On + +# All of the following map the escape sequence of the value contained inside +# the 1st argument to the readline specific functions + +# Tip: use the command "showkey -a" to show the control codes for a +# particular key sequence. + +# for linux console +"\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 +"\e[D": backward-word +"\e[C": forward-word +# for xterm +"\eOH": beginning-of-line +"\eOF": end-of-line +"\e[1;5D": backward-word +"\e[1;5C": forward-word