home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pytho152.zip / emx / doc / Python / .inputrc next >
Text File  |  1997-10-08  |  6KB  |  135 lines

  1. ###################################
  2. #                                 #
  3. # GNU readline configuration file #
  4. #                                 #
  5. ###################################
  6.  
  7. set bell-style none
  8. # Controls what happens when Readline wants to ring the terminal bell. If set to
  9. # 'none', Readline never rings the bell. If set to 'visible', Readline uses a
  10. # visible bell if one is available. If set to 'audible' (the default), Readline
  11. # attempts to ring the terminal's bell.
  12.  
  13. set comment-begin #
  14. # The string to insert at the beginning of the line when the insert-comment
  15. # command is executed. The default value is "#".
  16.  
  17. set completion-query-items 100
  18. # The number of possible completions that determines when the user is asked
  19. # whether he wants to see the list of possibilities. If the number of possible
  20. # completions is greater than this value, Readline will ask the user whether or
  21. # not he wishes to view them; otherwise, they are simply listed. The default
  22. # limit is 100.
  23.  
  24. set convert-meta off
  25. # If set to 'on', Readline will convert characters with the eigth bit set to an
  26. # ASCII key sequence by stripping the eigth bit and prepending an ESC
  27. # character, converting them to a meta-prefixed key sequence. The default value
  28. # is 'on'.
  29.  
  30. set disable-completion off
  31. # If set to 'On', readline will inhibit word completion. Completion characters
  32. # will be inserted into the line as if they had been mapped to self-insert. The
  33. # default is 'off'.
  34.  
  35. set editing-mode emacs
  36. # The editing-mode variable controls which editing mode you are using. By
  37. # default, Readline starts up in Emacs editing mode, where the keystrokes are
  38. # most similar to Emacs. This variable can be set to either 'emacs' or 'vi'.
  39.  
  40. set enable-keypad off
  41. # When set to 'on', readline will try to enable the application keypad when it
  42. # is called. Some systems need this to enable the arrow keys. The default is
  43. # 'off'.
  44.  
  45. set expand-tilde off
  46. # If set to 'on', tilde expansion is performed when Readline attempts word
  47. # completion. The default is 'off'.
  48.  
  49. set horizontal-scroll-mode off
  50. # This variable can be set to either 'on' or 'off'. Setting it to 'on' means
  51. # that the text of the lines that you edit will scroll horizontally on a
  52. # single screen line when they are longer than the width of the screen, instead
  53. # of wrapping onto a new screen line. By default, this variable is set to 'off'.
  54.  
  55. set keymap emacs
  56. # Sets Readline's idea of the current keymap for key binding commands.
  57. # Acceptable keymap names are emacs, emacs-standard, emacs-meta, emacs-ctlx, vi,
  58. # vi-command, and vi-insert. vi is equivalent to vi-command; emacs is equivalent
  59. # to emacs-standard. The default value is emacs. The value of the editing-mode
  60. # variable also affects the default keymap.
  61.  
  62. set mark-directories on
  63. # If set to 'on', completed directory names have a slash appended. The default
  64. # is 'on'.
  65.  
  66. set mark-modified-lines off
  67. # This variable, when set to 'on', says to display an asterisk ('*') at the
  68. # start of history lines which have been modified. This variable is 'off' by
  69. # default.
  70.  
  71. set input-meta on
  72. # If set to 'on', Readline will enable eight-bit input (it will not strip the
  73. # eighth bit from the characters it reads), regardless of what the terminal
  74. # claims it can support. The default value is 'off'. The name meta-flag is a
  75. # synonym for this variable.
  76.  
  77. set output-meta on
  78. # If set to 'on', Readline will display characters with the eighth bit set
  79. # directly rather than as a meta-prefixed escape sequence. The default is
  80. # 'off'.
  81.  
  82. set show-all-if-ambiguous on
  83. # This alters the default behavior of the completion functions. If set to 'on',
  84. # words which have more than one possible completion cause the matches to be
  85. # listed immediately instead of ringing the bell. The default value is 'off'.
  86.  
  87. set visible-stats off
  88. # If set to 'on', a character denoting a file's type is appended to the filename
  89. # when listing possible completions. The default is 'off'.
  90.  
  91. $if term=os2
  92. #------------------------------------------------------------------------------#
  93. # Key bindings for AT-101 enhanced keyboard under OS/2                         #
  94. #------------------------------------------------------------------------------#
  95.  
  96. #-------------------------------- Del
  97. "\e[P":  delete-char
  98. #-------------------------------- Ctrl+Tab
  99. "\e]ct": tab-insert
  100. #-------------------------------- Ctrl+Home
  101. "\e[2J": clear-screen
  102. #-------------------------------- Ctrl+End
  103. "\e[K":  kill-line
  104. #-------------------------------- Ctrl+BackSpace
  105. "\e[M":  backward-kill-word
  106. #-------------------------------- Ctrl+Right
  107. "\e]c6": forward-word
  108. #-------------------------------- Ctrl+Left
  109. "\e]c4": backward-word
  110. #-------------------------------- Ctrl+PageUp
  111. "\e]c9": end-of-history
  112. #-------------------------------- Ctrl+PageDown
  113. "\e]c3": beginning-of-history
  114. #-------------------------------- Ctrl+Up
  115. "\e]c8": history-search-backward
  116. #-------------------------------- Ctrl+Down
  117. "\e]c2": history-search-forward
  118. #-------------------------------- Ctrl+Space
  119. "\e]c ": possible-completions
  120. #-------------------------------- Alt+[
  121. "\e][":  start-kbd-macro
  122. #-------------------------------- Alt+]
  123. "\e]]":  end-kbd-macro
  124. #-------------------------------- Alt+Enter
  125. "\e]ae": call-last-kbd-macro
  126. #-------------------------------- Alt+T
  127. "\eaT":  transpose-words
  128. #-------------------------------- Alt+U
  129. "\eaU":  upcase-word
  130. #-------------------------------- Alt+L
  131. "\eaL":  downcase-word
  132. #-------------------------------- Alt+C
  133. "\eaC":  capitalize-word
  134. $endif
  135.