inputrc.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-scripts-inputrc">
  7. <title>Creating the /etc/inputrc file</title>
  8. <?dbhtml filename="inputrc.html"?>
  9. <indexterm zone="ch-scripts-inputrc"><primary sortas="e-/etc/inputrc">/etc/inputrc</primary></indexterm>
  10. <screen><userinput>cat &gt; /etc/inputrc &lt;&lt; "EOF"
  11. # Begin /etc/inputrc
  12. # Make sure we don't output everything on the 1 line
  13. set horizontal-scroll-mode Off
  14. # Enable 8bit input
  15. set meta-flag On
  16. set input-meta On
  17. # Turns off 8th bit stripping
  18. set convert-meta Off
  19. # Keep the 8th bit for display
  20. set output-meta On
  21. # none, visible or audible
  22. set bell-style none
  23. # All of the following map the escape sequence of the
  24. # value contained inside the 1st argument to the
  25. # readline specific functions
  26. "\eOd": backward-word
  27. "\eOc": forward-word
  28. # for linux console
  29. "\e[1~": beginning-of-line
  30. "\e[4~": end-of-line
  31. "\e[5~": beginning-of-history
  32. "\e[6~": end-of-history
  33. "\e[3~": delete-char
  34. "\e[2~": quoted-insert
  35. # for xterm
  36. "\eOH": beginning-of-line
  37. "\eOF": end-of-line
  38. # for Konsole
  39. "\e[H": beginning-of-line
  40. "\e[F": end-of-line
  41. # End /etc/inputrc
  42. EOF</userinput></screen>
  43. </sect1>