python-prompt-toolkit API reference
400 public APIs from python-prompt-toolkit (prompt-toolkit/python-prompt-toolkit) — 92 classes, 123 functions, 185 methods. Signatures extracted by static analysis of the actual source.
Repository: prompt-toolkit/python-prompt-toolkit
| Kind | Count |
|---|---|
| Classes | 92 |
| Functions | 123 |
| Methods | 185 |
API list
class
src.prompt_toolkit.application.application.ApplicationThe main Application class!
method
src.prompt_toolkit.application.application.Application.color_depth() -> ColorDepthThe active :class:`.ColorDepth`.
method
src.prompt_toolkit.application.application.Application.exit() -> NoneExit without arguments.
method
src.prompt_toolkit.application.application.Application.get_used_style_strings() -> list[str]Return a list of used style strings.
method
src.prompt_toolkit.application.application.Application.reset() -> NoneReset everything, for reading the next input.
func
src.prompt_toolkit.application.current.create_app_session(input:Input | None=None, output:Output | None=None) -> Generator[AppSession, None, None]Create a separate AppSession.
func
src.prompt_toolkit.application.current.get_app() -> Application[Any]Get the current active (running) Application.
class
src.prompt_toolkit.auto_suggest.AutoSuggestBase class for auto suggestion implementations.
method
src.prompt_toolkit.auto_suggest.AutoSuggest.get_suggestion(buffer:Buffer, document:Document) -> Suggestion | NoneReturn `None` or a :class:`.Suggestion` instance.
class
src.prompt_toolkit.auto_suggest.SuggestionSuggestion returned by an auto-suggest algorithm.
class
src.prompt_toolkit.auto_suggest.ThreadedAutoSuggestWrapper that runs auto suggestions in a thread.
method
src.prompt_toolkit.buffer.Buffer.append_to_history() -> NoneAppend the current input to the history.
method
src.prompt_toolkit.buffer.Buffer.apply_completion(completion:Completion) -> NoneInsert a given completion.
method
src.prompt_toolkit.buffer.Buffer.apply_search(search_state:SearchState, include_current_position:bool=True, count:int=1) -> NoneApply search.
method
src.prompt_toolkit.buffer.Buffer.complete_next(count:int=1, disable_wrap_around:bool=False) -> NoneBrowse to the next completions.
method
src.prompt_toolkit.buffer.Buffer.complete_previous(count:int=1, disable_wrap_around:bool=False) -> NoneBrowse to the previous completions.
method
src.prompt_toolkit.buffer.Buffer.cursor_down(count:int=1) -> None(for multiline edit).
method
src.prompt_toolkit.buffer.Buffer.cursor_up(count:int=1) -> None(for multiline edit).
method
src.prompt_toolkit.buffer.Buffer.get_search_position(search_state:SearchState, include_current_position:bool=True, count:int=1) -> intGet the cursor position for this search.
method
src.prompt_toolkit.buffer.Buffer.go_to_completion(index:int | None) -> NoneSelect a completion from the list of current completions.
method
src.prompt_toolkit.buffer.Buffer.go_to_history(index:int) -> NoneGo to this item in the history.
method
src.prompt_toolkit.buffer.Buffer.history_backward(count:int=1) -> NoneMove backwards through history.
method
src.prompt_toolkit.buffer.Buffer.history_forward(count:int=1) -> NoneMove forwards through the history.
method
src.prompt_toolkit.buffer.Buffer.insert_line_above(copy_margin:bool=True) -> NoneInsert a new line above the current one.
method
src.prompt_toolkit.buffer.Buffer.insert_line_below(copy_margin:bool=True) -> NoneInsert a new line below the current one.
method
src.prompt_toolkit.buffer.Buffer.insert_text(data:str, overwrite:bool=False, move_cursor:bool=True, fire_event:bool=True) -> NoneInsert characters at cursor position.
method
src.prompt_toolkit.buffer.Buffer.is_returnable() -> boolTrue when there is something handling accept.
method
src.prompt_toolkit.buffer.Buffer.join_selected_lines(separator:str=' ') -> NoneJoin the selected lines.
method
src.prompt_toolkit.buffer.Buffer.newline(copy_margin:bool=True) -> NoneInsert a line ending at the current position.
method
src.prompt_toolkit.buffer.Buffer.open_in_editor(validate_and_handle:bool=False) -> asyncio.Task[None]Open code in editor.
method
src.prompt_toolkit.buffer.Buffer.paste_clipboard_data(data:ClipboardData, paste_mode:PasteMode=PasteMode.EMACS, count:int=1) -> NoneInsert the data from the clipboard.
func
src.prompt_toolkit.buffer.Buffer.proceed() -> boolKeep retrieving completions.
func
src.prompt_toolkit.buffer.Buffer.search_once(working_index:int, document:Document) -> tuple[int, Document] | NoneDo search one time.
method
src.prompt_toolkit.buffer.Buffer.transform_lines(line_index_iterator:Iterable[int], transform_callback:Callable[[str], str]) -> strTransforms the text on a range of lines.
method
src.prompt_toolkit.buffer.Buffer.transform_region(from_:int, to:int, transform_callback:Callable[[str], str]) -> NoneTransform a part of the input string.
method
src.prompt_toolkit.buffer.Buffer.validate(set_cursor:bool=False) -> boolReturns `True` if valid.
method
src.prompt_toolkit.buffer.Buffer.validate_and_handle() -> NoneValidate buffer and handle the accept action.
class
src.prompt_toolkit.buffer.CompletionStateImmutable class that contains a completion state.
class
src.prompt_toolkit.buffer.EditReadOnlyBufferAttempt editing of read-only :class:`.Buffer`.
class
src.prompt_toolkit.buffer.ValidationStateThe validation state of a buffer.
func
src.prompt_toolkit.buffer.indent(buffer:Buffer, from_row:int, to_row:int, count:int=1) -> NoneIndent text of a :class:`.Buffer` object.
func
src.prompt_toolkit.buffer.reshape_text(buffer:Buffer, from_row:int, to_row:int) -> NoneReformat text, taking the width into account.
func
src.prompt_toolkit.buffer.unindent(buffer:Buffer, from_row:int, to_row:int, count:int=1) -> NoneUnindent text of a :class:`.Buffer` object.
method
src.prompt_toolkit.cache.SimpleCache.clear() -> NoneClear cache.
method
src.prompt_toolkit.cache.SimpleCache.get(key:_T, getter_func:Callable[[], _U]) -> _UGet object from the cache.
class
src.prompt_toolkit.clipboard.base.ClipboardAbstract baseclass for clipboards.
method
src.prompt_toolkit.clipboard.base.Clipboard.get_data() -> ClipboardDataReturn clipboard data.
method
src.prompt_toolkit.clipboard.base.Clipboard.rotate() -> NoneFor Emacs mode, rotate the kill ring.
method
src.prompt_toolkit.clipboard.base.Clipboard.set_data(data:ClipboardData) -> NoneSet data to the clipboard.
method
src.prompt_toolkit.clipboard.base.Clipboard.set_text(text:str) -> NoneShortcut for setting plain text on clipboard.
class
src.prompt_toolkit.clipboard.base.ClipboardDataText on the clipboard.
class
src.prompt_toolkit.clipboard.in_memory.InMemoryClipboardDefault clipboard implementation.
class
src.prompt_toolkit.completion.base.CompleteEventEvent that called the completer.
class
src.prompt_toolkit.completion.base.CompleterBase class for completer implementations.
method
src.prompt_toolkit.completion.base.Completion.display_meta() -> StyleAndTextTuplesReturn meta-text.
method
src.prompt_toolkit.completion.base.Completion.display_meta_text() -> strThe 'meta' field as plain text.
method
src.prompt_toolkit.completion.base.Completion.display_text() -> strThe 'display' field as plain text.
class
src.prompt_toolkit.completion.base.DummyCompleterA completer that doesn't return any completion.
func
src.prompt_toolkit.completion.base.get_common_complete_suffix(document:Document, completions:Sequence[Completion]) -> strReturn the common prefix for all completions.
func
src.prompt_toolkit.completion.base.merge_completers(completers:Sequence[Completer], deduplicate:bool=False) -> CompleterCombine several completers into one.
class
src.prompt_toolkit.completion.filesystem.PathCompleterComplete for Path variables.
class
src.prompt_toolkit.completion.fuzzy_completer.FuzzyCompleterFuzzy completion.
class
src.prompt_toolkit.completion.fuzzy_completer.FuzzyWordCompleterFuzzy completion on a list of words.
class
src.prompt_toolkit.completion.word_completer.WordCompleterSimple autocompletion on a list of words.
func
src.prompt_toolkit.completion.word_completer.WordCompleter.word_matches(word:str) -> boolTrue when the word before the cursor matches.
class
src.prompt_toolkit.contrib.completers.system.SystemCompleterCompleter for system commands.
class
src.prompt_toolkit.contrib.regular_languages.compiler.Match:param string: The input string.
method
src.prompt_toolkit.contrib.regular_languages.compiler.Match.variables() -> VariablesReturns :class:`Variables` instance.
class
src.prompt_toolkit.contrib.regular_languages.regex_parser.AnyNodeUnion operation (OR operation) between several grammars.
class
src.prompt_toolkit.contrib.regular_languages.regex_parser.LookaheadLookahead expression.
class
src.prompt_toolkit.contrib.regular_languages.regex_parser.NodeBase class for all the grammar nodes.
class
src.prompt_toolkit.contrib.regular_languages.regex_parser.NodeSequenceConcatenation operation of several grammars.
class
src.prompt_toolkit.contrib.regular_languages.regex_parser.RegexRegular expression.
class
src.prompt_toolkit.contrib.regular_languages.regex_parser.VariableMark a variable in the regular grammar.
class
src.prompt_toolkit.contrib.telnet.protocol.TelnetProtocolParserParser for the Telnet protocol.
method
src.prompt_toolkit.contrib.telnet.protocol.TelnetProtocolParser.do_received(data:bytes) -> NoneReceived telnet DO command.
method
src.prompt_toolkit.contrib.telnet.protocol.TelnetProtocolParser.dont_received(data:bytes) -> NoneReceived telnet DONT command.
method
src.prompt_toolkit.contrib.telnet.protocol.TelnetProtocolParser.feed(data:bytes) -> NoneFeed data to the parser.
method
src.prompt_toolkit.contrib.telnet.protocol.TelnetProtocolParser.naws(data:bytes) -> NoneReceived NAWS.
method
src.prompt_toolkit.contrib.telnet.protocol.TelnetProtocolParser.negotiate(data:bytes) -> NoneGot negotiate data.
method
src.prompt_toolkit.contrib.telnet.protocol.TelnetProtocolParser.ttype(data:bytes) -> NoneReceived terminal type.
method
src.prompt_toolkit.contrib.telnet.protocol.TelnetProtocolParser.will_received(data:bytes) -> NoneReceived telnet WILL command.
method
src.prompt_toolkit.contrib.telnet.protocol.TelnetProtocolParser.wont_received(data:bytes) -> NoneReceived telnet WONT command.
class
src.prompt_toolkit.contrib.telnet.server.TelnetConnectionClass that represents one Telnet connection.
method
src.prompt_toolkit.contrib.telnet.server.TelnetConnection.close() -> NoneClosed by client.
func
src.prompt_toolkit.contrib.telnet.server.TelnetConnection.data_received(data:bytes) -> NoneTelnetProtocolParser 'data_received' callback
method
src.prompt_toolkit.contrib.telnet.server.TelnetConnection.feed(data:bytes) -> NoneHandler for incoming data.
method
src.prompt_toolkit.contrib.telnet.server.TelnetConnection.run_application() -> NoneRun application.
method
src.prompt_toolkit.contrib.telnet.server.TelnetConnection.send(formatted_text:AnyFormattedText) -> NoneSend text to the client.
method
src.prompt_toolkit.contrib.telnet.server.TelnetConnection.send_above_prompt(formatted_text:AnyFormattedText) -> NoneSend text to the client.
func
src.prompt_toolkit.contrib.telnet.server.TelnetConnection.size_received(rows:int, columns:int) -> NoneTelnetProtocolParser 'size_received' callback
func
src.prompt_toolkit.contrib.telnet.server.TelnetConnection.ttype_received(ttype:str) -> NoneTelnetProtocolParser 'ttype_received' callback
class
src.prompt_toolkit.contrib.telnet.server.TelnetServerTelnet server implementation.
method
src.prompt_toolkit.contrib.telnet.server.TelnetServer.run(ready_cb:Callable[[], None] | None=None) -> NoneRun the telnet server, until this gets cancelled.
method
src.prompt_toolkit.contrib.telnet.server.TelnetServer.start() -> NoneDeprecated: Use `.run()` instead.
method
src.prompt_toolkit.contrib.telnet.server.TelnetServer.stop() -> NoneDeprecated: Use `.run()` instead.
class
src.prompt_toolkit.cursor_shapes.SimpleCursorShapeConfigAlways show the given cursor shape.
method
src.prompt_toolkit.document.Document.cursor_position() -> intThe document cursor position.
method
src.prompt_toolkit.document.Document.cursor_position_col() -> intCurrent column.
method
src.prompt_toolkit.document.Document.cursor_position_row() -> intCurrent row.
method
src.prompt_toolkit.document.Document.end_of_paragraph(count:int=1, after:bool=False) -> intReturn the end of the current paragraph.
method
src.prompt_toolkit.document.Document.find_all(sub:str, ignore_case:bool=False) -> list[int]Find all occurrences of the substring.
method
src.prompt_toolkit.document.Document.find_next_matching_line(match_func:Callable[[str], bool], count:int=1) -> int | NoneLook downwards for empty lines.
method
src.prompt_toolkit.document.Document.find_previous_matching_line(match_func:Callable[[str], bool], count:int=1) -> int | NoneLook upwards for empty lines.
method
src.prompt_toolkit.document.Document.get_cursor_left_position(count:int=1) -> intRelative position for cursor left.
method
src.prompt_toolkit.document.Document.get_cursor_right_position(count:int=1) -> intRelative position for cursor_right.
method
src.prompt_toolkit.document.Document.get_end_of_line_position() -> intRelative position for the end of this line.
method
src.prompt_toolkit.document.Document.get_start_of_line_position(after_whitespace:bool=False) -> intRelative position for the start of this line.
method
src.prompt_toolkit.document.Document.get_word_before_cursor(WORD:bool=False, pattern:Pattern[str] | None=None) -> strGive the word before the cursor.
method
src.prompt_toolkit.document.Document.get_word_under_cursor(WORD:bool=False) -> strReturn the word, currently below the cursor.
method
src.prompt_toolkit.document.Document.line_count() -> intReturn the number of lines in this document.
method
src.prompt_toolkit.document.Document.lines() -> list[str]Array of all the lines.
method
src.prompt_toolkit.document.Document.on_first_line() -> boolTrue when we are at the first line.
method
src.prompt_toolkit.document.Document.on_last_line() -> boolTrue when we are at the last line.
method
src.prompt_toolkit.document.Document.selection() -> SelectionState | None:class:`.SelectionState` object.
method
src.prompt_toolkit.document.Document.selection_range() -> tuple[int, int]Return (from, to) tuple of the selection.
method
src.prompt_toolkit.document.Document.start_of_paragraph(count:int=1, before:bool=False) -> intReturn the start of the current paragraph.
method
src.prompt_toolkit.document.Document.text() -> strThe document text.
method
src.prompt_toolkit.document.Document.translate_row_col_to_index(row:int, col:int) -> intGiven a (row, col) tuple, return the corresponding index.
func
src.prompt_toolkit.eventloop.async_generator.runner() -> NoneConsume the generator in background thread.
class
src.prompt_toolkit.eventloop.inputhook.InputHookContextGiven as a parameter to the inputhook.
func
src.prompt_toolkit.eventloop.utils.get_traceback_from_context(context:dict[str, Any]) -> TracebackType | NoneGet the traceback object from the context.
func
src.prompt_toolkit.eventloop.win32.create_win32_event() -> HANDLECreates a Win32 unnamed Event .
func
src.prompt_toolkit.eventloop.win32.wait_for_handles(handles:list[HANDLE], timeout:int=INFINITE) -> HANDLE | NoneWaits for multiple handles.
func
src.prompt_toolkit.filters.app.completion_is_selected() -> boolTrue when the user selected a completion.
func
src.prompt_toolkit.filters.app.control_is_searchable() -> boolWhen the current UIControl is searchable.
func
src.prompt_toolkit.filters.app.emacs_mode() -> boolWhen the Emacs bindings are active.
func
src.prompt_toolkit.filters.app.has_arg() -> boolEnable when the input processor has an 'arg'.
func
src.prompt_toolkit.filters.app.has_completions() -> boolEnable when the current buffer has completions.
func
src.prompt_toolkit.filters.app.has_focus(value:FocusableElement) -> ConditionEnable when this buffer has the focus.
func
src.prompt_toolkit.filters.app.has_selection() -> boolEnable when the current buffer has a selection.
func
src.prompt_toolkit.filters.app.has_suggestion() -> boolEnable when the current buffer has a suggestion.
func
src.prompt_toolkit.filters.app.has_validation_error() -> boolCurrent buffer has validation error.
func
src.prompt_toolkit.filters.app.in_editing_mode(editing_mode:EditingMode) -> ConditionCheck whether a given editing mode is active.
func
src.prompt_toolkit.filters.app.is_read_only() -> boolTrue when the current buffer is read only.
func
src.prompt_toolkit.filters.app.is_searching() -> boolWhen we are searching.
func
src.prompt_toolkit.filters.app.vi_recording_macro() -> boolWhen recording a Vi macro.
class
src.prompt_toolkit.filters.base.AlwaysAlways enable feature.
class
src.prompt_toolkit.filters.base.ConditionTurn any callable into a Filter.
class
src.prompt_toolkit.filters.base.NeverNever enable feature.
func
src.prompt_toolkit.filters.utils.is_true(value:FilterOrBool) -> boolTest whether `value` is True.
class
src.prompt_toolkit.formatted_text.ansi.ANSIANSI formatted text.
func
src.prompt_toolkit.formatted_text.ansi.ansi_escape(text:object) -> strReplace characters with a special meaning.
class
src.prompt_toolkit.formatted_text.base.FormattedTextA list of ``(style, text)`` tuples.
class
src.prompt_toolkit.formatted_text.html.HTMLHTML formatted text.
func
src.prompt_toolkit.formatted_text.html.HTML.get_current_style() -> strBuild style string for current node.
func
src.prompt_toolkit.formatted_text.html.HTML.process_node(node:Any) -> NoneProcess node recursively.
func
src.prompt_toolkit.formatted_text.utils.fragment_list_to_text(fragments:StyleAndTextTuples) -> strConcatenate all the text parts again.
func
src.prompt_toolkit.formatted_text.utils.fragment_list_width(fragments:StyleAndTextTuples) -> intReturn the character width of this text fragment list.
func
src.prompt_toolkit.formatted_text.utils.to_plain_text(value:AnyFormattedText) -> strTurn any kind of formatted text back into plain text.
class
src.prompt_toolkit.history.HistoryBase ``History`` class.
method
src.prompt_toolkit.history.History.append_string(string:str) -> NoneAdd string to the history.
method
src.prompt_toolkit.history.History.store_string(string:str) -> NoneStore the string in persistent storage.
class
src.prompt_toolkit.input.base.InputAbstraction for any input.
method
src.prompt_toolkit.input.base.Input.close() -> NoneClose input.
method
src.prompt_toolkit.input.base.Input.closed() -> boolShould be true when the input stream is closed.
method
src.prompt_toolkit.input.base.Input.fileno() -> intFileno for putting this in an event loop.
method
src.prompt_toolkit.input.base.Input.flush_keys() -> list[KeyPress]Flush the underlying parser.
method
src.prompt_toolkit.input.base.Input.typeahead_hash() -> strIdentifier for storing type ahead key presses.
class
src.prompt_toolkit.input.base.PipeInputAbstraction for pipe input.
method
src.prompt_toolkit.input.base.PipeInput.send_bytes(data:bytes) -> NoneFeed byte string into the pipe
method
src.prompt_toolkit.input.base.PipeInput.send_text(data:str) -> NoneFeed a text string into the pipe
func
src.prompt_toolkit.input.defaults.create_pipe_input() -> AbstractContextManager[PipeInput]Create an input pipe.
class
src.prompt_toolkit.input.posix_pipe.PosixPipeInputInput that is send through a pipe.
method
src.prompt_toolkit.input.posix_pipe.PosixPipeInput.close() -> NoneClose pipe fds.
method
src.prompt_toolkit.input.posix_pipe.PosixPipeInput.send_text(data:str) -> NoneSend text to the input.
func
src.prompt_toolkit.input.typeahead.clear_typeahead(input_obj:Input) -> NoneClear typeahead buffer.
func
src.prompt_toolkit.input.typeahead.get_typeahead(input_obj:Input) -> list[KeyPress]Retrieve typeahead and reset the buffer for this input.
func
src.prompt_toolkit.input.typeahead.store_typeahead(input_obj:Input, key_presses:list[KeyPress]) -> NoneInsert typeahead key presses for the given input.
class
src.prompt_toolkit.input.vt100.Vt100InputVt100 input for Posix systems.
method
src.prompt_toolkit.input.vt100.Vt100Input.flush_keys() -> list[KeyPress]Flush pending keys and return them.
method
src.prompt_toolkit.input.vt100.Vt100Input.read_keys() -> list[KeyPress]Read list of KeyPress.
class
src.prompt_toolkit.input.vt100_parser.Vt100ParserParser for VT100 input stream.
method
src.prompt_toolkit.input.vt100_parser.Vt100Parser.feed(data:str) -> NoneFeed the input stream.
method
src.prompt_toolkit.input.vt100_parser.Vt100Parser.feed_and_flush(data:str) -> NoneWrapper around ``feed`` and ``flush``.
method
src.prompt_toolkit.input.vt100_parser.Vt100Parser.flush() -> NoneFlush the buffer of the input stream.
class
src.prompt_toolkit.input.win32.Win32Input`Input` class that reads from the Windows console.
class
src.prompt_toolkit.input.win32_pipe.Win32PipeInputThis is an input pipe that works on Windows.
method
src.prompt_toolkit.input.win32_pipe.Win32PipeInput.close() -> NoneClose write-end of the pipe.
method
src.prompt_toolkit.input.win32_pipe.Win32PipeInput.flush_keys() -> list[KeyPress]Flush pending keys and return them.
method
src.prompt_toolkit.input.win32_pipe.Win32PipeInput.read_keys() -> list[KeyPress]Read list of KeyPress.
method
src.prompt_toolkit.input.win32_pipe.Win32PipeInput.send_bytes(data:bytes) -> NoneSend bytes to the input.
method
src.prompt_toolkit.input.win32_pipe.Win32PipeInput.send_text(text:str) -> NoneSend text to the input.
func
src.prompt_toolkit.key_binding.bindings.completion.run_compl() -> NoneCoroutine.
func
src.prompt_toolkit.key_binding.bindings.emacs.handle_digit(c:str) -> NoneHandle input of arguments.
func
src.prompt_toolkit.key_binding.bindings.emacs.load_emacs_bindings() -> KeyBindingsBaseSome e-macs extensions.
func
src.prompt_toolkit.key_binding.bindings.emacs.unshift_move(event:E) -> NoneUsed for the shift selection mode.
func
src.prompt_toolkit.key_binding.bindings.focus.focus_next(event:E) -> NoneFocus the next visible Window.
func
src.prompt_toolkit.key_binding.bindings.focus.focus_previous(event:E) -> NoneFocus the previous visible Window.
func
src.prompt_toolkit.key_binding.bindings.named_commands.accept_line(event:E) -> NoneAccept the line regardless of where the cursor is.
func
src.prompt_toolkit.key_binding.bindings.named_commands.backward_char(event:E) -> NoneMove back a character.
func
src.prompt_toolkit.key_binding.bindings.named_commands.backward_delete_char(event:E) -> NoneDelete the character behind the cursor.
func
src.prompt_toolkit.key_binding.bindings.named_commands.beginning_of_buffer(event:E) -> NoneMove to the start of the buffer.
func
src.prompt_toolkit.key_binding.bindings.named_commands.beginning_of_history(event:E) -> NoneMove to the first line in the history.
func
src.prompt_toolkit.key_binding.bindings.named_commands.beginning_of_line(event:E) -> NoneMove to the start of the current line.
func
src.prompt_toolkit.key_binding.bindings.named_commands.capitalize_word(event:E) -> NoneCapitalize the current (or following) word.
func
src.prompt_toolkit.key_binding.bindings.named_commands.complete(event:E) -> NoneAttempt to perform completion.
func
src.prompt_toolkit.key_binding.bindings.named_commands.decorator(handler:_T) -> _T`handler` is a callable or Binding.
func
src.prompt_toolkit.key_binding.bindings.named_commands.delete_char(event:E) -> NoneDelete character before the cursor.
func
src.prompt_toolkit.key_binding.bindings.named_commands.delete_horizontal_space(event:E) -> NoneDelete all spaces and tabs around point.
func
src.prompt_toolkit.key_binding.bindings.named_commands.downcase_word(event:E) -> NoneLowercase the current (or following) word.
func
src.prompt_toolkit.key_binding.bindings.named_commands.emacs_editing_mode(event:E) -> NoneSwitch to Emacs editing mode.
func
src.prompt_toolkit.key_binding.bindings.named_commands.end_of_buffer(event:E) -> NoneMove to the end of the buffer.
func
src.prompt_toolkit.key_binding.bindings.named_commands.end_of_file(event:E) -> NoneExit.
func
src.prompt_toolkit.key_binding.bindings.named_commands.end_of_line(event:E) -> NoneMove to the end of the line.
func
src.prompt_toolkit.key_binding.bindings.named_commands.forward_char(event:E) -> NoneMove forward a character.
func
src.prompt_toolkit.key_binding.bindings.named_commands.forward_word(event:E) -> NoneMove forward to the end of the next word.
func
src.prompt_toolkit.key_binding.bindings.named_commands.insert_comment(event:E) -> NoneWithout numeric argument, comment all lines.
func
src.prompt_toolkit.key_binding.bindings.named_commands.kill_line(event:E) -> NoneKill the text from the cursor to the end of the line.
func
src.prompt_toolkit.key_binding.bindings.named_commands.menu_complete(event:E) -> NoneGenerate completions, or go to the next completion.
func
src.prompt_toolkit.key_binding.bindings.named_commands.prefix_meta(event:E) -> NoneMetafy the next character typed.
func
src.prompt_toolkit.key_binding.bindings.named_commands.print_last_kbd_macro(event:E) -> NonePrint the last keyboard macro.
func
src.prompt_toolkit.key_binding.bindings.named_commands.quoted_insert(event:E) -> NoneAdd the next character typed to the line verbatim.
func
src.prompt_toolkit.key_binding.bindings.named_commands.redraw_current_line(event:E) -> NoneRefresh the current line.
func
src.prompt_toolkit.key_binding.bindings.named_commands.register(name:str) -> Callable[[_T], _T]Store handler in the `_readline_commands` dictionary.
func
src.prompt_toolkit.key_binding.bindings.named_commands.self_insert(event:E) -> NoneInsert yourself.
func
src.prompt_toolkit.key_binding.bindings.named_commands.undo(event:E) -> NoneIncremental undo.
func
src.prompt_toolkit.key_binding.bindings.named_commands.uppercase_word(event:E) -> NoneUppercase the current (or following) word.
func
src.prompt_toolkit.key_binding.bindings.named_commands.vi_editing_mode(event:E) -> NoneSwitch to Vi editing mode.
func
src.prompt_toolkit.key_binding.bindings.named_commands.yank(event:E) -> NonePaste before cursor.
func
src.prompt_toolkit.key_binding.bindings.named_commands.yank_nth_arg(event:E) -> NoneInsert the first argument of the previous command.
func
src.prompt_toolkit.key_binding.bindings.named_commands.yank_pop(event:E) -> NoneRotate the kill ring, and yank the new top.
func
src.prompt_toolkit.key_binding.bindings.scroll.scroll_backward(event:E, half:bool=False) -> NoneScroll window up.
func
src.prompt_toolkit.key_binding.bindings.scroll.scroll_forward(event:E, half:bool=False) -> NoneScroll window down.
func
src.prompt_toolkit.key_binding.bindings.scroll.scroll_half_page_down(event:E) -> NoneSame as ControlF, but only scroll half a page.
func
src.prompt_toolkit.key_binding.bindings.scroll.scroll_half_page_up(event:E) -> NoneSame as ControlB, but only scroll half a page.
func
src.prompt_toolkit.key_binding.bindings.scroll.scroll_one_line_down(event:E) -> Nonescroll_offset += 1
func
src.prompt_toolkit.key_binding.bindings.scroll.scroll_one_line_up(event:E) -> Nonescroll_offset -= 1
func
src.prompt_toolkit.key_binding.bindings.scroll.scroll_page_down(event:E) -> NoneScroll page down.
func
src.prompt_toolkit.key_binding.bindings.scroll.scroll_page_up(event:E) -> NoneScroll page up.
func
src.prompt_toolkit.key_binding.bindings.search.accept_search(event:E) -> NoneWhen enter pressed in isearch, quit isearch mode.
func
src.prompt_toolkit.key_binding.bindings.search.start_forward_incremental_search(event:E) -> NoneEnter forward incremental search.
func
src.prompt_toolkit.key_binding.bindings.search.start_reverse_incremental_search(event:E) -> NoneEnter reverse incremental search.
method
src.prompt_toolkit.key_binding.bindings.vi.TextObject.cut(buffer:Buffer) -> tuple[Document, ClipboardData]Turn text object into `ClipboardData` instance.
method
src.prompt_toolkit.key_binding.bindings.vi.TextObject.get_line_numbers(buffer:Buffer) -> tuple[int, int]Return a (start_line, end_line) pair.
method
src.prompt_toolkit.key_binding.bindings.vi.TextObject.sorted() -> tuple[int, int]Return a (start, end) tuple where start <= end.
func
src.prompt_toolkit.key_binding.bindings.vi.create_delete_and_change_operators(delete_only:bool, with_register:bool=False) -> NoneDelete and change operators.
func
src.prompt_toolkit.key_binding.bindings.vi.insert_in_block_selection(event:E, after:bool=False) -> NoneInsert in block selection mode.
func
src.prompt_toolkit.key_binding.bindings.vi.load_vi_bindings() -> KeyBindingsBaseVi extensions.
func
src.prompt_toolkit.key_binding.bindings.vi.operator_decorator(*filter:Filter=Always(), *eager:bool=False, *keys:Keys | str) -> Callable[[_OF], _OF]Register a Vi operator.
func
src.prompt_toolkit.key_binding.bindings.vi.repeat(reverse:bool) -> NoneCreate ',' and ';' commands.
class
src.prompt_toolkit.key_binding.emacs_state.EmacsStateMutable class to hold Emacs specific state.
method
src.prompt_toolkit.key_binding.emacs_state.EmacsState.end_macro() -> NoneEnd recording macro.
method
src.prompt_toolkit.key_binding.emacs_state.EmacsState.is_recording() -> boolTell whether we are recording a macro.
method
src.prompt_toolkit.key_binding.emacs_state.EmacsState.start_macro() -> NoneStart recording macro.
class
src.prompt_toolkit.key_binding.key_bindings.BindingKey binding: (key sequence + handler + filter).
class
src.prompt_toolkit.key_binding.key_bindings.ConditionalKeyBindingsWraps around a `KeyBindings`.
class
src.prompt_toolkit.key_binding.key_bindings.KeyBindingsA container for a set of key bindings.
method
src.prompt_toolkit.key_binding.key_bindings.KeyBindings.remove(*args:Keys | str | KeyHandlerCallable) -> NoneRemove a key binding.
class
src.prompt_toolkit.key_binding.key_bindings.KeyBindingsBaseInterface for a KeyBindings.
method
src.prompt_toolkit.key_binding.key_bindings.KeyBindingsBase.bindings() -> list[Binding]List of `Binding` objects.
class
src.prompt_toolkit.key_binding.key_processor.KeyPressEventKey press event, delivered to key bindings.
method
src.prompt_toolkit.key_binding.key_processor.KeyPressEvent.app() -> Application[Any]The current `Application` object.
method
src.prompt_toolkit.key_binding.key_processor.KeyPressEvent.append_to_arg_count(data:str) -> NoneAdd digit to the input argument.
method
src.prompt_toolkit.key_binding.key_processor.KeyPressEvent.arg() -> intRepetition argument.
method
src.prompt_toolkit.key_binding.key_processor.KeyPressEvent.cli() -> Application[Any]For backward-compatibility.
method
src.prompt_toolkit.key_binding.key_processor.KeyPressEvent.current_buffer() -> BufferThe current buffer.
func
src.prompt_toolkit.key_binding.key_processor.KeyProcessor.flush_keys() -> NoneFlush keys.
func
src.prompt_toolkit.key_binding.key_processor.KeyProcessor.wait() -> NoneWait for timeout.
class
src.prompt_toolkit.keys.KeysList of keys for use in key bindings.
class
src.prompt_toolkit.layout.containers.ColorColumnColumn for a :class:`.Window` to be colored.
class
src.prompt_toolkit.layout.containers.ContainerBase class for user interface layout.
class
src.prompt_toolkit.layout.containers.FloatFloat for use in a :class:`.FloatContainer`.
class
src.prompt_toolkit.layout.containers.HSplitSeveral layouts, one stacked above/under the other.
class
src.prompt_toolkit.layout.containers.HorizontalAlignAlignment for `VSplit`.
class
src.prompt_toolkit.layout.containers.ScrollOffsetsScroll offsets for the :class:`.Window` class.
class
src.prompt_toolkit.layout.containers.VerticalAlignAlignment for `HSplit`.
class
src.prompt_toolkit.layout.containers.WindowContainer that holds a control.
func
src.prompt_toolkit.layout.containers.Window.do_scroll(current_scroll:int, scroll_offset_start:int, scroll_offset_end:int, cursor_pos:int, window_size:int, content_size:int) -> intScrolling algorithm.
method
src.prompt_toolkit.layout.containers.Window.preferred_height(width:int, max_available_height:int) -> DimensionCalculate the preferred height for this window.
method
src.prompt_toolkit.layout.containers.Window.preferred_width(max_available_width:int) -> DimensionCalculate the preferred width for this window.
func
src.prompt_toolkit.layout.containers.Window.render_margin(m:Margin, width:int) -> UIContentRender margin.
method
src.prompt_toolkit.layout.containers.Window.write_to_screen(screen:Screen, mouse_handlers:MouseHandlers, write_position:WritePosition, parent_style:str, erase_bg:bool, z_index:int | None) -> NoneWrite window to screen.
class
src.prompt_toolkit.layout.containers.WindowAlignAlignment of the Window content.
func
src.prompt_toolkit.layout.containers.to_container(container:AnyContainer) -> ContainerMake sure that the given object is a :class:`.Container`.
func
src.prompt_toolkit.layout.containers.to_window(container:AnyContainer) -> WindowMake sure that the given argument is a :class:`.Window`.
func
src.prompt_toolkit.layout.controls.BufferControl.get_line(i:int) -> StyleAndTextTuplesReturn the fragments for a given line number.
func
src.prompt_toolkit.layout.controls.BufferControl.translate_rowcol(row:int, col:int) -> PointReturn the content column for this coordinate.
class
src.prompt_toolkit.layout.controls.FormattedTextControlControl that displays formatted text.
method
src.prompt_toolkit.layout.controls.FormattedTextControl.mouse_handler(mouse_event:MouseEvent) -> NotImplementedOrNoneHandle mouse events.
method
src.prompt_toolkit.layout.controls.FormattedTextControl.preferred_width(max_available_width:int) -> intReturn the preferred width for this control.
class
src.prompt_toolkit.layout.controls.UIContentContent generated by a user control.
class
src.prompt_toolkit.layout.controls.UIControlBase class for all user interface controls.
method
src.prompt_toolkit.layout.controls.UIControl.create_content(width:int, height:int) -> UIContentGenerate the content for this user control.
method
src.prompt_toolkit.layout.controls.UIControl.get_invalidate_events() -> Iterable[Event[object]]Return a list of `Event` objects.
method
src.prompt_toolkit.layout.controls.UIControl.is_focusable() -> boolTell whether this user control is focusable.
method
src.prompt_toolkit.layout.controls.UIControl.mouse_handler(mouse_event:MouseEvent) -> NotImplementedOrNoneHandle mouse events.
method
src.prompt_toolkit.layout.controls.UIControl.move_cursor_down() -> NoneRequest to move the cursor down.
method
src.prompt_toolkit.layout.controls.UIControl.move_cursor_up() -> NoneRequest to move the cursor up.
method
src.prompt_toolkit.layout.dimension.Dimension.exact(amount:int) -> DimensionReturn a :class:`.Dimension` with an exact size.
func
src.prompt_toolkit.layout.dimension.sum_layout_dimensions(dimensions:list[Dimension]) -> DimensionSum a list of :class:`.Dimension` instances.
func
src.prompt_toolkit.layout.dimension.to_dimension(value:AnyDimension) -> DimensionTurn the given object into a `Dimension` object.
method
src.prompt_toolkit.layout.layout.Layout.focus(value:FocusableElement) -> NoneFocus the given UI element.
method
src.prompt_toolkit.layout.layout.Layout.focus_last() -> NoneGive the focus to the last focused control.
method
src.prompt_toolkit.layout.layout.Layout.focus_next() -> NoneFocus the next visible/focusable Window.
method
src.prompt_toolkit.layout.layout.Layout.focus_previous() -> NoneFocus the previous visible/focusable Window.
method
src.prompt_toolkit.layout.layout.Layout.has_focus(value:FocusableElement) -> boolCheck whether the given control has the focus.
method
src.prompt_toolkit.layout.layout.Layout.is_searching() -> boolTrue if we are searching right now.
func
src.prompt_toolkit.layout.layout.walk(container:Container, skip_hidden:bool=False) -> Iterable[Container]Walk through layout, starting at this container.
class
src.prompt_toolkit.layout.margins.MarginBase interface for a margin.
method
src.prompt_toolkit.layout.margins.Margin.create_margin(window_render_info:WindowRenderInfo, width:int, height:int) -> StyleAndTextTuplesCreates a margin.
class
src.prompt_toolkit.layout.margins.NumberedMarginMargin that displays the line numbers.
method
src.prompt_toolkit.layout.margins.PromptMargin.get_width(get_ui_content:Callable[[], UIContent]) -> intWidth to report to the `Window`.
class
src.prompt_toolkit.layout.margins.ScrollbarMarginMargin displaying a scrollbar.
func
src.prompt_toolkit.layout.margins.ScrollbarMargin.is_scroll_button(row:int) -> boolTrue if we should display a button on this row.
func
src.prompt_toolkit.layout.mouse_handlers.MouseHandlers.dummy_callback(mouse_event:MouseEvent) -> NotImplementedOrNone:param mouse_event: `MouseEvent` instance.
class
src.prompt_toolkit.layout.processors.AfterInputInsert text after the input.
class
src.prompt_toolkit.layout.processors.AppendAutoSuggestionAppend the auto suggestion to the input.
class
src.prompt_toolkit.layout.processors.BeforeInputInsert text before the input.
class
src.prompt_toolkit.layout.processors.DummyProcessorA `Processor` that doesn't do anything.
class
src.prompt_toolkit.layout.processors.PasswordProcessorProcessor that masks the input.
method
src.prompt_toolkit.layout.processors.Processor.apply_transformation(transformation_input:TransformationInput) -> TransformationApply transformation.
class
src.prompt_toolkit.layout.processors.ShowArgDisplay the 'arg' in front of the input.
class
src.prompt_toolkit.layout.processors.ShowLeadingWhiteSpaceProcessorMake leading whitespace visible.
class
src.prompt_toolkit.layout.processors.ShowTrailingWhiteSpaceProcessorMake trailing whitespace visible.
func
src.prompt_toolkit.layout.processors.TabsProcessor.display_to_source(display_pos:int) -> intMaps display cursor position to the original one.
func
src.prompt_toolkit.layout.processors.TabsProcessor.source_to_display(from_position:int) -> intMaps original cursor position to the new one.
func
src.prompt_toolkit.layout.processors.merge_processors(processors:list[Processor]) -> ProcessorMerge multiple `Processor` objects into one.
class
src.prompt_toolkit.layout.screen.CharRepresent a single character in a :class:`.Screen`.
class
src.prompt_toolkit.layout.screen.ScreenTwo dimensional buffer of :class:`.Char` instances.
method
src.prompt_toolkit.layout.screen.Screen.append_style_to_content(style_str:str) -> NoneFor all the characters in the screen.
method
src.prompt_toolkit.layout.screen.Screen.draw_all_floats() -> NoneDraw all float functions in order of z-index.
method
src.prompt_toolkit.layout.screen.Screen.get_cursor_position(window:Window) -> PointGet the cursor position for a given window.
method
src.prompt_toolkit.layout.screen.Screen.get_menu_position(window:Window) -> PointGet the menu position for a given window.
method
src.prompt_toolkit.layout.screen.Screen.set_cursor_position(window:Window, position:Point) -> NoneSet the cursor position for a given window.
method
src.prompt_toolkit.layout.screen.Screen.set_menu_position(window:Window, position:Point) -> NoneSet the cursor position for a given window.
func
src.prompt_toolkit.layout.scrollable_pane.ScrollablePane.is_scroll_button(row:int) -> boolTrue if we should display a button on this row.
func
src.prompt_toolkit.layout.scrollable_pane.ScrollablePane.wrap_mouse_handler(handler:MouseHandler) -> MouseHandlerWrap mouse handler.
class
src.prompt_toolkit.lexers.base.DynamicLexerLexer class that can dynamically returns any Lexer.
class
src.prompt_toolkit.lexers.base.LexerBase class for all lexers.
func
src.prompt_toolkit.lexers.base.SimpleLexer.get_line(lineno:int) -> StyleAndTextTuplesReturn the tokens for the given line.
class
src.prompt_toolkit.lexers.pygments.PygmentsLexerLexer that calls a pygments lexer.
method
src.prompt_toolkit.lexers.pygments.PygmentsLexer.from_filename(filename:str, sync_from_start:FilterOrBool=True) -> LexerCreate a `Lexer` from a filename.
func
src.prompt_toolkit.lexers.pygments.PygmentsLexer.get_line(i:int) -> StyleAndTextTuplesReturn the tokens for a given line number.
class
src.prompt_toolkit.lexers.pygments.SyntaxSyncSyntax synchronizer.
class
src.prompt_toolkit.mouse_events.MouseEventMouse event, sent to `UIControl.mouse_handler`.
class
src.prompt_toolkit.output.base.DummyOutputFor testing.
method
src.prompt_toolkit.output.base.DummyOutput.fileno() -> intThere is no sensible default for fileno().
method
src.prompt_toolkit.output.base.Output.ask_for_cpr() -> NoneAsks for a cursor position report (CPR).
method
src.prompt_toolkit.output.base.Output.bell() -> NoneSound bell.
method
src.prompt_toolkit.output.base.Output.clear_title() -> NoneClear title again.
method
src.prompt_toolkit.output.base.Output.cursor_backward(amount:int) -> NoneMove cursor `amount` place backward.
method
src.prompt_toolkit.output.base.Output.cursor_down(amount:int) -> NoneMove cursor `amount` place down.
method
src.prompt_toolkit.output.base.Output.cursor_forward(amount:int) -> NoneMove cursor `amount` place forward.
method
src.prompt_toolkit.output.base.Output.cursor_goto(row:int=0, column:int=0) -> NoneMove cursor position.
method
src.prompt_toolkit.output.base.Output.cursor_up(amount:int) -> NoneMove cursor `amount` place up.
method
src.prompt_toolkit.output.base.Output.disable_autowrap() -> NoneDisable auto line wrapping.
method
src.prompt_toolkit.output.base.Output.disable_bracketed_paste() -> NoneFor vt100 only.
method
src.prompt_toolkit.output.base.Output.disable_mouse_support() -> NoneDisable mouse.
method
src.prompt_toolkit.output.base.Output.enable_autowrap() -> NoneEnable auto line wrapping.
method
src.prompt_toolkit.output.base.Output.enable_bracketed_paste() -> NoneFor vt100 only.
method
src.prompt_toolkit.output.base.Output.enable_mouse_support() -> NoneEnable mouse.
method
src.prompt_toolkit.output.base.Output.encoding() -> strReturn the encoding for this output, e.g.
method
src.prompt_toolkit.output.base.Output.enter_alternate_screen() -> NoneGo to the alternate screen buffer.
method
src.prompt_toolkit.output.base.Output.flush() -> NoneWrite to output stream and flush.
method
src.prompt_toolkit.output.base.Output.get_default_color_depth() -> ColorDepthGet default color depth for this output.
method
src.prompt_toolkit.output.base.Output.get_rows_below_cursor_position() -> intFor Windows only.
method
src.prompt_toolkit.output.base.Output.get_size() -> SizeReturn the size of the output window.
method
src.prompt_toolkit.output.base.Output.hide_cursor() -> NoneHide cursor.
method
src.prompt_toolkit.output.base.Output.quit_alternate_screen() -> NoneLeave the alternate screen buffer.
method
src.prompt_toolkit.output.base.Output.reset_attributes() -> NoneReset color and styling attributes.
method
src.prompt_toolkit.output.base.Output.reset_cursor_key_mode() -> NoneFor vt100 only.
method
src.prompt_toolkit.output.base.Output.reset_cursor_shape() -> NoneReset cursor shape.
method
src.prompt_toolkit.output.base.Output.scroll_buffer_to_prompt() -> NoneFor Win32 only.
method
src.prompt_toolkit.output.base.Output.set_attributes(attrs:Attrs, color_depth:ColorDepth) -> NoneSet new color and styling attributes.
method
src.prompt_toolkit.output.base.Output.set_cursor_shape(cursor_shape:CursorShape) -> NoneSet cursor shape to block, beam or underline.
method
src.prompt_toolkit.output.base.Output.set_title(title:str) -> NoneSet terminal title.
method
src.prompt_toolkit.output.base.Output.show_cursor() -> NoneShow cursor.
method
src.prompt_toolkit.output.base.Output.write_raw(data:str) -> NoneWrite text.
class
src.prompt_toolkit.output.color_depth.ColorDepthPossible color depth values for the output.
class
src.prompt_toolkit.output.conemu.ConEmuOutputConEmu (Windows) output abstraction.
class
src.prompt_toolkit.output.win32.ColorLookupTableInspired by pygments/formatters/terminal256.py
class
src.prompt_toolkit.output.win32.Win32OutputI/O abstraction for rendering to Windows consoles.
method
src.prompt_toolkit.output.win32.Win32Output.encoding() -> strReturn encoding used for stdout.
method
src.prompt_toolkit.output.win32.Win32Output.enter_alternate_screen() -> NoneGo to alternate screen buffer.
method
src.prompt_toolkit.output.win32.Win32Output.fileno() -> intReturn file descriptor.
method
src.prompt_toolkit.output.win32.Win32Output.flush() -> NoneWrite to output stream and flush.
method
src.prompt_toolkit.output.win32.Win32Output.get_win32_screen_buffer_info() -> CONSOLE_SCREEN_BUFFER_INFOReturn Screen buffer info.
method
src.prompt_toolkit.output.win32.Win32Output.quit_alternate_screen() -> NoneMake stdout again the active buffer.
method
src.prompt_toolkit.output.win32.Win32Output.scroll_buffer_to_prompt() -> NoneTo be called before drawing the prompt.
method
src.prompt_toolkit.output.win32.Win32Output.set_title(title:str) -> NoneSet terminal title.
class
src.prompt_toolkit.output.windows10.Windows10_OutputWindows 10 output abstraction.
method
src.prompt_toolkit.output.windows10.Windows10_Output.flush() -> NoneWrite to output stream and flush.
class
src.prompt_toolkit.renderer.CPR_SupportEnum: whether or not CPR is supported.
class
src.prompt_toolkit.renderer.HeightIsUnknownErrorInformation unavailable.
method
src.prompt_toolkit.renderer.Renderer.clear() -> NoneClear screen and go to 0,0
method
src.prompt_toolkit.renderer.Renderer.render(app:Application[Any], layout:Layout, is_done:bool=False) -> NoneRender the current interface to the output.
method
src.prompt_toolkit.renderer.Renderer.request_absolute_cursor_position() -> NoneGet current cursor position.
method
src.prompt_toolkit.renderer.Renderer.wait_for_cpr_responses(timeout:int=1) -> NoneWait for a CPR response.
method
src.prompt_toolkit.renderer.Renderer.waiting_for_cpr() -> boolWaiting for CPR flag.
func
src.prompt_toolkit.renderer.move_cursor(new:Point) -> PointMove cursor to this `new` point.
func
src.prompt_toolkit.renderer.output_char(char:Char) -> NoneWrite the output of this character.
func
src.prompt_toolkit.renderer.reset_attributes() -> NoneWrapper around Output.reset_attributes.
func
src.prompt_toolkit.search.accept_search() -> NoneAccept current search query.
func
src.prompt_toolkit.search.do_incremental_search(direction:SearchDirection, count:int=1) -> NoneApply search, but keep search buffer focused.
func
src.prompt_toolkit.search.stop_search(buffer_control:BufferControl | None=None) -> NoneStop search through the given `buffer_control`.
class
src.prompt_toolkit.selection.SelectionStateState of the current selection.
class
src.prompt_toolkit.selection.SelectionTypeType of selection.
class
src.prompt_toolkit.shortcuts.choice_input.ChoiceInputInput selection prompt.
func
src.prompt_toolkit.shortcuts.dialogs.yes_no_dialog(title:AnyFormattedText='', text:AnyFormattedText='', yes_text:str='Yes', no_text:str='No', style:BaseStyle | None=None) -> Application[bool]Display a Yes/No dialog.
About this data
These signatures were extracted from the public source of prompt-toolkit/python-prompt-toolkit
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.