inputrc.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. <para>Create the /etc/inputrc file:</para>
  10. <screen><userinput>cat &gt; /etc/inputrc &lt;&lt; "EOF"
  11. <literal># Begin /etc/inputrc
  12. # Modified by Chris Lynn &lt;roryo@roryo.dynup.net&gt;
  13. # Make sure we don't output everything on the 1 line
  14. set horizontal-scroll-mode Off
  15. # Enable 8bit input
  16. set meta-flag On
  17. set input-meta On
  18. # Turns off 8th bit stripping
  19. set convert-meta Off
  20. # Keep the 8th bit for display
  21. set output-meta On
  22. # none, visible or audible
  23. set bell-style none
  24. # All of the following map the escape sequence of the
  25. # value contained inside the 1st argument to the
  26. # readline specific functions
  27. "\eOd": backward-word
  28. "\eOc": forward-word
  29. # for linux console
  30. "\e[1~": beginning-of-line
  31. "\e[4~": end-of-line
  32. "\e[5~": beginning-of-history
  33. "\e[6~": end-of-history
  34. "\e[3~": delete-char
  35. "\e[2~": quoted-insert
  36. # for xterm
  37. "\eOH": beginning-of-line
  38. "\eOF": end-of-line
  39. # for Konsole
  40. "\e[H": beginning-of-line
  41. "\e[F": end-of-line
  42. # End /etc/inputrc</literal>
  43. EOF</userinput></screen>
  44. </sect1>