/dports/lang/racket/racket-8.3/share/pkgs/readline-lib/readline/ |
H A D | pread.rkt | 132 (define (get-readline-state) 133 (or (thread-cell-ref readline-state-cell) 134 (let ([state (readline-state #" " '())]) 135 (thread-cell-set! readline-state-cell state) 139 (define chunk (readline-state-multiline-chunk state)) 143 (set-readline-state-multiline-chunk! state '()))) 148 (define c (readline-state-multiline-chunk state)) 149 (set-readline-state-multiline-chunk! 152 (list* line (readline-state-prompt-spaces state) #"\n" c) 165 (readline-state-prompt-spaces state) [all …]
|
/dports/sysutils/terraform/terraform-1.0.11/internal/helper/wrappedreadline/ |
H A D | wrappedreadline.go | 22 func Override(cfg *readline.Config) *readline.Config { 45 return readline.IsTerminal(int(wrappedstreams.Stdin().Fd())) && 46 (readline.IsTerminal(int(wrappedstreams.Stdout().Fd())) || 47 readline.IsTerminal(int(wrappedstreams.Stderr().Fd()))) 53 return readline.GetScreenWidth() 63 state *readline.State member 67 r.state, err = readline.MakeRaw(r.StdinFd) 72 if r.state == nil { 76 return readline.Restore(r.StdinFd, r.state)
|
/dports/net/py-magic-wormhole/magic-wormhole-0.12.0/src/wormhole/ |
H A D | _rlcompleter.py | 14 import readline 16 readline = None variable 43 def completer(self, text, state): argument 45 return self._wrapped_completer(text, state) 53 def _wrapped_completer(self, text, state): argument 56 ct = readline.get_completion_type() 57 if state == 0: 64 if state >= len(self._matches): 68 return self._matches[state] 160 if readline is not None: [all …]
|
/dports/devel/py-jedi/jedi-0.18.0/jedi/ |
H A D | utils.py | 69 def complete(self, text, state): argument 79 if state == 0: 99 return self.matches[state] 109 import readline 113 readline.set_completer(JediRL().complete) 114 readline.parse_and_bind("tab: complete") 116 readline.parse_and_bind("set completion-ignore-case on") 118 readline.parse_and_bind("set show-all-if-unmodified") 119 readline.parse_and_bind("set show-all-if-ambiguous on") 121 readline.parse_and_bind("set completion-prefix-display-length 2") [all …]
|
/dports/biology/py-biopython/biopython-1.79/Bio/SearchIO/ |
H A D | FastaIO.py | 286 line = self.handle.readline() 405 state = _STATE_NONE 453 state = _STATE_NONE 464 state = _STATE_NONE 544 line = handle.readline() 557 line = handle.readline() 562 line = handle.readline() 572 line = handle.readline() 575 line = handle.readline() 581 line = handle.readline() [all …]
|
/dports/security/py-certbot/certbot-1.22.0/certbot/_internal/display/ |
H A D | completer.py | 15 import readline 42 def complete(self, text: str, state: int) -> Optional[str]: 53 if state == 0: 58 self._original_completer = readline.get_completer() 61 readline.set_completer(self.complete) 62 readline.set_completer_delims(' \t\n;') 66 if readline.__doc__ is not None and 'libedit' in readline.__doc__: 67 readline.parse_and_bind('bind ^I rl_complete') 69 readline.parse_and_bind('tab: complete') 74 readline.set_completer_delims(self._original_delims) [all …]
|
/dports/math/py-numpy-stl/numpy-stl-2.11.3/stl/ |
H A D | _speedups.pyx | 54 cdef char* readline(State* state) except NULL: argument 59 if state.pos == state.size: 66 state.size = fread(state.buf, 1, BUF_SIZE, state.fp) 120 line = readline(&state) 130 line = readline(&state) 138 readline(&state) 145 readline(&state) # outer loop 148 line = readline(&state) 154 readline(&state) # endloop 155 readline(&state) # endfacet [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/google-endpoints/apitools/base/py/ |
H A D | base_cli.py | 23 import readline 97 if ('(' in readline.get_line_buffer() or 103 def complete(self, text, state): argument 104 if not readline.get_line_buffer().strip(): 105 if not state: 109 return rlcompleter.Completer.complete(self, text, state) 120 'readline': readline, 124 readline.parse_and_bind('tab: complete') 125 readline.set_completer(_SmartCompleter(new_locals).complete) 129 readline.read_history_file(histfile) [all …]
|
/dports/x11/kitty/kitty-0.23.1/kittens/tui/ |
H A D | path_completer.py | 84 import readline 87 if 'libedit' in readline.__doc__: 88 readline.parse_and_bind("bind -e") 96 readline.set_completer(self) 102 import readline 121 buf = readline.get_line_buffer() 122 x = readline.get_endidx() 130 def __call__(self, text: str, state: int) -> Optional[str]: 134 if options and state < len(options): 135 return options[state] [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/depot_tools/external_bin/gsutil/gsutil_4.28/gsutil/third_party/apitools/apitools/base/py/ |
H A D | base_cli.py | 25 import readline 99 if ('(' in readline.get_line_buffer() or 104 def complete(self, text, state): argument 105 if not readline.get_line_buffer().strip(): 106 if not state: 109 return rlcompleter.Completer.complete(self, text, state) 120 'readline': readline, 124 readline.parse_and_bind('tab: complete') 125 readline.set_completer(_SmartCompleter(new_locals).complete) 129 readline.read_history_file(histfile) [all …]
|
/dports/x11/kitty/kitty-0.23.1/kitty/ |
H A D | shell.py | 6 import readline 33 def init_readline(readline: Any) -> None: 35 readline.read_init_file() 36 if 'libedit' in readline.__doc__: 82 def complete(self, text: str, state: int) -> Optional[str]: 83 if state == 0: 84 line = readline.get_line_buffer() 90 if state < len(self.matches): 91 return self.matches[state] 97 readline.set_completer(self.complete) [all …]
|
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/modules/python/pylib/syslogng/debuggercli/ |
H A D | readline.py | 24 import readline 35 def complete(self, text, state): argument 38 entire_text = readline.get_line_buffer()[:readline.get_endidx()] 40 return completions[state] 64 readline.parse_and_bind("tab: complete") 65 readline.set_completer(ReadlineCompleteHook(debuggercli.get_root_completer()).complete) 66 readline.set_completer_delims(' \t\n\"\'`@><=;|&')
|
/dports/math/clingo/clingo-5.5.1/examples/clingo/controller-processes/ |
H A D | server.py | 5 import readline 12 try: readline.read_history_file(histfile) 14 readline.parse_and_bind('tab: complete') 15 def complete(commands, text, state): argument 17 if state == 0: matches = [ c for c in commands if c.startswith(text) ] 18 return matches[state] if state < len(matches) else None 19 readline.set_completer(lambda text, state: complete(['more_pigeon_please', 'less_pigeon_please', 's… 20 atexit.register(readline.write_history_file, histfile)
|
/dports/x11/kitty/kitty-0.23.1/kittens/ask/ |
H A D | main.py | 20 import readline 22 readline = None 26 return list(map(readline.get_history_item, range(1, readline.get_current_history_length() + 1))) 44 def complete(self, text: str, state: int) -> Optional[str]: 46 if state == 0: 54 response = self.matches[state] 63 readline.set_completer(self.complete) 145 global readline 160 import readline as rl 161 readline = rl [all …]
|
/dports/databases/py-gdbm/Python-3.8.12/Doc/library/ |
H A D | rlcompleter.rst | 1 :mod:`rlcompleter` --- Completion function for GNU readline 18 and its :meth:`complete` method is set as the :mod:`readline` completer. 23 >>> import readline 24 >>> readline.parse_and_bind("tab: complete") 25 >>> readline. <TAB PRESSED> 26 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 27 readline.__file__ readline.insert_text( readline.set_completer( 28 readline.__name__ readline.parse_and_bind( 29 >>> readline. 48 .. method:: Completer.complete(text, state) [all …]
|
/dports/lang/python310/Python-3.10.1/Doc/library/ |
H A D | rlcompleter.rst | 1 :mod:`rlcompleter` --- Completion function for GNU readline 18 and its :meth:`complete` method is set as the :mod:`readline` completer. 23 >>> import readline 24 >>> readline.parse_and_bind("tab: complete") 25 >>> readline. <TAB PRESSED> 26 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 27 readline.__file__ readline.insert_text( readline.set_completer( 28 readline.__name__ readline.parse_and_bind( 29 >>> readline. 48 .. method:: Completer.complete(text, state) [all …]
|
/dports/lang/python38/Python-3.8.12/Doc/library/ |
H A D | rlcompleter.rst | 1 :mod:`rlcompleter` --- Completion function for GNU readline 18 and its :meth:`complete` method is set as the :mod:`readline` completer. 23 >>> import readline 24 >>> readline.parse_and_bind("tab: complete") 25 >>> readline. <TAB PRESSED> 26 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 27 readline.__file__ readline.insert_text( readline.set_completer( 28 readline.__name__ readline.parse_and_bind( 29 >>> readline. 48 .. method:: Completer.complete(text, state) [all …]
|
/dports/lang/python37/Python-3.7.12/Doc/library/ |
H A D | rlcompleter.rst | 1 :mod:`rlcompleter` --- Completion function for GNU readline 18 and its :meth:`complete` method is set as the :mod:`readline` completer. 23 >>> import readline 24 >>> readline.parse_and_bind("tab: complete") 25 >>> readline. <TAB PRESSED> 26 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 27 readline.__file__ readline.insert_text( readline.set_completer( 28 readline.__name__ readline.parse_and_bind( 29 >>> readline. 48 .. method:: Completer.complete(text, state) [all …]
|
/dports/lang/python311/Python-3.11.0a3/Doc/library/ |
H A D | rlcompleter.rst | 1 :mod:`rlcompleter` --- Completion function for GNU readline 18 and its :meth:`complete` method is set as the :mod:`readline` completer. 23 >>> import readline 24 >>> readline.parse_and_bind("tab: complete") 25 >>> readline. <TAB PRESSED> 26 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 27 readline.__file__ readline.insert_text( readline.set_completer( 28 readline.__name__ readline.parse_and_bind( 29 >>> readline. 48 .. method:: Completer.complete(text, state) [all …]
|
/dports/lang/python-tools/Python-3.8.12/Doc/library/ |
H A D | rlcompleter.rst | 1 :mod:`rlcompleter` --- Completion function for GNU readline 18 and its :meth:`complete` method is set as the :mod:`readline` completer. 23 >>> import readline 24 >>> readline.parse_and_bind("tab: complete") 25 >>> readline. <TAB PRESSED> 26 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 27 readline.__file__ readline.insert_text( readline.set_completer( 28 readline.__name__ readline.parse_and_bind( 29 >>> readline. 48 .. method:: Completer.complete(text, state) [all …]
|
/dports/lang/python39/Python-3.9.9/Doc/library/ |
H A D | rlcompleter.rst | 1 :mod:`rlcompleter` --- Completion function for GNU readline 18 and its :meth:`complete` method is set as the :mod:`readline` completer. 23 >>> import readline 24 >>> readline.parse_and_bind("tab: complete") 25 >>> readline. <TAB PRESSED> 26 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 27 readline.__file__ readline.insert_text( readline.set_completer( 28 readline.__name__ readline.parse_and_bind( 29 >>> readline. 48 .. method:: Completer.complete(text, state) [all …]
|
/dports/databases/py-sqlite3/Python-3.8.12/Doc/library/ |
H A D | rlcompleter.rst | 1 :mod:`rlcompleter` --- Completion function for GNU readline 18 and its :meth:`complete` method is set as the :mod:`readline` completer. 23 >>> import readline 24 >>> readline.parse_and_bind("tab: complete") 25 >>> readline. <TAB PRESSED> 26 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 27 readline.__file__ readline.insert_text( readline.set_completer( 28 readline.__name__ readline.parse_and_bind( 29 >>> readline. 48 .. method:: Completer.complete(text, state) [all …]
|
/dports/x11-toolkits/py-tkinter/Python-3.8.12/Doc/library/ |
H A D | rlcompleter.rst | 1 :mod:`rlcompleter` --- Completion function for GNU readline 18 and its :meth:`complete` method is set as the :mod:`readline` completer. 23 >>> import readline 24 >>> readline.parse_and_bind("tab: complete") 25 >>> readline. <TAB PRESSED> 26 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 27 readline.__file__ readline.insert_text( readline.set_completer( 28 readline.__name__ readline.parse_and_bind( 29 >>> readline. 48 .. method:: Completer.complete(text, state) [all …]
|
/dports/math/clingo/clingo-5.5.1/examples/clingo/controller-threads/ |
H A D | controller.py | 4 import readline 32 try: readline.read_history_file(histfile) 34 readline.parse_and_bind('tab: complete') 35 def complete(commands, text, state): argument 38 return matches[state] if state < len(matches) else None 39 …readline.set_completer(lambda text, state: complete(['more_pigeon_please', 'less_pigeon_please', '… 40 atexit.register(readline.write_history_file, histfile) 104 self.state = SolveThread.STATE_IDLE 116 self.state = SolveThread.STATE_IDLE 118 self.state = SolveThread.STATE_EXIT [all …]
|
/dports/lang/python-legacy/Python-2.7.18/Doc/library/ |
H A D | rlcompleter.rst | 22 >>> import readline 23 >>> readline.parse_and_bind("tab: complete") 24 >>> readline. <TAB PRESSED> 25 readline.__doc__ readline.get_line_buffer( readline.read_init_file( 26 readline.__file__ readline.insert_text( readline.set_completer( 27 readline.__name__ readline.parse_and_bind( 28 >>> readline. 36 import readline 38 print "Module readline not available." 55 .. method:: Completer.complete(text, state) [all …]
|