From e9b2413f8007e4c4952c27327d37cb8f548607e5 Mon Sep 17 00:00:00 2001 From: gobo72 Date: Fri, 23 Sep 2011 01:19:18 +0000 Subject: [PATCH] =?utf8?q?Corrig=C3=A9=20probl=C3=A8me=20avec=20les=20touc?= =?utf8?q?hes=20CTRL-left-arrow=20et=20CTRL-right-arrow=20qui=20ne=20fonct?= =?utf8?q?ionnaient=20pas=20correctement=20avec=20bash.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- stage1/create-config-files | 35 +++-------------------------------- stage1/misc/inputrc | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 32 deletions(-) create mode 100644 stage1/misc/inputrc 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 -- 2.20.1