SYMBOL INDEX (2418 symbols across 250 files) FILE: examples/choices/color.py function main (line 8) | def main() -> None: FILE: examples/choices/default.py function main (line 7) | def main() -> None: FILE: examples/choices/frame-and-bottom-toolbar.py function main (line 9) | def main() -> None: FILE: examples/choices/gray-frame-on-accept.py function main (line 8) | def main() -> None: FILE: examples/choices/many-choices.py function main (line 6) | def main() -> None: FILE: examples/choices/mouse-support.py function main (line 7) | def main() -> None: FILE: examples/choices/simple-selection.py function main (line 6) | def main() -> None: FILE: examples/choices/with-frame.py function main (line 9) | def main() -> None: FILE: examples/dialogs/button_dialog.py function main (line 9) | def main(): FILE: examples/dialogs/input_dialog.py function main (line 9) | def main(): FILE: examples/dialogs/messagebox.py function main (line 9) | def main(): FILE: examples/dialogs/password_dialog.py function main (line 9) | def main(): FILE: examples/dialogs/progress_dialog.py function worker (line 12) | def worker(set_percentage, log_text): function main (line 38) | def main(): FILE: examples/dialogs/radio_dialog.py function main (line 10) | def main(): FILE: examples/dialogs/styled_messagebox.py function main (line 26) | def main(): FILE: examples/dialogs/yes_no_dialog.py function main (line 9) | def main(): FILE: examples/full-screen/ansi-art-and-textarea.py function main (line 10) | def main(): FILE: examples/full-screen/buttons.py function button1_clicked (line 16) | def button1_clicked(): function button2_clicked (line 20) | def button2_clicked(): function button3_clicked (line 24) | def button3_clicked(): function exit_clicked (line 28) | def exit_clicked(): function main (line 87) | def main(): FILE: examples/full-screen/calculator.py function main (line 21) | def main(): FILE: examples/full-screen/full-screen-demo.py function accept_yes (line 32) | def accept_yes(): function accept_no (line 36) | def accept_no(): function do_exit (line 40) | def do_exit(): function run (line 219) | def run(): FILE: examples/full-screen/hello-world.py function _ (line 30) | def _(event): function main (line 39) | def main(): FILE: examples/full-screen/pager.py function get_statusbar_text (line 27) | def get_statusbar_text(): function _ (line 78) | def _(event): function run (line 104) | def run(): FILE: examples/full-screen/scrollable-panes/simple-example.py function main (line 14) | def main(): FILE: examples/full-screen/scrollable-panes/with-completion-menu.py function main (line 23) | def main(): FILE: examples/full-screen/simple-demos/alignment.py function _ (line 47) | def _(event): function run (line 56) | def run(): FILE: examples/full-screen/simple-demos/autocompletion.py function _ (line 87) | def _(event): function run (line 96) | def run(): FILE: examples/full-screen/simple-demos/colorcolumn.py function _ (line 50) | def _(event): function run (line 59) | def run(): FILE: examples/full-screen/simple-demos/cursorcolumn-cursorline.py function _ (line 46) | def _(event): function run (line 55) | def run(): FILE: examples/full-screen/simple-demos/float-transparency.py function _ (line 74) | def _(event): function run (line 83) | def run(): FILE: examples/full-screen/simple-demos/floats.py function _ (line 103) | def _(event): function run (line 112) | def run(): FILE: examples/full-screen/simple-demos/focus.py function _ (line 55) | def _(event): function _ (line 61) | def _(event): function _ (line 66) | def _(event): function _ (line 71) | def _(event): function _ (line 76) | def _(event): function _ (line 81) | def _(event): function _ (line 86) | def _(event): function run (line 94) | def run(): FILE: examples/full-screen/simple-demos/horizontal-align.py function _ (line 195) | def _(event): function run (line 204) | def run(): FILE: examples/full-screen/simple-demos/horizontal-split.py function _ (line 31) | def _(event): function run (line 40) | def run(): FILE: examples/full-screen/simple-demos/line-prefixes.py function get_line_prefix (line 34) | def get_line_prefix(lineno, wrap_count): function _ (line 88) | def _(event): function _ (line 94) | def _(event): function run (line 106) | def run(): FILE: examples/full-screen/simple-demos/margins.py function _ (line 58) | def _(event): function run (line 67) | def run(): FILE: examples/full-screen/simple-demos/vertical-align.py function _ (line 154) | def _(event): function run (line 163) | def run(): FILE: examples/full-screen/simple-demos/vertical-split.py function _ (line 31) | def _(event): function run (line 40) | def run(): FILE: examples/full-screen/split-screen.py function get_titlebar_text (line 49) | def get_titlebar_text(): function _ (line 103) | def _(event): function default_buffer_changed (line 120) | def default_buffer_changed(_): function run (line 151) | def run(): FILE: examples/full-screen/text-editor.py class ApplicationState (line 40) | class ApplicationState: function get_statusbar_text (line 52) | def get_statusbar_text(): function get_statusbar_right_text (line 56) | def get_statusbar_right_text(): class TextInputDialog (line 73) | class TextInputDialog: method __init__ (line 74) | def __init__(self, title="", label_text="", completer=None): method __pt_container__ (line 106) | def __pt_container__(self): class MessageDialog (line 110) | class MessageDialog: method __init__ (line 111) | def __init__(self, title, text): method __pt_container__ (line 127) | def __pt_container__(self): function _ (line 161) | def _(event): function do_open_file (line 171) | def do_open_file(): function do_about (line 192) | def do_about(): function show_message (line 196) | def show_message(title, text): function show_dialog_as_float (line 204) | async def show_dialog_as_float(dialog): function do_new_file (line 222) | def do_new_file(): function do_exit (line 226) | def do_exit(): function do_time_date (line 230) | def do_time_date(): function do_go_to (line 235) | def do_go_to(): function do_undo (line 255) | def do_undo(): function do_cut (line 259) | def do_cut(): function do_copy (line 264) | def do_copy(): function do_delete (line 269) | def do_delete(): function do_find (line 273) | def do_find(): function do_find_next (line 277) | def do_find_next(): function do_paste (line 286) | def do_paste(): function do_select_all (line 290) | def do_select_all(): function do_status_bar (line 296) | def do_status_bar(): function run (line 376) | def run(): FILE: examples/gevent-get-input.py function dummy_inputhook (line 17) | def dummy_inputhook(*a): FILE: examples/print-text/ansi-colors.py function main (line 12) | def main(): FILE: examples/print-text/ansi.py function title (line 15) | def title(text): function main (line 19) | def main(): FILE: examples/print-text/html.py function title (line 11) | def title(text): function main (line 15) | def main(): FILE: examples/print-text/named-colors.py function main (line 14) | def main(): FILE: examples/print-text/print-formatted-text.py function main (line 13) | def main(): FILE: examples/print-text/pygments-tokens.py function main (line 16) | def main(): FILE: examples/print-text/true-color-demo.py function main (line 13) | def main(): FILE: examples/progress-bar/a-lot-of-parallel-tasks.py function main (line 14) | def main(): FILE: examples/progress-bar/colored-title-and-label.py function main (line 13) | def main(): FILE: examples/progress-bar/custom-key-bindings.py function main (line 17) | def main(): FILE: examples/progress-bar/many-parallel-tasks.py function main (line 13) | def main(): FILE: examples/progress-bar/nested-progress-bars.py function main (line 12) | def main(): FILE: examples/progress-bar/scrolling-task-name.py function main (line 12) | def main(): FILE: examples/progress-bar/simple-progress-bar.py function main (line 12) | def main(): FILE: examples/progress-bar/styled-1.py function main (line 28) | def main(): FILE: examples/progress-bar/styled-2.py function main (line 29) | def main(): FILE: examples/progress-bar/styled-apt-get-install.py function main (line 22) | def main(): FILE: examples/progress-bar/styled-rainbow.py function main (line 14) | def main(): FILE: examples/progress-bar/styled-tqdm-1.py function main (line 17) | def main(): FILE: examples/progress-bar/styled-tqdm-2.py function main (line 17) | def main(): FILE: examples/progress-bar/two-tasks.py function main (line 12) | def main(): FILE: examples/progress-bar/unknown-length.py function data (line 12) | def data(): function main (line 20) | def main(): FILE: examples/prompts/asyncio-prompt.py function print_counter (line 22) | async def print_counter(): function interactive_shell (line 36) | async def interactive_shell(): function main (line 52) | async def main(): FILE: examples/prompts/auto-completion/autocomplete-with-control-space.py function _ (line 53) | def _(event): function main (line 65) | def main(): FILE: examples/prompts/auto-completion/autocompletion-like-readline.py function main (line 49) | def main(): FILE: examples/prompts/auto-completion/autocompletion.py function main (line 53) | def main(): FILE: examples/prompts/auto-completion/colored-completions-with-formatted-text.py class AnimalCompleter (line 90) | class AnimalCompleter(Completer): method get_completions (line 91) | def get_completions(self, document, complete_event): function main (line 117) | def main(): FILE: examples/prompts/auto-completion/colored-completions.py class ColorCompleter (line 24) | class ColorCompleter(Completer): method get_completions (line 25) | def get_completions(self, document, complete_event): function main (line 37) | def main(): FILE: examples/prompts/auto-completion/combine-multiple-completers.py function main (line 67) | def main(): FILE: examples/prompts/auto-completion/fuzzy-custom-completer.py class ColorCompleter (line 23) | class ColorCompleter(Completer): method get_completions (line 24) | def get_completions(self, document, complete_event): function main (line 36) | def main(): FILE: examples/prompts/auto-completion/fuzzy-word-completer.py function main (line 52) | def main(): FILE: examples/prompts/auto-completion/multi-column-autocompletion-with-meta.py function main (line 41) | def main(): FILE: examples/prompts/auto-completion/multi-column-autocompletion.py function main (line 48) | def main(): FILE: examples/prompts/auto-completion/nested-autocompletion.py function main (line 17) | def main(): FILE: examples/prompts/auto-completion/slow-completions.py class SlowCompleter (line 57) | class SlowCompleter(Completer): method __init__ (line 62) | def __init__(self): method get_completions (line 65) | def get_completions(self, document, complete_event): function main (line 82) | def main(): FILE: examples/prompts/auto-suggestion.py function main (line 16) | def main(): FILE: examples/prompts/autocorrection.py function main (line 18) | def main(): FILE: examples/prompts/bottom-toolbar.py function main (line 21) | def main(): FILE: examples/prompts/clock-input.py function get_prompt (line 11) | def get_prompt(): function main (line 20) | def main(): FILE: examples/prompts/colored-prompt.py function example_1 (line 28) | def example_1(): function example_2 (line 47) | def example_2(): function example_3 (line 64) | def example_3(): FILE: examples/prompts/custom-key-binding.py function main (line 13) | def main(): FILE: examples/prompts/custom-lexer.py class RainbowLexer (line 11) | class RainbowLexer(Lexer): method lex_document (line 12) | def lex_document(self, document): function main (line 24) | def main(): FILE: examples/prompts/custom-vi-operator-and-text-object.py function main (line 17) | def main(): FILE: examples/prompts/fancy-zsh-prompt.py function get_prompt (line 39) | def get_prompt() -> HTML: function main (line 73) | def main() -> None: FILE: examples/prompts/finalterm-shell-integration.py function get_prompt_text (line 20) | def get_prompt_text(): FILE: examples/prompts/get-multiline-input.py function prompt_continuation (line 6) | def prompt_continuation(width, line_number, wrap_count): FILE: examples/prompts/get-password-with-toggle-display-shortcut.py function main (line 12) | def main(): FILE: examples/prompts/history/persistent-history.py function main (line 12) | def main(): FILE: examples/prompts/history/slow-history.py class SlowHistory (line 15) | class SlowHistory(History): method load_history_strings (line 20) | def load_history_strings(self): method store_string (line 25) | def store_string(self, string): function main (line 29) | def main(): FILE: examples/prompts/html-input.py function main (line 13) | def main(): FILE: examples/prompts/input-validation.py function is_valid_email (line 10) | def is_valid_email(text): function main (line 21) | def main(): FILE: examples/prompts/inputhook.py function hello_world_window (line 24) | def hello_world_window(): function inputhook (line 47) | def inputhook(context): function main (line 65) | def main(): FILE: examples/prompts/multiline-autosuggest.py class FakeLLMAutoSuggest (line 46) | class FakeLLMAutoSuggest(AutoSuggest): method get_suggestion (line 47) | def get_suggestion(self, buffer, document): class AppendMultilineAutoSuggestionInAnyLine (line 68) | class AppendMultilineAutoSuggestionInAnyLine(Processor): method __init__ (line 69) | def __init__(self, style: str = "class:auto-suggestion") -> None: method apply_transformation (line 72) | def apply_transformation(self, ti: TransformationInput) -> Transformat... function main (line 112) | def main(): FILE: examples/prompts/operate-and-get-next.py function main (line 12) | def main(): FILE: examples/prompts/patch-stdout.py function main (line 16) | def main(): FILE: examples/prompts/regular-language.py function create_grammar (line 30) | def create_grammar(): FILE: examples/prompts/rprompt.py function get_rprompt_text (line 23) | def get_rprompt_text(): function main (line 31) | def main(): FILE: examples/prompts/swap-light-and-dark-colors.py function main (line 42) | def main(): FILE: examples/prompts/switch-between-vi-emacs.py function run (line 13) | def run(): FILE: examples/prompts/up-arrow-partial-string-matching.py function main (line 13) | def main(): FILE: examples/prompts/with-frames/frame-and-autocompletion.py function main (line 50) | def main(): FILE: examples/prompts/with-frames/gray-frame-on-accept.py function main (line 50) | def main(): FILE: examples/prompts/with-frames/with-frame.py function example (line 16) | def example(): FILE: examples/ssh/asyncssh-server.py function interact (line 58) | async def interact(ssh_session: PromptToolkitSSHSession) -> None: function main (line 104) | async def main(port=8222): FILE: examples/telnet/chat-app.py function interact (line 43) | async def interact(connection): function _send_to_everyone (line 80) | def _send_to_everyone(sender_connection, name, message, color): function main (line 95) | async def main(): FILE: examples/telnet/dialog.py function interact (line 17) | async def interact(connection): function main (line 26) | async def main(): FILE: examples/telnet/hello-world.py function interact (line 21) | async def interact(connection): function main (line 34) | async def main(): FILE: examples/telnet/toolbar.py function interact (line 19) | async def interact(connection): function main (line 39) | async def main(): FILE: examples/tutorial/sqlite-cli.py function main (line 152) | def main(database): FILE: src/prompt_toolkit/__init__.py function _load_version (line 29) | def _load_version() -> None: function __getattr__ (line 56) | def __getattr__(name: str) -> Any: function __dir__ (line 63) | def __dir__() -> list[str]: FILE: src/prompt_toolkit/application/application.py class Application (line 100) | class Application(Generic[_AppResult]): method __init__ (line 181) | def __init__( method _create_merged_style (line 334) | def _create_merged_style(self, include_default_pygments_style: Filter)... method color_depth (line 358) | def color_depth(self) -> ColorDepth: method current_buffer (line 382) | def current_buffer(self) -> Buffer: method current_search_state (line 395) | def current_search_state(self) -> SearchState: method reset (line 406) | def reset(self) -> None: method invalidate (line 438) | def invalidate(self) -> None: method invalidated (line 492) | def invalidated(self) -> bool: method _redraw (line 496) | def _redraw(self, render_as_done: bool = False) -> None: method _start_auto_refresh_task (line 540) | def _start_auto_refresh_task(self) -> None: method _update_invalidate_events (line 554) | def _update_invalidate_events(self) -> None: method _invalidate_handler (line 575) | def _invalidate_handler(self, sender: object) -> None: method _on_resize (line 585) | def _on_resize(self) -> None: method _pre_run (line 597) | def _pre_run(self, pre_run: Callable[[], None] | None = None) -> None: method run_async (line 615) | async def run_async( method run (line 897) | def run( method _handle_exception (line 1001) | def _handle_exception( method _enable_breakpointhook (line 1028) | def _enable_breakpointhook(self) -> Generator[None, None, None]: method _breakpointhook (line 1044) | def _breakpointhook(self, *a: object, **kw: object) -> None: method create_background_task (line 1129) | def create_background_task( method _on_background_task_done (line 1155) | def _on_background_task_done(self, task: asyncio.Task[None]) -> None: method cancel_and_wait_for_background_tasks (line 1176) | async def cancel_and_wait_for_background_tasks(self) -> None: method _poll_output_size (line 1208) | async def _poll_output_size(self) -> None: method cpr_not_supported_callback (line 1230) | def cpr_not_supported_callback(self) -> None: method exit (line 1246) | def exit(self) -> None: method exit (line 1250) | def exit(self, *, result: _AppResult, style: str = "") -> None: method exit (line 1254) | def exit( method exit (line 1259) | def exit( method _request_absolute_cursor_position (line 1298) | def _request_absolute_cursor_position(self) -> None: method run_system_command (line 1308) | async def run_system_command( method suspend_to_background (line 1350) | def suspend_to_background(self, suspend_group: bool = True) -> None: method print_text (line 1376) | def print_text( method is_running (line 1396) | def is_running(self) -> bool: method is_done (line 1401) | def is_done(self) -> bool: method get_used_style_strings (line 1406) | def get_used_style_strings(self) -> list[str]: class _CombinedRegistry (line 1422) | class _CombinedRegistry(KeyBindingsBase): method __init__ (line 1429) | def __init__(self, app: Application[_AppResult]) -> None: method _version (line 1436) | def _version(self) -> Hashable: method bindings (line 1442) | def bindings(self) -> list[Binding]: method _create_key_bindings (line 1447) | def _create_key_bindings( method _key_bindings (line 1502) | def _key_bindings(self) -> KeyBindingsBase: method get_bindings_for_keys (line 1511) | def get_bindings_for_keys(self, keys: KeysTuple) -> list[Binding]: method get_bindings_starting_with_keys (line 1514) | def get_bindings_starting_with_keys(self, keys: KeysTuple) -> list[Bin... function _do_wait_for_enter (line 1518) | async def _do_wait_for_enter(wait_text: AnyFormattedText) -> None: function attach_winch_signal_handler (line 1548) | def attach_winch_signal_handler( function _restore_sigint_from_ctypes (line 1593) | def _restore_sigint_from_ctypes() -> Generator[None, None, None]: FILE: src/prompt_toolkit/application/current.py class AppSession (line 25) | class AppSession: method __init__ (line 42) | def __init__( method __repr__ (line 52) | def __repr__(self) -> str: method input (line 56) | def input(self) -> Input: method output (line 64) | def output(self) -> Output: function get_app_session (line 77) | def get_app_session() -> AppSession: function get_app (line 81) | def get_app() -> Application[Any]: function get_app_or_none (line 109) | def get_app_or_none() -> Application[Any] | None: function set_app (line 119) | def set_app(app: Application[Any]) -> Generator[None, None, None]: function create_app_session (line 141) | def create_app_session( function create_app_session_from_tty (line 174) | def create_app_session_from_tty() -> Generator[AppSession, None, None]: FILE: src/prompt_toolkit/application/dummy.py class DummyApplication (line 17) | class DummyApplication(Application[None]): method __init__ (line 23) | def __init__(self) -> None: method run (line 26) | def run( method run_async (line 36) | async def run_async( method run_system_command (line 45) | async def run_system_command( method suspend_to_background (line 54) | def suspend_to_background(self, suspend_group: bool = True) -> None: FILE: src/prompt_toolkit/application/run_in_terminal.py function run_in_terminal (line 24) | def run_in_terminal( function in_terminal (line 60) | async def in_terminal(render_cli_done: bool = False) -> AsyncGenerator[N... FILE: src/prompt_toolkit/auto_suggest.py class Suggestion (line 40) | class Suggestion: method __init__ (line 47) | def __init__(self, text: str) -> None: method __repr__ (line 50) | def __repr__(self) -> str: class AutoSuggest (line 54) | class AutoSuggest(metaclass=ABCMeta): method get_suggestion (line 60) | def get_suggestion(self, buffer: Buffer, document: Document) -> Sugges... method get_suggestion_async (line 76) | async def get_suggestion_async( class ThreadedAutoSuggest (line 87) | class ThreadedAutoSuggest(AutoSuggest): method __init__ (line 94) | def __init__(self, auto_suggest: AutoSuggest) -> None: method get_suggestion (line 97) | def get_suggestion(self, buff: Buffer, document: Document) -> Suggesti... method get_suggestion_async (line 100) | async def get_suggestion_async( class DummyAutoSuggest (line 113) | class DummyAutoSuggest(AutoSuggest): method get_suggestion (line 118) | def get_suggestion(self, buffer: Buffer, document: Document) -> Sugges... class AutoSuggestFromHistory (line 122) | class AutoSuggestFromHistory(AutoSuggest): method get_suggestion (line 127) | def get_suggestion(self, buffer: Buffer, document: Document) -> Sugges... class ConditionalAutoSuggest (line 144) | class ConditionalAutoSuggest(AutoSuggest): method __init__ (line 149) | def __init__(self, auto_suggest: AutoSuggest, filter: bool | Filter) -... method get_suggestion (line 153) | def get_suggestion(self, buffer: Buffer, document: Document) -> Sugges... class DynamicAutoSuggest (line 160) | class DynamicAutoSuggest(AutoSuggest): method __init__ (line 167) | def __init__(self, get_auto_suggest: Callable[[], AutoSuggest | None])... method get_suggestion (line 170) | def get_suggestion(self, buff: Buffer, document: Document) -> Suggesti... method get_suggestion_async (line 174) | async def get_suggestion_async( FILE: src/prompt_toolkit/buffer.py class EditReadOnlyBuffer (line 55) | class EditReadOnlyBuffer(Exception): class ValidationState (line 59) | class ValidationState(Enum): class CompletionState (line 67) | class CompletionState: method __init__ (line 72) | def __init__( method __repr__ (line 89) | def __repr__(self) -> str: method go_to_index (line 92) | def go_to_index(self, index: int | None) -> None: method new_text_and_position (line 102) | def new_text_and_position(self) -> tuple[str, int]: method current_completion (line 123) | def current_completion(self) -> Completion | None: class YankNthArgState (line 136) | class YankNthArgState: method __init__ (line 141) | def __init__( method __repr__ (line 148) | def __repr__(self) -> str: class Buffer (line 156) | class Buffer: method __init__ (line 216) | def __init__( method __repr__ (line 297) | def __repr__(self) -> str: method reset (line 305) | def reset( method load_history_if_not_yet_loaded (line 370) | def load_history_if_not_yet_loaded(self) -> None: method _set_text (line 425) | def _set_text(self, value: str) -> bool: method _set_cursor_position (line 445) | def _set_cursor_position(self, value: int) -> bool: method text (line 453) | def text(self) -> str: method text (line 457) | def text(self, value: str) -> None: method cursor_position (line 483) | def cursor_position(self) -> int: method cursor_position (line 487) | def cursor_position(self, value: int) -> None: method working_index (line 505) | def working_index(self) -> int: method working_index (line 509) | def working_index(self, value: int) -> None: method _text_changed (line 518) | def _text_changed(self) -> None: method _cursor_position_changed (line 538) | def _cursor_position_changed(self) -> None: method document (line 557) | def document(self) -> Document: method document (line 567) | def document(self, value: Document) -> None: method set_document (line 576) | def set_document(self, value: Document, bypass_readonly: bool = False)... method is_returnable (line 612) | def is_returnable(self) -> bool: method save_to_undo_stack (line 620) | def save_to_undo_stack(self, clear_redo_stack: bool = True) -> None: method transform_lines (line 636) | def transform_lines( method transform_current_line (line 668) | def transform_current_line(self, transform_callback: Callable[[str], s... method transform_region (line 683) | def transform_region( method cursor_left (line 704) | def cursor_left(self, count: int = 1) -> None: method cursor_right (line 707) | def cursor_right(self, count: int = 1) -> None: method cursor_up (line 710) | def cursor_up(self, count: int = 1) -> None: method cursor_down (line 720) | def cursor_down(self, count: int = 1) -> None: method auto_up (line 730) | def auto_up( method auto_down (line 748) | def auto_down( method delete_before_cursor (line 766) | def delete_before_cursor(self, count: int = 1) -> str: method delete (line 788) | def delete(self, count: int = 1) -> str: method join_next_line (line 802) | def join_next_line(self, separator: str = " ") -> None: method join_selected_lines (line 818) | def join_selected_lines(self, separator: str = " ") -> None: method swap_characters_before_cursor (line 842) | def swap_characters_before_cursor(self) -> None: method go_to_history (line 854) | def go_to_history(self, index: int) -> None: method complete_next (line 862) | def complete_next(self, count: int = 1, disable_wrap_around: bool = Fa... method complete_previous (line 885) | def complete_previous( method cancel_completion (line 907) | def cancel_completion(self) -> None: method _set_completions (line 915) | def _set_completions(self, completions: list[Completion]) -> Completio... method start_history_lines_completion (line 930) | def start_history_lines_completion(self) -> None: method go_to_completion (line 966) | def go_to_completion(self, index: int | None) -> None: method apply_completion (line 983) | def apply_completion(self, completion: Completion) -> None: method _set_history_search (line 996) | def _set_history_search(self) -> None: method _history_matches (line 1007) | def _history_matches(self, i: int) -> bool: method history_forward (line 1016) | def history_forward(self, count: int = 1) -> None: method history_backward (line 1040) | def history_backward(self, count: int = 1) -> None: method yank_nth_arg (line 1061) | def yank_nth_arg(self, n: int | None = None, _yank_last_arg: bool = Fa... method yank_last_arg (line 1112) | def yank_last_arg(self, n: int | None = None) -> None: method start_selection (line 1119) | def start_selection( method copy_selection (line 1127) | def copy_selection(self, _cut: bool = False) -> ClipboardData: method cut_selection (line 1146) | def cut_selection(self) -> ClipboardData: method paste_clipboard_data (line 1152) | def paste_clipboard_data( method newline (line 1173) | def newline(self, copy_margin: bool = True) -> None: method insert_line_above (line 1182) | def insert_line_above(self, copy_margin: bool = True) -> None: method insert_line_below (line 1195) | def insert_line_below(self, copy_margin: bool = True) -> None: method insert_text (line 1207) | def insert_text( method undo (line 1259) | def undo(self) -> None: method redo (line 1275) | def redo(self) -> None: method validate (line 1284) | def validate(self, set_cursor: bool = False) -> bool: method _validate_async (line 1315) | async def _validate_async(self) -> None: method append_to_history (line 1357) | def append_to_history(self) -> None: method _search (line 1368) | def _search( method document_for_search (line 1456) | def document_for_search(self, search_state: SearchState) -> Document: method get_search_position (line 1481) | def get_search_position( method apply_search (line 1502) | def apply_search( method exit_selection (line 1521) | def exit_selection(self) -> None: method _editor_simple_tempfile (line 1524) | def _editor_simple_tempfile(self) -> tuple[str, Callable[[], None]]: method _editor_complex_tempfile (line 1540) | def _editor_complex_tempfile(self) -> tuple[str, Callable[[], None]]: method open_in_editor (line 1569) | def open_in_editor(self, validate_and_handle: bool = False) -> asyncio... method _open_file_in_editor (line 1616) | def _open_file_in_editor(self, filename: str) -> bool: method start_completion (line 1652) | def start_completion( method _create_completer_coroutine (line 1676) | def _create_completer_coroutine(self) -> Callable[..., Coroutine[Any, ... method _create_auto_suggest_coroutine (line 1838) | def _create_auto_suggest_coroutine(self) -> Callable[[], Coroutine[Any... method _create_auto_validate_coroutine (line 1865) | def _create_auto_validate_coroutine( method validate_and_handle (line 1879) | def validate_and_handle(self) -> None: function _only_one_at_a_time (line 1901) | def _only_one_at_a_time(coroutine: _T) -> _T: class _Retry (line 1935) | class _Retry(Exception): function indent (line 1939) | def indent(buffer: Buffer, from_row: int, to_row: int, count: int = 1) -... function unindent (line 1958) | def unindent(buffer: Buffer, from_row: int, to_row: int, count: int = 1)... function reshape_text (line 1985) | def reshape_text(buffer: Buffer, from_row: int, to_row: int) -> None: FILE: src/prompt_toolkit/cache.py class SimpleCache (line 18) | class SimpleCache(Generic[_T, _U]): method __init__ (line 26) | def __init__(self, maxsize: int = 8) -> None: method get (line 33) | def get(self, key: _T, getter_func: Callable[[], _U]) -> _U: method clear (line 56) | def clear(self) -> None: class FastDictCache (line 66) | class FastDictCache(dict[_K, _V]): method __init__ (line 87) | def __init__(self, get_value: Callable[..., _V], size: int = 1000000) ... method __missing__ (line 94) | def __missing__(self, key: _K) -> _V: function memoized (line 110) | def memoized(maxsize: int = 1024) -> Callable[[_F], _F]: FILE: src/prompt_toolkit/clipboard/base.py class ClipboardData (line 20) | class ClipboardData: method __init__ (line 28) | def __init__( class Clipboard (line 35) | class Clipboard(metaclass=ABCMeta): method set_data (line 43) | def set_data(self, data: ClipboardData) -> None: method set_text (line 50) | def set_text(self, text: str) -> None: # Not abstract. method rotate (line 56) | def rotate(self) -> None: method get_data (line 62) | def get_data(self) -> ClipboardData: class DummyClipboard (line 68) | class DummyClipboard(Clipboard): method set_data (line 73) | def set_data(self, data: ClipboardData) -> None: method set_text (line 76) | def set_text(self, text: str) -> None: method rotate (line 79) | def rotate(self) -> None: method get_data (line 82) | def get_data(self) -> ClipboardData: class DynamicClipboard (line 86) | class DynamicClipboard(Clipboard): method __init__ (line 93) | def __init__(self, get_clipboard: Callable[[], Clipboard | None]) -> N... method _clipboard (line 96) | def _clipboard(self) -> Clipboard: method set_data (line 99) | def set_data(self, data: ClipboardData) -> None: method set_text (line 102) | def set_text(self, text: str) -> None: method rotate (line 105) | def rotate(self) -> None: method get_data (line 108) | def get_data(self) -> ClipboardData: FILE: src/prompt_toolkit/clipboard/in_memory.py class InMemoryClipboard (line 12) | class InMemoryClipboard(Clipboard): method __init__ (line 20) | def __init__(self, data: ClipboardData | None = None, max_size: int = ... method set_data (line 29) | def set_data(self, data: ClipboardData) -> None: method get_data (line 35) | def get_data(self) -> ClipboardData: method rotate (line 41) | def rotate(self) -> None: FILE: src/prompt_toolkit/clipboard/pyperclip.py class PyperclipClipboard (line 14) | class PyperclipClipboard(Clipboard): method __init__ (line 20) | def __init__(self) -> None: method set_data (line 23) | def set_data(self, data: ClipboardData) -> None: method get_data (line 27) | def get_data(self) -> ClipboardData: FILE: src/prompt_toolkit/completion/base.py class Completion (line 26) | class Completion: method __init__ (line 42) | def __init__( method __repr__ (line 67) | def __repr__(self) -> str: method __eq__ (line 73) | def __eq__(self, other: object) -> bool: method __hash__ (line 83) | def __hash__(self) -> int: method display_text (line 87) | def display_text(self) -> str: method display_meta (line 94) | def display_meta(self) -> StyleAndTextTuples: method display_meta_text (line 101) | def display_meta_text(self) -> str: method new_completion_from_position (line 107) | def new_completion_from_position(self, position: int) -> Completion: class CompleteEvent (line 123) | class CompleteEvent: method __init__ (line 138) | def __init__( method __repr__ (line 149) | def __repr__(self) -> str: class Completer (line 153) | class Completer(metaclass=ABCMeta): method get_completions (line 159) | def get_completions( method get_completions_async (line 177) | async def get_completions_async( class ThreadedCompleter (line 190) | class ThreadedCompleter(Completer): method __init__ (line 201) | def __init__(self, completer: Completer) -> None: method get_completions (line 204) | def get_completions( method get_completions_async (line 209) | async def get_completions_async( method __repr__ (line 271) | def __repr__(self) -> str: class DummyCompleter (line 275) | class DummyCompleter(Completer): method get_completions (line 280) | def get_completions( method __repr__ (line 285) | def __repr__(self) -> str: class DynamicCompleter (line 289) | class DynamicCompleter(Completer): method __init__ (line 296) | def __init__(self, get_completer: Callable[[], Completer | None]) -> N... method get_completions (line 299) | def get_completions( method get_completions_async (line 305) | async def get_completions_async( method __repr__ (line 315) | def __repr__(self) -> str: class ConditionalCompleter (line 319) | class ConditionalCompleter(Completer): method __init__ (line 328) | def __init__(self, completer: Completer, filter: FilterOrBool) -> None: method __repr__ (line 332) | def __repr__(self) -> str: method get_completions (line 335) | def get_completions( method get_completions_async (line 342) | async def get_completions_async( class _MergedCompleter (line 354) | class _MergedCompleter(Completer): method __init__ (line 359) | def __init__(self, completers: Sequence[Completer]) -> None: method get_completions (line 362) | def get_completions( method get_completions_async (line 369) | async def get_completions_async( function merge_completers (line 381) | def merge_completers( function get_common_complete_suffix (line 399) | def get_common_complete_suffix( function _commonprefix (line 425) | def _commonprefix(strings: Iterable[str]) -> str: FILE: src/prompt_toolkit/completion/deduplicate.py class DeduplicateCompleter (line 12) | class DeduplicateCompleter(Completer): method __init__ (line 21) | def __init__(self, completer: Completer) -> None: method get_completions (line 24) | def get_completions( FILE: src/prompt_toolkit/completion/filesystem.py class PathCompleter (line 15) | class PathCompleter(Completer): method __init__ (line 27) | def __init__( method get_completions (line 41) | def get_completions( class ExecutableCompleter (line 106) | class ExecutableCompleter(PathCompleter): method __init__ (line 111) | def __init__(self) -> None: FILE: src/prompt_toolkit/completion/fuzzy_completer.py class FuzzyCompleter (line 20) | class FuzzyCompleter(Completer): method __init__ (line 49) | def __init__( method get_completions (line 64) | def get_completions( method _get_pattern (line 72) | def _get_pattern(self) -> str: method _get_fuzzy_completions (line 79) | def _get_fuzzy_completions( method _get_display (line 135) | def _get_display( class FuzzyWordCompleter (line 178) | class FuzzyWordCompleter(Completer): method __init__ (line 189) | def __init__( method get_completions (line 205) | def get_completions( class _FuzzyMatch (line 211) | class _FuzzyMatch(NamedTuple): FILE: src/prompt_toolkit/completion/nested.py class NestedCompleter (line 20) | class NestedCompleter(Completer): method __init__ (line 32) | def __init__( method __repr__ (line 38) | def __repr__(self) -> str: method from_nested_dict (line 42) | def from_nested_dict(cls, data: NestedDict) -> NestedCompleter: method get_completions (line 80) | def get_completions( FILE: src/prompt_toolkit/completion/word_completer.py class WordCompleter (line 15) | class WordCompleter(Completer): method __init__ (line 35) | def __init__( method get_completions (line 57) | def get_completions( FILE: src/prompt_toolkit/contrib/completers/system.py class SystemCompleter (line 12) | class SystemCompleter(GrammarCompleter): method __init__ (line 17) | def __init__(self) -> None: FILE: src/prompt_toolkit/contrib/regular_languages/compiler.py class _CompiledGrammar (line 73) | class _CompiledGrammar: method __init__ (line 83) | def __init__( method escape (line 128) | def escape(self, varname: str, value: str) -> str: method unescape (line 135) | def unescape(self, varname: str, value: str) -> str: method _transform (line 143) | def _transform( method _transform_prefix (line 199) | def _transform_prefix( method match (line 358) | def match(self, string: str) -> Match | None: method match_prefix (line 373) | def match_prefix(self, string: str) -> Match | None: class Match (line 396) | class Match: method __init__ (line 403) | def __init__( method _nodes_to_regs (line 415) | def _nodes_to_regs(self) -> list[tuple[str, tuple[int, int]]]: method _nodes_to_values (line 431) | def _nodes_to_values(self) -> list[tuple[str, str, tuple[int, int]]]: method _unescape (line 448) | def _unescape(self, varname: str, value: str) -> str: method variables (line 452) | def variables(self) -> Variables: method trailing_input (line 460) | def trailing_input(self) -> MatchVariable | None: method end_nodes (line 482) | def end_nodes(self) -> Iterable[MatchVariable]: class Variables (line 497) | class Variables: method __init__ (line 498) | def __init__(self, tuples: list[tuple[str, str, tuple[int, int]]]) -> ... method __repr__ (line 502) | def __repr__(self) -> str: method get (line 509) | def get(self, key: str) -> str | None: ... method get (line 512) | def get(self, key: str, default: str | _T) -> str | _T: ... method get (line 514) | def get(self, key: str, default: str | _T | None = None) -> str | _T |... method getall (line 518) | def getall(self, key: str) -> list[str]: method __getitem__ (line 521) | def __getitem__(self, key: str) -> str | None: method __iter__ (line 524) | def __iter__(self) -> Iterator[MatchVariable]: class MatchVariable (line 532) | class MatchVariable: method __init__ (line 542) | def __init__(self, varname: str, value: str, slice: tuple[int, int]) -... method __repr__ (line 550) | def __repr__(self) -> str: function compile (line 554) | def compile( function _compile_from_parse_tree (line 570) | def _compile_from_parse_tree( FILE: src/prompt_toolkit/contrib/regular_languages/completion.py class GrammarCompleter (line 19) | class GrammarCompleter(Completer): method __init__ (line 29) | def __init__( method get_completions (line 35) | def get_completions( method _get_completions_for_match (line 45) | def _get_completions_for_match( method _remove_duplicates (line 83) | def _remove_duplicates(self, items: Iterable[Completion]) -> Iterable[... FILE: src/prompt_toolkit/contrib/regular_languages/lexer.py class GrammarLexer (line 22) | class GrammarLexer(Lexer): method __init__ (line 37) | def __init__( method _get_text_fragments (line 47) | def _get_text_fragments(self, text: str) -> StyleAndTextTuples: method lex_document (line 85) | def lex_document(self, document: Document) -> Callable[[int], StyleAnd... FILE: src/prompt_toolkit/contrib/regular_languages/regex_parser.py class Node (line 32) | class Node: method __add__ (line 38) | def __add__(self, other_node: Node) -> NodeSequence: method __or__ (line 41) | def __or__(self, other_node: Node) -> AnyNode: class AnyNode (line 45) | class AnyNode(Node): method __init__ (line 52) | def __init__(self, children: list[Node]) -> None: method __or__ (line 55) | def __or__(self, other_node: Node) -> AnyNode: method __repr__ (line 58) | def __repr__(self) -> str: class NodeSequence (line 62) | class NodeSequence(Node): method __init__ (line 68) | def __init__(self, children: list[Node]) -> None: method __add__ (line 71) | def __add__(self, other_node: Node) -> NodeSequence: method __repr__ (line 74) | def __repr__(self) -> str: class Regex (line 78) | class Regex(Node): method __init__ (line 83) | def __init__(self, regex: str) -> None: method __repr__ (line 88) | def __repr__(self) -> str: class Lookahead (line 92) | class Lookahead(Node): method __init__ (line 97) | def __init__(self, childnode: Node, negative: bool = False) -> None: method __repr__ (line 101) | def __repr__(self) -> str: class Variable (line 105) | class Variable(Node): method __init__ (line 114) | def __init__(self, childnode: Node, varname: str = "") -> None: method __repr__ (line 118) | def __repr__(self) -> str: class Repeat (line 122) | class Repeat(Node): method __init__ (line 123) | def __init__( method __repr__ (line 135) | def __repr__(self) -> str: function tokenize_regex (line 139) | def tokenize_regex(input: str) -> list[str]: function parse_regex (line 192) | def parse_regex(regex_tokens: list[str]) -> Node: FILE: src/prompt_toolkit/contrib/regular_languages/validation.py class GrammarValidator (line 17) | class GrammarValidator(Validator): method __init__ (line 27) | def __init__( method validate (line 33) | def validate(self, document: Document) -> None: FILE: src/prompt_toolkit/contrib/ssh/server.py class PromptToolkitSSHSession (line 23) | class PromptToolkitSSHSession(asyncssh.SSHServerSession): # type: ignore method __init__ (line 24) | def __init__( method _get_size (line 65) | def _get_size(self) -> Size: method connection_made (line 75) | def connection_made(self, chan: Any) -> None: method shell_requested (line 78) | def shell_requested(self) -> bool: method session_started (line 81) | def session_started(self) -> None: method _interact (line 84) | async def _interact(self) -> None: method terminal_size_changed (line 112) | def terminal_size_changed( method data_received (line 119) | def data_received(self, data: str, datatype: object) -> None: class PromptToolkitSSHServer (line 127) | class PromptToolkitSSHServer(asyncssh.SSHServer): method __init__ (line 165) | def __init__( method begin_auth (line 174) | def begin_auth(self, username: str) -> bool: method session_requested (line 178) | def session_requested(self) -> PromptToolkitSSHSession: FILE: src/prompt_toolkit/contrib/telnet/protocol.py function int2byte (line 20) | def int2byte(number: int) -> bytes: class TelnetProtocolParser (line 56) | class TelnetProtocolParser: method __init__ (line 71) | def __init__( method received_data (line 84) | def received_data(self, data: bytes) -> None: method do_received (line 87) | def do_received(self, data: bytes) -> None: method dont_received (line 91) | def dont_received(self, data: bytes) -> None: method will_received (line 95) | def will_received(self, data: bytes) -> None: method wont_received (line 99) | def wont_received(self, data: bytes) -> None: method command_received (line 103) | def command_received(self, command: bytes, data: bytes) -> None: method naws (line 119) | def naws(self, data: bytes) -> None: method ttype (line 132) | def ttype(self, data: bytes) -> None: method negotiate (line 143) | def negotiate(self, data: bytes) -> None: method _parse_coroutine (line 156) | def _parse_coroutine(self) -> Generator[None, bytes, None]: method feed (line 204) | def feed(self, data: bytes) -> None: FILE: src/prompt_toolkit/contrib/telnet/server.py function int2byte (line 45) | def int2byte(number: int) -> bytes: function _initialize_telnet (line 49) | def _initialize_telnet(connection: socket.socket) -> None: class _ConnectionStdout (line 78) | class _ConnectionStdout: method __init__ (line 84) | def __init__(self, connection: socket.socket, encoding: str) -> None: method write (line 91) | def write(self, data: str) -> None: method isatty (line 96) | def isatty(self) -> bool: method flush (line 99) | def flush(self) -> None: method close (line 108) | def close(self) -> None: method encoding (line 112) | def encoding(self) -> str: method errors (line 116) | def errors(self) -> str: class TelnetConnection (line 120) | class TelnetConnection: method __init__ (line 125) | def __init__( method run_application (line 180) | async def run_application(self) -> None: method feed (line 207) | def feed(self, data: bytes) -> None: method close (line 213) | def close(self) -> None: method send (line 225) | def send(self, formatted_text: AnyFormattedText) -> None: method send_above_prompt (line 236) | def send_above_prompt(self, formatted_text: AnyFormattedText) -> None: method _run_in_terminal (line 244) | def _run_in_terminal(self, func: Callable[[], None]) -> None: method erase_screen (line 252) | def erase_screen(self) -> None: function _dummy_interact (line 263) | async def _dummy_interact(connection: TelnetConnection) -> None: class TelnetServer (line 267) | class TelnetServer: method __init__ (line 284) | def __init__( method _create_socket (line 308) | def _create_socket(cls, host: str, port: int) -> socket.socket: method run (line 317) | async def run(self, ready_cb: Callable[[], None] | None = None) -> None: method start (line 356) | def start(self) -> None: method stop (line 368) | async def stop(self) -> None: method _accept (line 382) | def _accept(self, listen_socket: socket.socket) -> None: FILE: src/prompt_toolkit/cursor_shapes.py class CursorShape (line 24) | class CursorShape(Enum): class CursorShapeConfig (line 43) | class CursorShapeConfig(ABC): method get_cursor_shape (line 45) | def get_cursor_shape(self, application: Application[Any]) -> CursorShape: class SimpleCursorShapeConfig (line 54) | class SimpleCursorShapeConfig(CursorShapeConfig): method __init__ (line 59) | def __init__(self, cursor_shape: CursorShape = CursorShape._NEVER_CHAN... method get_cursor_shape (line 62) | def get_cursor_shape(self, application: Application[Any]) -> CursorShape: class ModalCursorShapeConfig (line 66) | class ModalCursorShapeConfig(CursorShapeConfig): method get_cursor_shape (line 71) | def get_cursor_shape(self, application: Application[Any]) -> CursorShape: class DynamicCursorShapeConfig (line 95) | class DynamicCursorShapeConfig(CursorShapeConfig): method __init__ (line 96) | def __init__( method get_cursor_shape (line 101) | def get_cursor_shape(self, application: Application[Any]) -> CursorShape: function to_cursor_shape_config (line 107) | def to_cursor_shape_config(value: AnyCursorShapeConfig) -> CursorShapeCo... FILE: src/prompt_toolkit/data_structures.py class Point (line 11) | class Point(NamedTuple): class Size (line 16) | class Size(NamedTuple): FILE: src/prompt_toolkit/document.py class _ImmutableLineList (line 50) | class _ImmutableLineList(list[str]): method _error (line 56) | def _error(self, *a: object, **kw: object) -> NoReturn: class _DocumentCache (line 70) | class _DocumentCache: method __init__ (line 71) | def __init__(self) -> None: class Document (line 79) | class Document: method __init__ (line 94) | def __init__( method __repr__ (line 133) | def __repr__(self) -> str: method __eq__ (line 136) | def __eq__(self, other: object) -> bool: method text (line 147) | def text(self) -> str: method cursor_position (line 152) | def cursor_position(self) -> int: method selection (line 157) | def selection(self) -> SelectionState | None: method current_char (line 162) | def current_char(self) -> str: method char_before_cursor (line 167) | def char_before_cursor(self) -> str: method text_before_cursor (line 172) | def text_before_cursor(self) -> str: method text_after_cursor (line 176) | def text_after_cursor(self) -> str: method current_line_before_cursor (line 180) | def current_line_before_cursor(self) -> str: method current_line_after_cursor (line 186) | def current_line_after_cursor(self) -> str: method lines (line 192) | def lines(self) -> list[str]: method _line_start_indexes (line 203) | def _line_start_indexes(self) -> list[int]: method lines_from_current (line 231) | def lines_from_current(self) -> list[str]: method line_count (line 238) | def line_count(self) -> int: method current_line (line 244) | def current_line(self) -> str: method leading_whitespace_in_current_line (line 250) | def leading_whitespace_in_current_line(self) -> str: method _get_char_relative_to_cursor (line 256) | def _get_char_relative_to_cursor(self, offset: int = 0) -> str: method on_first_line (line 266) | def on_first_line(self) -> bool: method on_last_line (line 273) | def on_last_line(self) -> bool: method cursor_position_row (line 280) | def cursor_position_row(self) -> int: method cursor_position_col (line 288) | def cursor_position_col(self) -> int: method _find_line_start_index (line 298) | def _find_line_start_index(self, index: int) -> tuple[int, int]: method translate_index_to_position (line 310) | def translate_index_to_position(self, index: int) -> tuple[int, int]: method translate_row_col_to_index (line 321) | def translate_row_col_to_index(self, row: int, col: int) -> int: method is_cursor_at_the_end (line 347) | def is_cursor_at_the_end(self) -> bool: method is_cursor_at_the_end_of_line (line 352) | def is_cursor_at_the_end_of_line(self) -> bool: method has_match_at_current_position (line 356) | def has_match_at_current_position(self, sub: str) -> bool: method find (line 362) | def find( method find_all (line 403) | def find_all(self, sub: str, ignore_case: bool = False) -> list[int]: method find_backwards (line 411) | def find_backwards( method get_word_before_cursor (line 440) | def get_word_before_cursor( method _is_word_before_cursor_complete (line 459) | def _is_word_before_cursor_complete( method find_start_of_previous_word (line 468) | def find_start_of_previous_word( method find_boundaries_of_current_word (line 501) | def find_boundaries_of_current_word( method get_word_under_cursor (line 544) | def get_word_under_cursor(self, WORD: bool = False) -> str: method find_next_word_beginning (line 552) | def find_next_word_beginning( method find_next_word_ending (line 577) | def find_next_word_ending( method find_previous_word_beginning (line 609) | def find_previous_word_beginning( method find_previous_word_ending (line 630) | def find_previous_word_ending( method find_next_matching_line (line 657) | def find_next_matching_line( method find_previous_matching_line (line 676) | def find_previous_matching_line( method get_cursor_left_position (line 695) | def get_cursor_left_position(self, count: int = 1) -> int: method get_cursor_right_position (line 704) | def get_cursor_right_position(self, count: int = 1) -> int: method get_cursor_up_position (line 713) | def get_cursor_up_position( method get_cursor_down_position (line 735) | def get_cursor_down_position( method find_enclosing_bracket_right (line 755) | def find_enclosing_bracket_right( method find_enclosing_bracket_left (line 788) | def find_enclosing_bracket_left( method find_matching_bracket_position (line 821) | def find_matching_bracket_position( method get_start_of_document_position (line 841) | def get_start_of_document_position(self) -> int: method get_end_of_document_position (line 845) | def get_end_of_document_position(self) -> int: method get_start_of_line_position (line 849) | def get_start_of_line_position(self, after_whitespace: bool = False) -... method get_end_of_line_position (line 861) | def get_end_of_line_position(self) -> int: method last_non_blank_of_current_line_position (line 865) | def last_non_blank_of_current_line_position(self) -> int: method get_column_cursor_position (line 871) | def get_column_cursor_position(self, column: int) -> int: method selection_range (line 883) | def selection_range( method selection_ranges (line 904) | def selection_ranges(self) -> Iterable[tuple[int, int]]: method selection_range_at_line (line 954) | def selection_range_at_line(self, row: int) -> tuple[int, int] | None: method cut_selection (line 1004) | def cut_selection(self) -> tuple[Document, ClipboardData]: method paste_clipboard_data (line 1040) | def paste_clipboard_data( method empty_line_count_at_the_end (line 1105) | def empty_line_count_at_the_end(self) -> int: method start_of_paragraph (line 1118) | def start_of_paragraph(self, count: int = 1, before: bool = False) -> ... method end_of_paragraph (line 1136) | def end_of_paragraph(self, count: int = 1, after: bool = False) -> int: method insert_after (line 1154) | def insert_after(self, text: str) -> Document: method insert_before (line 1165) | def insert_before(self, text: str) -> Document: FILE: src/prompt_toolkit/enums.py class EditingMode (line 6) | class EditingMode(Enum): FILE: src/prompt_toolkit/eventloop/async_generator.py function aclosing (line 24) | async def aclosing( class _Done (line 50) | class _Done: function generator_to_async_generator (line 54) | async def generator_to_async_generator( FILE: src/prompt_toolkit/eventloop/inputhook.py class InputHookContext (line 55) | class InputHookContext: method __init__ (line 60) | def __init__(self, fileno: int, input_is_ready: Callable[[], bool]) ->... method fileno (line 64) | def fileno(self) -> int: function new_eventloop_with_inputhook (line 71) | def new_eventloop_with_inputhook( function set_eventloop_with_inputhook (line 82) | def set_eventloop_with_inputhook( class InputHookSelector (line 95) | class InputHookSelector(BaseSelector): method __init__ (line 104) | def __init__( method register (line 111) | def register( method unregister (line 116) | def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: method modify (line 119) | def modify( method select (line 124) | def select( method close (line 181) | def close(self) -> None: method get_map (line 192) | def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: FILE: src/prompt_toolkit/eventloop/utils.py function run_in_executor_with_context (line 21) | def run_in_executor_with_context( function call_soon_threadsafe (line 38) | def call_soon_threadsafe( function get_traceback_from_context (line 88) | def get_traceback_from_context(context: dict[str, Any]) -> TracebackType... FILE: src/prompt_toolkit/eventloop/win32.py function wait_for_handles (line 27) | def wait_for_handles(handles: list[HANDLE], timeout: int = INFINITE) -> ... function create_win32_event (line 60) | def create_win32_event() -> HANDLE: FILE: src/prompt_toolkit/filters/app.py function has_focus (line 58) | def has_focus(value: FocusableElement) -> Condition: function buffer_has_focus (line 110) | def buffer_has_focus() -> bool: function has_selection (line 118) | def has_selection() -> bool: function has_suggestion (line 126) | def has_suggestion() -> bool: function has_completions (line 135) | def has_completions() -> bool: function completion_is_selected (line 144) | def completion_is_selected() -> bool: function is_read_only (line 153) | def is_read_only() -> bool: function is_multiline (line 161) | def is_multiline() -> bool: function has_validation_error (line 169) | def has_validation_error() -> bool: function has_arg (line 175) | def has_arg() -> bool: function is_done (line 181) | def is_done() -> bool: function renderer_height_is_known (line 189) | def renderer_height_is_known() -> bool: function in_editing_mode (line 203) | def in_editing_mode(editing_mode: EditingMode) -> Condition: function in_paste_mode (line 216) | def in_paste_mode() -> bool: function vi_mode (line 221) | def vi_mode() -> bool: function vi_navigation_mode (line 226) | def vi_navigation_mode() -> bool: function vi_insert_mode (line 250) | def vi_insert_mode() -> bool: function vi_insert_multiple_mode (line 269) | def vi_insert_multiple_mode() -> bool: function vi_replace_mode (line 288) | def vi_replace_mode() -> bool: function vi_replace_single_mode (line 307) | def vi_replace_single_mode() -> bool: function vi_selection_mode (line 326) | def vi_selection_mode() -> bool: function vi_waiting_for_text_object_mode (line 335) | def vi_waiting_for_text_object_mode() -> bool: function vi_digraph_mode (line 344) | def vi_digraph_mode() -> bool: function vi_recording_macro (line 353) | def vi_recording_macro() -> bool: function emacs_mode (line 363) | def emacs_mode() -> bool: function emacs_insert_mode (line 369) | def emacs_insert_mode() -> bool: function emacs_selection_mode (line 381) | def emacs_selection_mode() -> bool: function shift_selection_mode (line 389) | def shift_selection_mode() -> bool: function is_searching (line 398) | def is_searching() -> bool: function control_is_searchable (line 405) | def control_is_searchable() -> bool: function vi_search_direction_reversed (line 417) | def vi_search_direction_reversed() -> bool: FILE: src/prompt_toolkit/filters/base.py class Filter (line 9) | class Filter(metaclass=ABCMeta): method __init__ (line 17) | def __init__(self) -> None: method __call__ (line 23) | def __call__(self) -> bool: method __and__ (line 29) | def __and__(self, other: Filter) -> Filter: method __or__ (line 47) | def __or__(self, other: Filter) -> Filter: method __invert__ (line 65) | def __invert__(self) -> Filter: method __bool__ (line 74) | def __bool__(self) -> None: function _remove_duplicates (line 88) | def _remove_duplicates(filters: list[Filter]) -> list[Filter]: class _AndList (line 96) | class _AndList(Filter): method __init__ (line 101) | def __init__(self, filters: list[Filter]) -> None: method create (line 106) | def create(cls, filters: Iterable[Filter]) -> Filter: method __call__ (line 132) | def __call__(self) -> bool: method __repr__ (line 135) | def __repr__(self) -> str: class _OrList (line 139) | class _OrList(Filter): method __init__ (line 144) | def __init__(self, filters: list[Filter]) -> None: method create (line 149) | def create(cls, filters: Iterable[Filter]) -> Filter: method __call__ (line 175) | def __call__(self) -> bool: method __repr__ (line 178) | def __repr__(self) -> str: class _Invert (line 182) | class _Invert(Filter): method __init__ (line 187) | def __init__(self, filter: Filter) -> None: method __call__ (line 191) | def __call__(self) -> bool: method __repr__ (line 194) | def __repr__(self) -> str: class Always (line 198) | class Always(Filter): method __call__ (line 203) | def __call__(self) -> bool: method __or__ (line 206) | def __or__(self, other: Filter) -> Filter: method __and__ (line 209) | def __and__(self, other: Filter) -> Filter: method __invert__ (line 212) | def __invert__(self) -> Never: class Never (line 216) | class Never(Filter): method __call__ (line 221) | def __call__(self) -> bool: method __and__ (line 224) | def __and__(self, other: Filter) -> Filter: method __or__ (line 227) | def __or__(self, other: Filter) -> Filter: method __invert__ (line 230) | def __invert__(self) -> Always: class Condition (line 234) | class Condition(Filter): method __init__ (line 248) | def __init__(self, func: Callable[[], bool]) -> None: method __call__ (line 252) | def __call__(self) -> bool: method __repr__ (line 255) | def __repr__(self) -> str: FILE: src/prompt_toolkit/filters/utils.py function to_filter (line 21) | def to_filter(bool_or_filter: FilterOrBool) -> Filter: function is_true (line 35) | def is_true(value: FilterOrBool) -> bool: FILE: src/prompt_toolkit/formatted_text/ansi.py class ANSI (line 17) | class ANSI: method __init__ (line 32) | def __init__(self, value: str) -> None: method _parse_corot (line 54) | def _parse_corot(self) -> Generator[None, str, None]: method _select_graphic_rendition (line 139) | def _select_graphic_rendition(self, attrs: list[int]) -> None: method _create_style_string (line 227) | def _create_style_string(self) -> str: method __repr__ (line 255) | def __repr__(self) -> str: method __pt_formatted_text__ (line 258) | def __pt_formatted_text__(self) -> StyleAndTextTuples: method format (line 261) | def format(self, *args: str, **kwargs: str) -> ANSI: method __mod__ (line 268) | def __mod__(self, value: object) -> ANSI: function ansi_escape (line 290) | def ansi_escape(text: object) -> str: class ANSIFormatter (line 297) | class ANSIFormatter(Formatter): method format_field (line 298) | def format_field(self, value: object, format_spec: str) -> str: FILE: src/prompt_toolkit/formatted_text/base.py class MagicFormattedText (line 37) | class MagicFormattedText(Protocol): method __pt_formatted_text__ (line 43) | def __pt_formatted_text__(self) -> StyleAndTextTuples: ... function to_formatted_text (line 55) | def to_formatted_text( function is_formatted_text (line 107) | def is_formatted_text(value: object) -> TypeGuard[AnyFormattedText]: class FormattedText (line 122) | class FormattedText(StyleAndTextTuples): method __pt_formatted_text__ (line 130) | def __pt_formatted_text__(self) -> StyleAndTextTuples: method __repr__ (line 133) | def __repr__(self) -> str: class Template (line 137) | class Template: method __init__ (line 148) | def __init__(self, text: str) -> None: method format (line 152) | def format(self, *values: AnyFormattedText) -> AnyFormattedText: function merge_formatted_text (line 168) | def merge_formatted_text(items: Iterable[AnyFormattedText]) -> AnyFormat... FILE: src/prompt_toolkit/formatted_text/html.py class HTML (line 12) | class HTML: method __init__ (line 33) | def __init__(self, value: str) -> None: method __repr__ (line 102) | def __repr__(self) -> str: method __pt_formatted_text__ (line 105) | def __pt_formatted_text__(self) -> StyleAndTextTuples: method format (line 108) | def format(self, *args: object, **kwargs: object) -> HTML: method __mod__ (line 115) | def __mod__(self, value: object) -> HTML: class HTMLFormatter (line 126) | class HTMLFormatter(Formatter): method format_field (line 127) | def format_field(self, value: object, format_spec: str) -> str: function html_escape (line 131) | def html_escape(text: object) -> str: FILE: src/prompt_toolkit/formatted_text/pygments.py class PygmentsTokens (line 17) | class PygmentsTokens: method __init__ (line 23) | def __init__(self, token_list: list[tuple[Token, str]]) -> None: method __pt_formatted_text__ (line 26) | def __pt_formatted_text__(self) -> StyleAndTextTuples: FILE: src/prompt_toolkit/formatted_text/utils.py function to_plain_text (line 31) | def to_plain_text(value: AnyFormattedText) -> str: function fragment_list_len (line 38) | def fragment_list_len(fragments: StyleAndTextTuples) -> int: function fragment_list_width (line 49) | def fragment_list_width(fragments: StyleAndTextTuples) -> int: function fragment_list_to_text (line 66) | def fragment_list_to_text(fragments: StyleAndTextTuples) -> str: function split_lines (line 77) | def split_lines( FILE: src/prompt_toolkit/history.py class History (line 30) | class History(metaclass=ABCMeta): method __init__ (line 37) | def __init__(self) -> None: method load (line 49) | async def load(self) -> AsyncGenerator[str, None]: method get_strings (line 67) | def get_strings(self) -> list[str]: method append_string (line 74) | def append_string(self, string: str) -> None: method load_history_strings (line 84) | def load_history_strings(self) -> Iterable[str]: method store_string (line 96) | def store_string(self, string: str) -> None: class ThreadedHistory (line 102) | class ThreadedHistory(History): method __init__ (line 112) | def __init__(self, history: History) -> None: method load (line 127) | async def load(self) -> AsyncGenerator[str, None]: method _in_load_thread (line 184) | def _in_load_thread(self) -> None: method append_string (line 203) | def append_string(self, string: str) -> None: method load_history_strings (line 210) | def load_history_strings(self) -> Iterable[str]: method store_string (line 213) | def store_string(self, string: str) -> None: method __repr__ (line 216) | def __repr__(self) -> str: class InMemoryHistory (line 220) | class InMemoryHistory(History): method __init__ (line 228) | def __init__(self, history_strings: Sequence[str] | None = None) -> None: method load_history_strings (line 236) | def load_history_strings(self) -> Iterable[str]: method store_string (line 239) | def store_string(self, string: str) -> None: class DummyHistory (line 243) | class DummyHistory(History): method load_history_strings (line 248) | def load_history_strings(self) -> Iterable[str]: method store_string (line 251) | def store_string(self, string: str) -> None: method append_string (line 254) | def append_string(self, string: str) -> None: class FileHistory (line 262) | class FileHistory(History): method __init__ (line 267) | def __init__(self, filename: _StrOrBytesPath) -> None: method load_history_strings (line 271) | def load_history_strings(self) -> Iterable[str]: method store_string (line 298) | def store_string(self, string: str) -> None: FILE: src/prompt_toolkit/input/ansi_escape_sequences.py function _get_reverse_ansi_sequences (line 329) | def _get_reverse_ansi_sequences() -> dict[Keys, str]: FILE: src/prompt_toolkit/input/base.py class Input (line 20) | class Input(metaclass=ABCMeta): method fileno (line 30) | def fileno(self) -> int: method typeahead_hash (line 36) | def typeahead_hash(self) -> str: method read_keys (line 42) | def read_keys(self) -> list[KeyPress]: method flush_keys (line 47) | def flush_keys(self) -> list[KeyPress]: method flush (line 54) | def flush(self) -> None: method closed (line 60) | def closed(self) -> bool: method raw_mode (line 65) | def raw_mode(self) -> AbstractContextManager[None]: method cooked_mode (line 71) | def cooked_mode(self) -> AbstractContextManager[None]: method attach (line 77) | def attach( method detach (line 86) | def detach(self) -> AbstractContextManager[None]: method close (line 92) | def close(self) -> None: class PipeInput (line 97) | class PipeInput(Input): method send_bytes (line 103) | def send_bytes(self, data: bytes) -> None: method send_text (line 107) | def send_text(self, data: str) -> None: class DummyInput (line 111) | class DummyInput(Input): method fileno (line 119) | def fileno(self) -> int: method typeahead_hash (line 122) | def typeahead_hash(self) -> str: method read_keys (line 125) | def read_keys(self) -> list[KeyPress]: method closed (line 129) | def closed(self) -> bool: method raw_mode (line 134) | def raw_mode(self) -> AbstractContextManager[None]: method cooked_mode (line 137) | def cooked_mode(self) -> AbstractContextManager[None]: method attach (line 140) | def attach( method detach (line 152) | def detach(self) -> AbstractContextManager[None]: function _dummy_context_manager (line 157) | def _dummy_context_manager() -> Generator[None, None, None]: FILE: src/prompt_toolkit/input/defaults.py function create_input (line 16) | def create_input(stdin: TextIO | None = None, always_prefer_tty: bool = ... function create_pipe_input (line 60) | def create_pipe_input() -> AbstractContextManager[PipeInput]: FILE: src/prompt_toolkit/input/posix_pipe.py class _Pipe (line 21) | class _Pipe: method __init__ (line 24) | def __init__(self) -> None: method close_read (line 29) | def close_read(self) -> None: method close_write (line 37) | def close_write(self) -> None: method close (line 45) | def close(self) -> None: class PosixPipeInput (line 51) | class PosixPipeInput(Vt100Input, PipeInput): method __init__ (line 65) | def __init__(self, _pipe: _Pipe, _text: str = "") -> None: method create (line 87) | def create(cls, text: str = "") -> Iterator[PosixPipeInput]: method send_bytes (line 94) | def send_bytes(self, data: bytes) -> None: method send_text (line 97) | def send_text(self, data: str) -> None: method raw_mode (line 101) | def raw_mode(self) -> AbstractContextManager[None]: method cooked_mode (line 104) | def cooked_mode(self) -> AbstractContextManager[None]: method close (line 107) | def close(self) -> None: method typeahead_hash (line 115) | def typeahead_hash(self) -> str: FILE: src/prompt_toolkit/input/posix_utils.py class PosixStdinReader (line 12) | class PosixStdinReader: method __init__ (line 38) | def __init__( method read (line 53) | def read(self, count: int = 1024) -> str: FILE: src/prompt_toolkit/input/typeahead.py function store_typeahead (line 51) | def store_typeahead(input_obj: Input, key_presses: list[KeyPress]) -> None: function get_typeahead (line 60) | def get_typeahead(input_obj: Input) -> list[KeyPress]: function clear_typeahead (line 72) | def clear_typeahead(input_obj: Input) -> None: FILE: src/prompt_toolkit/input/vt100.py class Vt100Input (line 28) | class Vt100Input(Input): method __init__ (line 38) | def __init__(self, stdin: TextIO) -> None: method attach (line 79) | def attach( method detach (line 88) | def detach(self) -> AbstractContextManager[None]: method read_keys (line 95) | def read_keys(self) -> list[KeyPress]: method flush_keys (line 108) | def flush_keys(self) -> list[KeyPress]: method closed (line 123) | def closed(self) -> bool: method raw_mode (line 126) | def raw_mode(self) -> AbstractContextManager[None]: method cooked_mode (line 129) | def cooked_mode(self) -> AbstractContextManager[None]: method fileno (line 132) | def fileno(self) -> int: method typeahead_hash (line 135) | def typeahead_hash(self) -> str: function _attached_input (line 145) | def _attached_input( function _detached_input (line 195) | def _detached_input(input: Vt100Input) -> Generator[None, None, None]: class raw_mode (line 212) | class raw_mode: method __init__ (line 236) | def __init__(self, fileno: int) -> None: method __enter__ (line 245) | def __enter__(self) -> None: method _patch_lflag (line 265) | def _patch_lflag(cls, attrs: int) -> int: method _patch_iflag (line 269) | def _patch_iflag(cls, attrs: int) -> int: method __exit__ (line 283) | def __exit__(self, *a: object) -> None: class cooked_mode (line 294) | class cooked_mode(raw_mode): method _patch_lflag (line 304) | def _patch_lflag(cls, attrs: int) -> int: method _patch_iflag (line 308) | def _patch_iflag(cls, attrs: int) -> int: FILE: src/prompt_toolkit/input/vt100_parser.py class _Flush (line 36) | class _Flush: class _IsPrefixOfLongerMatchCache (line 42) | class _IsPrefixOfLongerMatchCache(dict[str, bool]): method __missing__ (line 48) | def __missing__(self, prefix: str) -> bool: class Vt100Parser (line 70) | class Vt100Parser: method __init__ (line 89) | def __init__(self, feed_key_callback: Callable[[KeyPress], None]) -> N... method reset (line 93) | def reset(self, request: bool = False) -> None: method _start_parser (line 97) | def _start_parser(self) -> None: method _get_match (line 104) | def _get_match(self, prefix: str) -> None | Keys | tuple[Keys, ...]: method _input_parser_generator (line 123) | def _input_parser_generator(self) -> Generator[None, str | _Flush, None]: method _call_handler (line 173) | def _call_handler( method feed (line 193) | def feed(self, data: str) -> None: method flush (line 231) | def flush(self) -> None: method feed_and_flush (line 245) | def feed_and_flush(self, data: str) -> None: FILE: src/prompt_toolkit/input/win32.py class _Win32InputBase (line 61) | class _Win32InputBase(Input): method __init__ (line 66) | def __init__(self) -> None: method handle (line 71) | def handle(self) -> HANDLE: class Win32Input (line 75) | class Win32Input(_Win32InputBase): method __init__ (line 80) | def __init__(self, stdin: TextIO | None = None) -> None: method attach (line 91) | def attach( method detach (line 100) | def detach(self) -> AbstractContextManager[None]: method read_keys (line 107) | def read_keys(self) -> list[KeyPress]: method flush_keys (line 110) | def flush_keys(self) -> list[KeyPress]: method closed (line 114) | def closed(self) -> bool: method raw_mode (line 117) | def raw_mode(self) -> AbstractContextManager[None]: method cooked_mode (line 122) | def cooked_mode(self) -> AbstractContextManager[None]: method fileno (line 125) | def fileno(self) -> int: method typeahead_hash (line 132) | def typeahead_hash(self) -> str: method close (line 135) | def close(self) -> None: method handle (line 139) | def handle(self) -> HANDLE: class ConsoleInputReader (line 143) | class ConsoleInputReader: method __init__ (line 221) | def __init__(self, recognize_paste: bool = True) -> None: method close (line 234) | def close(self) -> None: method read (line 239) | def read(self) -> Iterable[KeyPress]: method flush_keys (line 301) | def flush_keys(self) -> list[KeyPress]: method _insert_key_data (line 305) | def _insert_key_data(self, key_press: KeyPress) -> KeyPress: method _get_keys (line 319) | def _get_keys( method _merge_paired_surrogates (line 344) | def _merge_paired_surrogates(key_presses: list[KeyPress]) -> Iterator[... method _is_paste (line 377) | def _is_paste(keys: list[KeyPress]) -> bool: method _event_to_key_presses (line 398) | def _event_to_key_presses(self, ev: KEY_EVENT_RECORD) -> list[KeyPress]: method _handle_mouse (line 530) | def _handle_mouse(self, ev: MOUSE_EVENT_RECORD) -> list[KeyPress]: class Vt100ConsoleInputReader (line 578) | class Vt100ConsoleInputReader: method __init__ (line 591) | def __init__(self) -> None: method close (line 608) | def close(self) -> None: method read (line 613) | def read(self) -> Iterable[KeyPress]: method flush_keys (line 650) | def flush_keys(self) -> list[KeyPress]: method _get_keys (line 664) | def _get_keys( class _Win32Handles (line 688) | class _Win32Handles: method __init__ (line 704) | def __init__(self) -> None: method add_win32_handle (line 711) | def add_win32_handle(self, handle: HANDLE, callback: Callable[[], None... method remove_win32_handle (line 754) | def remove_win32_handle(self, handle: HANDLE) -> Callable[[], None] | ... function attach_win32_input (line 777) | def attach_win32_input( function detach_win32_input (line 806) | def detach_win32_input(input: _Win32InputBase) -> Iterator[None]: class raw_mode (line 822) | class raw_mode: method __init__ (line 833) | def __init__( method __enter__ (line 839) | def __enter__(self) -> None: method _patch (line 847) | def _patch(self) -> None: method __exit__ (line 862) | def __exit__(self, *a: object) -> None: class cooked_mode (line 867) | class cooked_mode(raw_mode): method _patch (line 875) | def _patch(self) -> None: function _is_win_vt100_input_enabled (line 888) | def _is_win_vt100_input_enabled() -> bool: FILE: src/prompt_toolkit/input/win32_pipe.py class Win32PipeInput (line 23) | class Win32PipeInput(_Win32InputBase, PipeInput): method __init__ (line 41) | def __init__(self, _event: HANDLE) -> None: method create (line 62) | def create(cls) -> Iterator[Win32PipeInput]: method closed (line 70) | def closed(self) -> bool: method fileno (line 73) | def fileno(self) -> int: method handle (line 80) | def handle(self) -> HANDLE: method attach (line 84) | def attach( method detach (line 93) | def detach(self) -> AbstractContextManager[None]: method read_keys (line 100) | def read_keys(self) -> list[KeyPress]: method flush_keys (line 114) | def flush_keys(self) -> list[KeyPress]: method send_bytes (line 128) | def send_bytes(self, data: bytes) -> None: method send_text (line 132) | def send_text(self, text: str) -> None: method raw_mode (line 143) | def raw_mode(self) -> AbstractContextManager[None]: method cooked_mode (line 146) | def cooked_mode(self) -> AbstractContextManager[None]: method close (line 149) | def close(self) -> None: method typeahead_hash (line 154) | def typeahead_hash(self) -> str: FILE: src/prompt_toolkit/key_binding/bindings/auto_suggest.py function load_auto_suggest_bindings (line 21) | def load_auto_suggest_bindings() -> KeyBindings: FILE: src/prompt_toolkit/key_binding/bindings/basic.py function if_no_repeat (line 26) | def if_no_repeat(event: E) -> bool: function has_text_before_cursor (line 33) | def has_text_before_cursor() -> bool: function in_quoted_insert (line 38) | def in_quoted_insert() -> bool: function load_basic_bindings (line 42) | def load_basic_bindings() -> KeyBindings: FILE: src/prompt_toolkit/key_binding/bindings/completion.py function generate_completions (line 35) | def generate_completions(event: E) -> None: function display_completions_like_readline (line 49) | def display_completions_like_readline(event: E) -> None: function _display_completions_like_readline (line 85) | def _display_completions_like_readline( function _create_more_session (line 177) | def _create_more_session(message: str = "--MORE--") -> PromptSession[bool]: FILE: src/prompt_toolkit/key_binding/bindings/cpr.py function load_cpr_bindings (line 15) | def load_cpr_bindings() -> KeyBindings: FILE: src/prompt_toolkit/key_binding/bindings/emacs.py function is_returnable (line 37) | def is_returnable() -> bool: function is_arg (line 42) | def is_arg() -> bool: function load_emacs_bindings (line 46) | def load_emacs_bindings() -> KeyBindingsBase: function load_emacs_search_bindings (line 344) | def load_emacs_search_bindings() -> KeyBindingsBase: function load_emacs_shift_selection_bindings (line 410) | def load_emacs_shift_selection_bindings() -> KeyBindingsBase: FILE: src/prompt_toolkit/key_binding/bindings/focus.py function focus_next (line 13) | def focus_next(event: E) -> None: function focus_previous (line 21) | def focus_previous(event: E) -> None: FILE: src/prompt_toolkit/key_binding/bindings/mouse.py function load_mouse_bindings (line 184) | def load_mouse_bindings() -> KeyBindings: FILE: src/prompt_toolkit/key_binding/bindings/named_commands.py function register (line 39) | def register(name: str) -> Callable[[_T], _T]: function get_by_name (line 56) | def get_by_name(name: str) -> Binding: function beginning_of_buffer (line 73) | def beginning_of_buffer(event: E) -> None: function end_of_buffer (line 82) | def end_of_buffer(event: E) -> None: function beginning_of_line (line 91) | def beginning_of_line(event: E) -> None: function end_of_line (line 102) | def end_of_line(event: E) -> None: function forward_char (line 111) | def forward_char(event: E) -> None: function backward_char (line 120) | def backward_char(event: E) -> None: function forward_word (line 127) | def forward_word(event: E) -> None: function backward_word (line 140) | def backward_word(event: E) -> None: function clear_screen (line 153) | def clear_screen(event: E) -> None: function redraw_current_line (line 161) | def redraw_current_line(event: E) -> None: function accept_line (line 176) | def accept_line(event: E) -> None: function previous_history (line 184) | def previous_history(event: E) -> None: function next_history (line 192) | def next_history(event: E) -> None: function beginning_of_history (line 200) | def beginning_of_history(event: E) -> None: function end_of_history (line 208) | def end_of_history(event: E) -> None: function reverse_search_history (line 218) | def reverse_search_history(event: E) -> None: function end_of_file (line 236) | def end_of_file(event: E) -> None: function delete_char (line 244) | def delete_char(event: E) -> None: function backward_delete_char (line 254) | def backward_delete_char(event: E) -> None: function self_insert (line 270) | def self_insert(event: E) -> None: function transpose_chars (line 278) | def transpose_chars(event: E) -> None: function uppercase_word (line 297) | def uppercase_word(event: E) -> None: function downcase_word (line 310) | def downcase_word(event: E) -> None: function capitalize_word (line 323) | def capitalize_word(event: E) -> None: function quoted_insert (line 336) | def quoted_insert(event: E) -> None: function kill_line (line 350) | def kill_line(event: E) -> None: function kill_word (line 372) | def kill_word(event: E) -> None: function unix_word_rubout (line 390) | def unix_word_rubout(event: E, WORD: bool = True) -> None: function backward_kill_word (line 419) | def backward_kill_word(event: E) -> None: function delete_horizontal_space (line 428) | def delete_horizontal_space(event: E) -> None: function unix_line_discard (line 444) | def unix_line_discard(event: E) -> None: function yank (line 460) | def yank(event: E) -> None: function yank_nth_arg (line 470) | def yank_nth_arg(event: E) -> None: function yank_last_arg (line 480) | def yank_last_arg(event: E) -> None: function yank_pop (line 490) | def yank_pop(event: E) -> None: function complete (line 511) | def complete(event: E) -> None: function menu_complete (line 519) | def menu_complete(event: E) -> None: function menu_complete_backward (line 528) | def menu_complete_backward(event: E) -> None: function start_kbd_macro (line 541) | def start_kbd_macro(event: E) -> None: function end_kbd_macro (line 549) | def end_kbd_macro(event: E) -> None: function call_last_kbd_macro (line 559) | def call_last_kbd_macro(event: E) -> None: function print_last_kbd_macro (line 577) | def print_last_kbd_macro(event: E) -> None: function undo (line 600) | def undo(event: E) -> None: function insert_comment (line 608) | def insert_comment(event: E) -> None: function vi_editing_mode (line 636) | def vi_editing_mode(event: E) -> None: function emacs_editing_mode (line 644) | def emacs_editing_mode(event: E) -> None: function prefix_meta (line 652) | def prefix_meta(event: E) -> None: function operate_and_get_next (line 666) | def operate_and_get_next(event: E) -> None: function edit_and_execute (line 687) | def edit_and_execute(event: E) -> None: FILE: src/prompt_toolkit/key_binding/bindings/open_in_editor.py function load_open_in_editor_bindings (line 19) | def load_open_in_editor_bindings() -> KeyBindingsBase: function load_emacs_open_in_editor_bindings (line 31) | def load_emacs_open_in_editor_bindings() -> KeyBindings: function load_vi_open_in_editor_bindings (line 44) | def load_vi_open_in_editor_bindings() -> KeyBindings: FILE: src/prompt_toolkit/key_binding/bindings/page_navigation.py function load_page_navigation_bindings (line 34) | def load_page_navigation_bindings() -> KeyBindingsBase: function load_emacs_page_navigation_bindings (line 52) | def load_emacs_page_navigation_bindings() -> KeyBindingsBase: function load_vi_page_navigation_bindings (line 68) | def load_vi_page_navigation_bindings() -> KeyBindingsBase: FILE: src/prompt_toolkit/key_binding/bindings/scroll.py function scroll_forward (line 25) | def scroll_forward(event: E, half: bool = False) -> None: function scroll_backward (line 56) | def scroll_backward(event: E, half: bool = False) -> None: function scroll_half_page_down (line 86) | def scroll_half_page_down(event: E) -> None: function scroll_half_page_up (line 93) | def scroll_half_page_up(event: E) -> None: function scroll_one_line_down (line 100) | def scroll_one_line_down(event: E) -> None: function scroll_one_line_up (line 119) | def scroll_one_line_up(event: E) -> None: function scroll_page_down (line 150) | def scroll_page_down(event: E) -> None: function scroll_page_up (line 168) | def scroll_page_up(event: E) -> None: FILE: src/prompt_toolkit/key_binding/bindings/search.py function abort_search (line 28) | def abort_search(event: E) -> None: function accept_search (line 38) | def accept_search(event: E) -> None: function start_reverse_incremental_search (line 48) | def start_reverse_incremental_search(event: E) -> None: function start_forward_incremental_search (line 57) | def start_forward_incremental_search(event: E) -> None: function reverse_incremental_search (line 66) | def reverse_incremental_search(event: E) -> None: function forward_incremental_search (line 74) | def forward_incremental_search(event: E) -> None: function _previous_buffer_is_returnable (line 82) | def _previous_buffer_is_returnable() -> bool: function accept_search_and_accept_input (line 91) | def accept_search_and_accept_input(event: E) -> None: FILE: src/prompt_toolkit/key_binding/bindings/vi.py class TextObjectType (line 61) | class TextObjectType(Enum): class TextObject (line 68) | class TextObject: method __init__ (line 74) | def __init__( method selection_type (line 82) | def selection_type(self) -> SelectionType: method sorted (line 90) | def sorted(self) -> tuple[int, int]: method operator_range (line 99) | def operator_range(self, document: Document) -> tuple[int, int]: method get_line_numbers (line 131) | def get_line_numbers(self, buffer: Buffer) -> tuple[int, int]: method cut (line 146) | def cut(self, buffer: Buffer) -> tuple[Document, ClipboardData]: function create_text_object_decorator (line 177) | def create_text_object_decorator( function create_operator_decorator (line 300) | def create_operator_decorator( function is_returnable (line 376) | def is_returnable() -> bool: function in_block_selection (line 381) | def in_block_selection() -> bool: function digraph_symbol_1_given (line 389) | def digraph_symbol_1_given() -> bool: function search_buffer_is_empty (line 394) | def search_buffer_is_empty() -> bool: function tilde_operator (line 400) | def tilde_operator() -> bool: function load_vi_bindings (line 404) | def load_vi_bindings() -> KeyBindingsBase: function load_vi_search_bindings (line 2193) | def load_vi_search_bindings() -> KeyBindingsBase: FILE: src/prompt_toolkit/key_binding/defaults.py function load_key_bindings (line 34) | def load_key_bindings() -> KeyBindingsBase: FILE: src/prompt_toolkit/key_binding/emacs_state.py class EmacsState (line 10) | class EmacsState: method __init__ (line 15) | def __init__(self) -> None: method reset (line 21) | def reset(self) -> None: method is_recording (line 25) | def is_recording(self) -> bool: method start_macro (line 29) | def start_macro(self) -> None: method end_macro (line 33) | def end_macro(self) -> None: FILE: src/prompt_toolkit/key_binding/key_bindings.py class Binding (line 95) | class Binding: method __init__ (line 104) | def __init__( method call (line 122) | def call(self, event: KeyPressEvent) -> None: method __repr__ (line 139) | def __repr__(self) -> str: class KeyBindingsBase (line 149) | class KeyBindingsBase(metaclass=ABCMeta): method _version (line 156) | def _version(self) -> Hashable: method get_bindings_for_keys (line 164) | def get_bindings_for_keys(self, keys: KeysTuple) -> list[Binding]: method get_bindings_starting_with_keys (line 175) | def get_bindings_starting_with_keys(self, keys: KeysTuple) -> list[Bin... method bindings (line 188) | def bindings(self) -> list[Binding]: class KeyBindings (line 202) | class KeyBindings(KeyBindingsBase): method __init__ (line 224) | def __init__(self) -> None: method _clear_cache (line 234) | def _clear_cache(self) -> None: method bindings (line 240) | def bindings(self) -> list[Binding]: method _version (line 244) | def _version(self) -> Hashable: method add (line 247) | def add( method remove (line 319) | def remove(self, *args: Keys | str | KeyHandlerCallable) -> None: method get_bindings_for_keys (line 367) | def get_bindings_for_keys(self, keys: KeysTuple) -> list[Binding]: method get_bindings_starting_with_keys (line 402) | def get_bindings_starting_with_keys(self, keys: KeysTuple) -> list[Bin... function _parse_key (line 428) | def _parse_key(key: Keys | str) -> str | Keys: function key_binding (line 456) | def key_binding( class _Proxy (line 490) | class _Proxy(KeyBindingsBase): method __init__ (line 495) | def __init__(self) -> None: method _update_cache (line 500) | def _update_cache(self) -> None: method bindings (line 510) | def bindings(self) -> list[Binding]: method _version (line 515) | def _version(self) -> Hashable: method get_bindings_for_keys (line 519) | def get_bindings_for_keys(self, keys: KeysTuple) -> list[Binding]: method get_bindings_starting_with_keys (line 523) | def get_bindings_starting_with_keys(self, keys: KeysTuple) -> list[Bin... class ConditionalKeyBindings (line 528) | class ConditionalKeyBindings(_Proxy): method __init__ (line 546) | def __init__( method _update_cache (line 554) | def _update_cache(self) -> None: class _MergedKeyBindings (line 579) | class _MergedKeyBindings(_Proxy): method __init__ (line 589) | def __init__(self, registries: Sequence[KeyBindingsBase]) -> None: method _update_cache (line 593) | def _update_cache(self) -> None: function merge_key_bindings (line 610) | def merge_key_bindings(bindings: Sequence[KeyBindingsBase]) -> _MergedKe... class DynamicKeyBindings (line 621) | class DynamicKeyBindings(_Proxy): method __init__ (line 628) | def __init__(self, get_key_bindings: Callable[[], KeyBindingsBase | No... method _update_cache (line 634) | def _update_cache(self) -> None: class GlobalOnlyKeyBindings (line 643) | class GlobalOnlyKeyBindings(_Proxy): method __init__ (line 649) | def __init__(self, key_bindings: KeyBindingsBase) -> None: method _update_cache (line 653) | def _update_cache(self) -> None: FILE: src/prompt_toolkit/key_binding/key_processor.py class KeyPress (line 37) | class KeyPress: method __init__ (line 43) | def __init__(self, key: Keys | str, data: str | None = None) -> None: method __repr__ (line 55) | def __repr__(self) -> str: method __eq__ (line 58) | def __eq__(self, other: object) -> bool: class KeyProcessor (line 71) | class KeyProcessor: method __init__ (line 93) | def __init__(self, key_bindings: KeyBindingsBase) -> None: method reset (line 103) | def reset(self) -> None: method _get_matches (line 122) | def _get_matches(self, key_presses: list[KeyPress]) -> list[Binding]: method _is_prefix_of_longer_match (line 132) | def _is_prefix_of_longer_match(self, key_presses: list[KeyPress]) -> b... method _process (line 150) | def _process(self) -> Generator[None, KeyPress, None]: method feed (line 209) | def feed(self, key_press: KeyPress, first: bool = False) -> None: method feed_multiple (line 221) | def feed_multiple(self, key_presses: list[KeyPress], first: bool = Fal... method process_keys (line 230) | def process_keys(self) -> None: method empty_queue (line 289) | def empty_queue(self) -> list[KeyPress]: method _call_handler (line 300) | def _call_handler(self, handler: Binding, key_sequence: list[KeyPress]... method _fix_vi_cursor_position (line 351) | def _fix_vi_cursor_position(self, event: KeyPressEvent) -> None: method _leave_vi_temp_navigation_mode (line 372) | def _leave_vi_temp_navigation_mode(self, event: KeyPressEvent) -> None: method _start_timeout (line 384) | def _start_timeout(self) -> None: method send_sigint (line 417) | def send_sigint(self) -> None: class KeyPressEvent (line 425) | class KeyPressEvent: method __init__ (line 436) | def __init__( method __repr__ (line 454) | def __repr__(self) -> str: method data (line 458) | def data(self) -> str: method key_processor (line 462) | def key_processor(self) -> KeyProcessor: method app (line 469) | def app(self) -> Application[Any]: method current_buffer (line 476) | def current_buffer(self) -> Buffer: method arg (line 483) | def arg(self) -> int: method arg_present (line 499) | def arg_present(self) -> bool: method append_to_arg_count (line 505) | def append_to_arg_count(self, data: str) -> None: method cli (line 525) | def cli(self) -> Application[Any]: FILE: src/prompt_toolkit/key_binding/vi_state.py class InputMode (line 20) | class InputMode(str, Enum): class CharacterFind (line 30) | class CharacterFind: method __init__ (line 31) | def __init__(self, character: str, backwards: bool = False) -> None: class ViState (line 36) | class ViState: method __init__ (line 41) | def __init__(self) -> None: method input_mode (line 81) | def input_mode(self) -> InputMode: method input_mode (line 86) | def input_mode(self, value: InputMode) -> None: method reset (line 95) | def reset(self) -> None: FILE: src/prompt_toolkit/keys.py class Keys (line 11) | class Keys(str, Enum): FILE: src/prompt_toolkit/layout/containers.py class Container (line 83) | class Container(metaclass=ABCMeta): method reset (line 89) | def reset(self) -> None: method preferred_width (line 96) | def preferred_width(self, max_available_width: int) -> Dimension: method preferred_height (line 103) | def preferred_height(self, width: int, max_available_height: int) -> D... method write_to_screen (line 110) | def write_to_screen( method is_modal (line 131) | def is_modal(self) -> bool: method get_key_bindings (line 138) | def get_key_bindings(self) -> KeyBindingsBase | None: method get_children (line 147) | def get_children(self) -> list[Container]: class MagicContainer (line 156) | class MagicContainer(Protocol): method __pt_container__ (line 161) | def __pt_container__(self) -> AnyContainer: ... function _window_too_small (line 167) | def _window_too_small() -> Window: class VerticalAlign (line 174) | class VerticalAlign(Enum): class HorizontalAlign (line 183) | class HorizontalAlign(Enum): class _Split (line 192) | class _Split(Container): method __init__ (line 197) | def __init__( method is_modal (line 225) | def is_modal(self) -> bool: method get_key_bindings (line 228) | def get_key_bindings(self) -> KeyBindingsBase | None: method get_children (line 231) | def get_children(self) -> list[Container]: class HSplit (line 235) | class HSplit(_Split): method __init__ (line 269) | def __init__( method preferred_width (line 305) | def preferred_width(self, max_available_width: int) -> Dimension: method preferred_height (line 315) | def preferred_height(self, width: int, max_available_height: int) -> D... method reset (line 324) | def reset(self) -> None: method _all_children (line 329) | def _all_children(self) -> list[Container]: method write_to_screen (line 362) | def write_to_screen( method _divide_heights (line 419) | def _divide_heights(self, write_position: WritePosition) -> list[int] ... class VSplit (line 473) | class VSplit(_Split): method __init__ (line 506) | def __init__( method preferred_width (line 542) | def preferred_width(self, max_available_width: int) -> Dimension: method preferred_height (line 552) | def preferred_height(self, width: int, max_available_height: int) -> D... method reset (line 576) | def reset(self) -> None: method _all_children (line 581) | def _all_children(self) -> list[Container]: method _divide_widths (line 614) | def _divide_widths(self, width: int) -> list[int] | None: method write_to_screen (line 665) | def write_to_screen( class FloatContainer (line 736) | class FloatContainer(Container): method __init__ (line 755) | def __init__( method reset (line 772) | def reset(self) -> None: method preferred_width (line 778) | def preferred_width(self, max_available_width: int) -> Dimension: method preferred_height (line 781) | def preferred_height(self, width: int, max_available_height: int) -> D... method write_to_screen (line 789) | def write_to_screen( method _draw_float (line 846) | def _draw_float( method _area_is_empty (line 990) | def _area_is_empty(self, screen: Screen, write_position: WritePosition... method is_modal (line 1008) | def is_modal(self) -> bool: method get_key_bindings (line 1011) | def get_key_bindings(self) -> KeyBindingsBase | None: method get_children (line 1014) | def get_children(self) -> list[Container]: class Float (line 1020) | class Float: method __init__ (line 1046) | def __init__( method get_width (line 1086) | def get_width(self) -> int | None: method get_height (line 1091) | def get_height(self) -> int | None: method __repr__ (line 1096) | def __repr__(self) -> str: class WindowRenderInfo (line 1100) | class WindowRenderInfo: method __init__ (line 1127) | def __init__( method visible_line_to_input_line (line 1158) | def visible_line_to_input_line(self) -> dict[int, int]: method cursor_position (line 1165) | def cursor_position(self) -> Point: method applied_scroll_offsets (line 1181) | def applied_scroll_offsets(self) -> ScrollOffsets: method displayed_lines (line 1209) | def displayed_lines(self) -> list[int]: method input_line_to_visible_line (line 1217) | def input_line_to_visible_line(self) -> dict[int, int]: method first_visible_line (line 1231) | def first_visible_line(self, after_scroll_offset: bool = False) -> int: method last_visible_line (line 1241) | def last_visible_line(self, before_scroll_offset: bool = False) -> int: method center_visible_line (line 1250) | def center_visible_line( method content_height (line 1266) | def content_height(self) -> int: method full_height_visible (line 1273) | def full_height_visible(self) -> bool: method top_visible (line 1283) | def top_visible(self) -> bool: method bottom_visible (line 1290) | def bottom_visible(self) -> bool: method vertical_scroll_percentage (line 1297) | def vertical_scroll_percentage(self) -> int: method get_height_for_line (line 1307) | def get_height_for_line(self, lineno: int) -> int: class ScrollOffsets (line 1320) | class ScrollOffsets: method __init__ (line 1327) | def __init__( method top (line 1340) | def top(self) -> int: method bottom (line 1344) | def bottom(self) -> int: method left (line 1348) | def left(self) -> int: method right (line 1352) | def right(self) -> int: method __repr__ (line 1355) | def __repr__(self) -> str: class ColorColumn (line 1359) | class ColorColumn: method __init__ (line 1364) | def __init__(self, position: int, style: str = "class:color-column") -... class WindowAlign (line 1372) | class WindowAlign(Enum): class Window (line 1386) | class Window(Container): method __init__ (line 1448) | def __init__( method __repr__ (line 1512) | def __repr__(self) -> str: method reset (line 1515) | def reset(self) -> None: method _get_margin_width (line 1531) | def _get_margin_width(self, margin: Margin) -> int: method _get_total_margin_width (line 1547) | def _get_total_margin_width(self) -> int: method preferred_width (line 1555) | def preferred_width(self, max_available_width: int) -> Dimension: method preferred_height (line 1586) | def preferred_height(self, width: int, max_available_height: int) -> D... method _merge_dimensions (line 1614) | def _merge_dimensions( method _get_ui_content (line 1662) | def _get_ui_content(self, width: int, height: int) -> UIContent: method _get_digraph_char (line 1673) | def _get_digraph_char(self) -> str | None: method write_to_screen (line 1684) | def write_to_screen( method _write_to_screen_at_index (line 1741) | def _write_to_screen_at_index( method _copy_body (line 1924) | def _copy_body( method _fill_bg (line 2166) | def _fill_bg( method _apply_style (line 2188) | def _apply_style( method _highlight_digraph (line 2206) | def _highlight_digraph(self, new_screen: Screen) -> None: method _show_key_processor_key_buffer (line 2218) | def _show_key_processor_key_buffer(self, new_screen: Screen) -> None: method _highlight_cursorlines (line 2241) | def _highlight_cursorlines( method _copy_margin (line 2289) | def _copy_margin( method _scroll (line 2306) | def _scroll(self, ui_content: UIContent, width: int, height: int) -> N... method _scroll_when_linewrapping (line 2317) | def _scroll_when_linewrapping( method _scroll_without_linewrapping (line 2438) | def _scroll_without_linewrapping( method _mouse_handler (line 2543) | def _mouse_handler(self, mouse_event: MouseEvent) -> NotImplementedOrN... method _scroll_down (line 2560) | def _scroll_down(self) -> None: method _scroll_up (line 2573) | def _scroll_up(self) -> None: method get_key_bindings (line 2590) | def get_key_bindings(self) -> KeyBindingsBase | None: method get_children (line 2593) | def get_children(self) -> list[Container]: class ConditionalContainer (line 2597) | class ConditionalContainer(Container): method __init__ (line 2607) | def __init__( method __repr__ (line 2621) | def __repr__(self) -> str: method reset (line 2624) | def reset(self) -> None: method preferred_width (line 2627) | def preferred_width(self, max_available_width: int) -> Dimension: method preferred_height (line 2635) | def preferred_height(self, width: int, max_available_height: int) -> D... method write_to_screen (line 2645) | def write_to_screen( method get_children (line 2668) | def get_children(self) -> list[Container]: class DynamicContainer (line 2675) | class DynamicContainer(Container): method __init__ (line 2683) | def __init__(self, get_container: Callable[[], AnyContainer]) -> None: method _get_container (line 2686) | def _get_container(self) -> Container: method reset (line 2696) | def reset(self) -> None: method preferred_width (line 2699) | def preferred_width(self, max_available_width: int) -> Dimension: method preferred_height (line 2702) | def preferred_height(self, width: int, max_available_height: int) -> D... method write_to_screen (line 2705) | def write_to_screen( method is_modal (line 2718) | def is_modal(self) -> bool: method get_key_bindings (line 2721) | def get_key_bindings(self) -> KeyBindingsBase | None: method get_children (line 2726) | def get_children(self) -> list[Container]: function to_container (line 2734) | def to_container(container: AnyContainer) -> Container: function to_window (line 2746) | def to_window(container: AnyContainer) -> Window: function is_container (line 2758) | def is_container(value: object) -> TypeGuard[AnyContainer]: FILE: src/prompt_toolkit/layout/controls.py class UIControl (line 64) | class UIControl(metaclass=ABCMeta): method reset (line 69) | def reset(self) -> None: method preferred_width (line 73) | def preferred_width(self, max_available_width: int) -> int | None: method preferred_height (line 76) | def preferred_height( method is_focusable (line 85) | def is_focusable(self) -> bool: method create_content (line 92) | def create_content(self, width: int, height: int) -> UIContent: method mouse_handler (line 99) | def mouse_handler(self, mouse_event: MouseEvent) -> NotImplementedOrNone: method move_cursor_down (line 111) | def move_cursor_down(self) -> None: method move_cursor_up (line 118) | def move_cursor_up(self) -> None: method get_key_bindings (line 123) | def get_key_bindings(self) -> KeyBindingsBase | None: method get_invalidate_events (line 131) | def get_invalidate_events(self) -> Iterable[Event[object]]: class UIContent (line 140) | class UIContent: method __init__ (line 153) | def __init__( method __getitem__ (line 170) | def __getitem__(self, lineno: int) -> StyleAndTextTuples: method get_height_for_line (line 177) | def get_height_for_line( class FormattedTextControl (line 251) | class FormattedTextControl(UIControl): method __init__ (line 294) | def __init__( method reset (line 324) | def reset(self) -> None: method is_focusable (line 327) | def is_focusable(self) -> bool: method __repr__ (line 330) | def __repr__(self) -> str: method _get_formatted_text_cached (line 333) | def _get_formatted_text_cached(self) -> StyleAndTextTuples: method preferred_width (line 343) | def preferred_width(self, max_available_width: int) -> int: method preferred_height (line 352) | def preferred_height( method create_content (line 373) | def create_content(self, width: int, height: int | None) -> UIContent: method mouse_handler (line 423) | def mouse_handler(self, mouse_event: MouseEvent) -> NotImplementedOrNone: method is_modal (line 462) | def is_modal(self) -> bool: method get_key_bindings (line 465) | def get_key_bindings(self) -> KeyBindingsBase | None: class DummyControl (line 469) | class DummyControl(UIControl): method create_content (line 478) | def create_content(self, width: int, height: int) -> UIContent: method is_focusable (line 484) | def is_focusable(self) -> bool: class _ProcessedLine (line 488) | class _ProcessedLine(NamedTuple): class BufferControl (line 494) | class BufferControl(UIControl): method __init__ (line 514) | def __init__( method __repr__ (line 560) | def __repr__(self) -> str: method search_buffer_control (line 564) | def search_buffer_control(self) -> SearchBufferControl | None: method search_buffer (line 576) | def search_buffer(self) -> Buffer | None: method search_state (line 583) | def search_state(self) -> SearchState: method is_focusable (line 596) | def is_focusable(self) -> bool: method preferred_width (line 599) | def preferred_width(self, max_available_width: int) -> int | None: method preferred_height (line 612) | def preferred_height( method _get_formatted_text_for_line_func (line 642) | def _get_formatted_text_for_line_func( method _create_get_processed_line_func (line 656) | def _create_get_processed_line_func( method create_content (line 720) | def create_content( method mouse_handler (line 825) | def mouse_handler(self, mouse_event: MouseEvent) -> NotImplementedOrNone: method move_cursor_down (line 904) | def move_cursor_down(self) -> None: method move_cursor_up (line 908) | def move_cursor_up(self) -> None: method get_key_bindings (line 912) | def get_key_bindings(self) -> KeyBindingsBase | None: method get_invalidate_events (line 918) | def get_invalidate_events(self) -> Iterable[Event[object]]: class SearchBufferControl (line 930) | class SearchBufferControl(BufferControl): method __init__ (line 938) | def __init__( FILE: src/prompt_toolkit/layout/dimension.py class Dimension (line 25) | class Dimension: method __init__ (line 43) | def __init__( method exact (line 88) | def exact(cls, amount: int) -> Dimension: method zero (line 96) | def zero(cls) -> Dimension: method __repr__ (line 103) | def __repr__(self) -> str: function sum_layout_dimensions (line 117) | def sum_layout_dimensions(dimensions: list[Dimension]) -> Dimension: function max_layout_dimensions (line 128) | def max_layout_dimensions(dimensions: list[Dimension]) -> Dimension: function to_dimension (line 177) | def to_dimension(value: AnyDimension) -> Dimension: function is_dimension (line 193) | def is_dimension(value: object) -> TypeGuard[AnyDimension]: FILE: src/prompt_toolkit/layout/dummy.py function create_dummy_layout (line 24) | def create_dummy_layout() -> Layout: FILE: src/prompt_toolkit/layout/layout.py class Layout (line 29) | class Layout: method __init__ (line 40) | def __init__( method __repr__ (line 74) | def __repr__(self) -> str: method find_all_windows (line 77) | def find_all_windows(self) -> Generator[Window, None, None]: method find_all_controls (line 85) | def find_all_controls(self) -> Iterable[UIControl]: method focus (line 89) | def focus(self, value: FocusableElement) -> None: method has_focus (line 167) | def has_focus(self, value: FocusableElement) -> bool: method current_control (line 193) | def current_control(self) -> UIControl: method current_control (line 200) | def current_control(self, control: UIControl) -> None: method current_window (line 212) | def current_window(self) -> Window: method current_window (line 217) | def current_window(self, value: Window) -> None: method is_searching (line 222) | def is_searching(self) -> bool: method search_target_buffer_control (line 227) | def search_target_buffer_control(self) -> BufferControl | None: method get_focusable_windows (line 240) | def get_focusable_windows(self) -> Iterable[Window]: method get_visible_focusable_windows (line 249) | def get_visible_focusable_windows(self) -> list[Window]: method current_buffer (line 259) | def current_buffer(self) -> Buffer | None: method get_buffer_by_name (line 268) | def get_buffer_by_name(self, buffer_name: str) -> Buffer | None: method buffer_has_focus (line 280) | def buffer_has_focus(self) -> bool: method previous_control (line 290) | def previous_control(self) -> UIControl: method focus_last (line 299) | def focus_last(self) -> None: method focus_next (line 306) | def focus_next(self) -> None: method focus_previous (line 322) | def focus_previous(self) -> None: method walk (line 338) | def walk(self) -> Iterable[Container]: method walk_through_modal_area (line 344) | def walk_through_modal_area(self) -> Iterable[Container]: method update_parents_relations (line 357) | def update_parents_relations(self) -> None: method reset (line 372) | def reset(self) -> None: method get_parent (line 381) | def get_parent(self, container: Container) -> Container | None: class InvalidLayoutError (line 392) | class InvalidLayoutError(Exception): function walk (line 396) | def walk(container: Container, skip_hidden: bool = False) -> Iterable[Co... FILE: src/prompt_toolkit/layout/margins.py class Margin (line 33) | class Margin(metaclass=ABCMeta): method get_width (line 39) | def get_width(self, get_ui_content: Callable[[], UIContent]) -> int: method create_margin (line 50) | def create_margin( class NumberedMargin (line 70) | class NumberedMargin(Margin): method __init__ (line 80) | def __init__( method get_width (line 86) | def get_width(self, get_ui_content: Callable[[], UIContent]) -> int: method create_margin (line 90) | def create_margin( class ConditionalMargin (line 138) | class ConditionalMargin(Margin): method __init__ (line 143) | def __init__(self, margin: Margin, filter: FilterOrBool) -> None: method get_width (line 147) | def get_width(self, get_ui_content: Callable[[], UIContent]) -> int: method create_margin (line 153) | def create_margin( class ScrollbarMargin (line 162) | class ScrollbarMargin(Margin): method __init__ (line 169) | def __init__( method get_width (line 179) | def get_width(self, get_ui_content: Callable[[], UIContent]) -> int: method create_margin (line 182) | def create_margin( class PromptMargin (line 248) | class PromptMargin(Margin): method __init__ (line 270) | def __init__( method get_width (line 279) | def get_width(self, get_ui_content: Callable[[], UIContent]) -> int: method create_margin (line 285) | def create_margin( FILE: src/prompt_toolkit/layout/menus.py class CompletionsMenuControl (line 50) | class CompletionsMenuControl(UIControl): method has_focus (line 65) | def has_focus(self) -> bool: method preferred_width (line 68) | def preferred_width(self, max_available_width: int) -> int | None: method preferred_height (line 78) | def preferred_height( method create_content (line 91) | def create_content(self, width: int, height: int) -> UIContent: method _show_meta (line 128) | def _show_meta(self, complete_state: CompletionState) -> bool: method _get_menu_width (line 134) | def _get_menu_width(self, max_width: int, complete_state: CompletionSt... method _get_menu_meta_width (line 146) | def _get_menu_meta_width( method _get_menu_item_meta_fragments (line 167) | def _get_menu_item_meta_fragments( method mouse_handler (line 183) | def mouse_handler(self, mouse_event: MouseEvent) -> NotImplementedOrNone: function _get_menu_item_fragments (line 205) | def _get_menu_item_fragments( function _trim_formatted_text (line 232) | def _trim_formatted_text( class CompletionsMenu (line 262) | class CompletionsMenu(ConditionalContainer): method __init__ (line 266) | def __init__( class MultiColumnCompletionMenuControl (line 294) | class MultiColumnCompletionMenuControl(UIControl): method __init__ (line 319) | def __init__(self, min_rows: int = 3, suggested_max_column_width: int ... method reset (line 345) | def reset(self) -> None: method has_focus (line 348) | def has_focus(self) -> bool: method preferred_width (line 351) | def preferred_width(self, max_available_width: int) -> int | None: method preferred_height (line 376) | def preferred_height( method create_content (line 395) | def create_content(self, width: int, height: int) -> UIContent: method _get_column_width (line 512) | def _get_column_width(self, completion_state: CompletionState) -> int: method mouse_handler (line 533) | def mouse_handler(self, mouse_event: MouseEvent) -> NotImplementedOrNone: method get_key_bindings (line 577) | def get_key_bindings(self) -> KeyBindings: class MultiColumnCompletionsMenu (line 628) | class MultiColumnCompletionsMenu(HSplit): method __init__ (line 635) | def __init__( class _SelectedCompletionMetaControl (line 684) | class _SelectedCompletionMetaControl(UIControl): method preferred_width (line 689) | def preferred_width(self, max_available_width: int) -> int | None: method preferred_height (line 716) | def preferred_height( method create_content (line 725) | def create_content(self, width: int, height: int) -> UIContent: method _get_text_fragments (line 733) | def _get_text_fragments(self) -> StyleAndTextTuples: FILE: src/prompt_toolkit/layout/mouse_handlers.py class MouseHandlers (line 21) | class MouseHandlers: method __init__ (line 26) | def __init__(self) -> None: method set_mouse_handler_for_range (line 42) | def set_mouse_handler_for_range( FILE: src/prompt_toolkit/layout/processors.py class Processor (line 59) | class Processor(metaclass=ABCMeta): method apply_transformation (line 66) | def apply_transformation( class TransformationInput (line 81) | class TransformationInput: method __init__ (line 95) | def __init__( method unpack (line 115) | def unpack( class Transformation (line 131) | class Transformation: method __init__ (line 146) | def __init__( class DummyProcessor (line 157) | class DummyProcessor(Processor): method apply_transformation (line 162) | def apply_transformation( class HighlightSearchProcessor (line 168) | class HighlightSearchProcessor(Processor): method _get_search_text (line 180) | def _get_search_text(self, buffer_control: BufferControl) -> str: method apply_transformation (line 186) | def apply_transformation( class HighlightIncrementalSearchProcessor (line 242) | class HighlightIncrementalSearchProcessor(HighlightSearchProcessor): method _get_search_text (line 255) | def _get_search_text(self, buffer_control: BufferControl) -> str: class HighlightSelectionProcessor (line 266) | class HighlightSelectionProcessor(Processor): method apply_transformation (line 271) | def apply_transformation( class PasswordProcessor (line 311) | class PasswordProcessor(Processor): method __init__ (line 318) | def __init__(self, char: str = "*") -> None: method apply_transformation (line 321) | def apply_transformation(self, ti: TransformationInput) -> Transformat... class HighlightMatchingBracketProcessor (line 333) | class HighlightMatchingBracketProcessor(Processor): method __init__ (line 347) | def __init__( method _get_positions_to_highlight (line 357) | def _get_positions_to_highlight(self, document: Document) -> list[tupl... method apply_transformation (line 396) | def apply_transformation( class DisplayMultipleCursors (line 437) | class DisplayMultipleCursors(Processor): method apply_transformation (line 442) | def apply_transformation( class BeforeInput (line 486) | class BeforeInput(Processor): method __init__ (line 495) | def __init__(self, text: AnyFormattedText, style: str = "") -> None: method apply_transformation (line 499) | def apply_transformation(self, ti: TransformationInput) -> Transformat... method __repr__ (line 522) | def __repr__(self) -> str: class ShowArg (line 526) | class ShowArg(BeforeInput): method __init__ (line 534) | def __init__(self) -> None: method _get_text_fragments (line 537) | def _get_text_fragments(self) -> StyleAndTextTuples: method __repr__ (line 550) | def __repr__(self) -> str: class AfterInput (line 554) | class AfterInput(Processor): method __init__ (line 563) | def __init__(self, text: AnyFormattedText, style: str = "") -> None: method apply_transformation (line 567) | def apply_transformation(self, ti: TransformationInput) -> Transformat... method __repr__ (line 576) | def __repr__(self) -> str: class AppendAutoSuggestion (line 580) | class AppendAutoSuggestion(Processor): method __init__ (line 586) | def __init__(self, style: str = "class:auto-suggestion") -> None: method apply_transformation (line 589) | def apply_transformation(self, ti: TransformationInput) -> Transformat... class ShowLeadingWhiteSpaceProcessor (line 604) | class ShowLeadingWhiteSpaceProcessor(Processor): method __init__ (line 611) | def __init__( method apply_transformation (line 625) | def apply_transformation(self, ti: TransformationInput) -> Transformat... class ShowTrailingWhiteSpaceProcessor (line 642) | class ShowTrailingWhiteSpaceProcessor(Processor): method __init__ (line 649) | def __init__( method apply_transformation (line 663) | def apply_transformation(self, ti: TransformationInput) -> Transformat... class TabsProcessor (line 681) | class TabsProcessor(Processor): method __init__ (line 693) | def __init__( method apply_transformation (line 705) | def apply_transformation(self, ti: TransformationInput) -> Transformat... class ReverseSearchProcessor (line 764) | class ReverseSearchProcessor(Processor): method _get_main_buffer (line 780) | def _get_main_buffer(self, buffer_control: BufferControl) -> BufferCon... method _content (line 791) | def _content( method apply_transformation (line 848) | def apply_transformation(self, ti: TransformationInput) -> Transformat... class ConditionalProcessor (line 901) | class ConditionalProcessor(Processor): method __init__ (line 920) | def __init__(self, processor: Processor, filter: FilterOrBool) -> None: method apply_transformation (line 924) | def apply_transformation( method __repr__ (line 933) | def __repr__(self) -> str: class DynamicProcessor (line 937) | class DynamicProcessor(Processor): method __init__ (line 944) | def __init__(self, get_processor: Callable[[], Processor | None]) -> N... method apply_transformation (line 947) | def apply_transformation(self, ti: TransformationInput) -> Transformat... function merge_processors (line 952) | def merge_processors(processors: list[Processor]) -> Processor: class _MergedProcessor (line 965) | class _MergedProcessor(Processor): method __init__ (line 971) | def __init__(self, processors: list[Processor]): method apply_transformation (line 974) | def apply_transformation(self, ti: TransformationInput) -> Transformat... FILE: src/prompt_toolkit/layout/screen.py class Char (line 21) | class Char: method __init__ (line 109) | def __init__(self, char: str = " ", style: str = "") -> None: method _equal (line 129) | def _equal(self, other: Char) -> bool: method _not_equal (line 132) | def _not_equal(self, other: Char) -> bool: method __repr__ (line 141) | def __repr__(self) -> str: class Screen (line 151) | class Screen: method __init__ (line 156) | def __init__( method visible_windows (line 205) | def visible_windows(self) -> list[Window]: method set_cursor_position (line 208) | def set_cursor_position(self, window: Window, position: Point) -> None: method set_menu_position (line 214) | def set_menu_position(self, window: Window, position: Point) -> None: method get_cursor_position (line 220) | def get_cursor_position(self, window: Window) -> Point: method get_menu_position (line 230) | def get_menu_position(self, window: Window) -> Point: method draw_with_z_index (line 243) | def draw_with_z_index(self, z_index: int, draw_func: Callable[[], None... method draw_all_floats (line 250) | def draw_all_floats(self) -> None: method append_style_to_content (line 265) | def append_style_to_content(self, style_str: str) -> None: method fill_area (line 279) | def fill_area( class WritePosition (line 312) | class WritePosition: method __init__ (line 313) | def __init__(self, xpos: int, ypos: int, width: int, height: int) -> N... method __repr__ (line 323) | def __repr__(self) -> str: FILE: src/prompt_toolkit/layout/scrollable_pane.py class ScrollablePane (line 19) | class ScrollablePane(Container): method __init__ (line 52) | def __init__( method __repr__ (line 80) | def __repr__(self) -> str: method reset (line 83) | def reset(self) -> None: method preferred_width (line 86) | def preferred_width(self, max_available_width: int) -> Dimension: method preferred_height (line 100) | def preferred_height(self, width: int, max_available_height: int) -> D... method write_to_screen (line 115) | def write_to_screen( method _clip_point_to_visible_area (line 234) | def _clip_point_to_visible_area( method _copy_over_screen (line 251) | def _copy_over_screen( method _copy_over_mouse_handlers (line 278) | def _copy_over_mouse_handlers( method _copy_over_write_positions (line 329) | def _copy_over_write_positions( method is_modal (line 348) | def is_modal(self) -> bool: method get_key_bindings (line 351) | def get_key_bindings(self) -> KeyBindingsBase | None: method get_children (line 354) | def get_children(self) -> list[Container]: method _make_window_visible (line 357) | def _make_window_visible( method _draw_scrollbar (line 423) | def _draw_scrollbar( FILE: src/prompt_toolkit/layout/utils.py class _ExplodedList (line 18) | class _ExplodedList(list[_T]): method append (line 28) | def append(self, item: _T) -> None: method extend (line 31) | def extend(self, lst: Iterable[_T]) -> None: method insert (line 34) | def insert(self, index: SupportsIndex, item: _T) -> None: method __setitem__ (line 40) | def __setitem__(self, index: SupportsIndex, value: _T) -> None: ... method __setitem__ (line 43) | def __setitem__(self, index: slice, value: Iterable[_T]) -> None: ... method __setitem__ (line 45) | def __setitem__( function explode_text_fragments (line 61) | def explode_text_fragments(fragments: Iterable[_T]) -> _ExplodedList[_T]: FILE: src/prompt_toolkit/lexers/base.py class Lexer (line 20) | class Lexer(metaclass=ABCMeta): method lex_document (line 26) | def lex_document(self, document: Document) -> Callable[[int], StyleAnd... method invalidation_hash (line 36) | def invalidation_hash(self) -> Hashable: class SimpleLexer (line 44) | class SimpleLexer(Lexer): method __init__ (line 52) | def __init__(self, style: str = "") -> None: method lex_document (line 55) | def lex_document(self, document: Document) -> Callable[[int], StyleAnd... class DynamicLexer (line 68) | class DynamicLexer(Lexer): method __init__ (line 75) | def __init__(self, get_lexer: Callable[[], Lexer | None]) -> None: method lex_document (line 79) | def lex_document(self, document: Document) -> Callable[[int], StyleAnd... method invalidation_hash (line 83) | def invalidation_hash(self) -> Hashable: FILE: src/prompt_toolkit/lexers/pygments.py class SyntaxSync (line 34) | class SyntaxSync(metaclass=ABCMeta): method get_sync_start_position (line 43) | def get_sync_start_position( class SyncFromStart (line 56) | class SyncFromStart(SyntaxSync): method get_sync_start_position (line 61) | def get_sync_start_position( class RegexSync (line 67) | class RegexSync(SyntaxSync): method __init__ (line 80) | def __init__(self, pattern: str) -> None: method get_sync_start_position (line 83) | def get_sync_start_position( method from_pygments_lexer_cls (line 108) | def from_pygments_lexer_cls(cls, lexer_cls: type[PygmentsLexerCls]) ->... class _TokenCache (line 127) | class _TokenCache(dict[tuple[str, ...], str]): method __missing__ (line 135) | def __missing__(self, key: tuple[str, ...]) -> str: class PygmentsLexer (line 144) | class PygmentsLexer(Lexer): method __init__ (line 181) | def __init__( method from_filename (line 201) | def from_filename( method lex_document (line 218) | def lex_document(self, document: Document) -> Callable[[int], StyleAnd... FILE: src/prompt_toolkit/mouse_events.py class MouseEventType (line 28) | class MouseEventType(Enum): class MouseButton (line 44) | class MouseButton(Enum): class MouseModifier (line 58) | class MouseModifier(Enum): class MouseEvent (line 64) | class MouseEvent: method __init__ (line 72) | def __init__( method __repr__ (line 84) | def __repr__(self) -> str: FILE: src/prompt_toolkit/output/base.py class Output (line 22) | class Output(metaclass=ABCMeta): method fileno (line 35) | def fileno(self) -> int: method encoding (line 39) | def encoding(self) -> str: method write (line 48) | def write(self, data: str) -> None: method write_raw (line 52) | def write_raw(self, data: str) -> None: method set_title (line 56) | def set_title(self, title: str) -> None: method clear_title (line 60) | def clear_title(self) -> None: method flush (line 64) | def flush(self) -> None: method erase_screen (line 68) | def erase_screen(self) -> None: method enter_alternate_screen (line 75) | def enter_alternate_screen(self) -> None: method quit_alternate_screen (line 79) | def quit_alternate_screen(self) -> None: method enable_mouse_support (line 83) | def enable_mouse_support(self) -> None: method disable_mouse_support (line 87) | def disable_mouse_support(self) -> None: method erase_end_of_line (line 91) | def erase_end_of_line(self) -> None: method erase_down (line 97) | def erase_down(self) -> None: method reset_attributes (line 104) | def reset_attributes(self) -> None: method set_attributes (line 108) | def set_attributes(self, attrs: Attrs, color_depth: ColorDepth) -> None: method disable_autowrap (line 112) | def disable_autowrap(self) -> None: method enable_autowrap (line 116) | def enable_autowrap(self) -> None: method cursor_goto (line 120) | def cursor_goto(self, row: int = 0, column: int = 0) -> None: method cursor_up (line 124) | def cursor_up(self, amount: int) -> None: method cursor_down (line 128) | def cursor_down(self, amount: int) -> None: method cursor_forward (line 132) | def cursor_forward(self, amount: int) -> None: method cursor_backward (line 136) | def cursor_backward(self, amount: int) -> None: method hide_cursor (line 140) | def hide_cursor(self) -> None: method show_cursor (line 144) | def show_cursor(self) -> None: method set_cursor_shape (line 148) | def set_cursor_shape(self, cursor_shape: CursorShape) -> None: method reset_cursor_shape (line 152) | def reset_cursor_shape(self) -> None: method ask_for_cpr (line 155) | def ask_for_cpr(self) -> None: method responds_to_cpr (line 162) | def responds_to_cpr(self) -> bool: method get_size (line 178) | def get_size(self) -> Size: method bell (line 181) | def bell(self) -> None: method enable_bracketed_paste (line 184) | def enable_bracketed_paste(self) -> None: method disable_bracketed_paste (line 187) | def disable_bracketed_paste(self) -> None: method reset_cursor_key_mode (line 190) | def reset_cursor_key_mode(self) -> None: method scroll_buffer_to_prompt (line 198) | def scroll_buffer_to_prompt(self) -> None: method get_rows_below_cursor_position (line 201) | def get_rows_below_cursor_position(self) -> int: method get_default_color_depth (line 206) | def get_default_color_depth(self) -> ColorDepth: class DummyOutput (line 223) | class DummyOutput(Output): method fileno (line 228) | def fileno(self) -> int: method encoding (line 232) | def encoding(self) -> str: method write (line 235) | def write(self, data: str) -> None: method write_raw (line 238) | def write_raw(self, data: str) -> None: method set_title (line 241) | def set_title(self, title: str) -> None: method clear_title (line 244) | def clear_title(self) -> None: method flush (line 247) | def flush(self) -> None: method erase_screen (line 250) | def erase_screen(self) -> None: method enter_alternate_screen (line 253) | def enter_alternate_screen(self) -> None: method quit_alternate_screen (line 256) | def quit_alternate_screen(self) -> None: method enable_mouse_support (line 259) | def enable_mouse_support(self) -> None: method disable_mouse_support (line 262) | def disable_mouse_support(self) -> None: method erase_end_of_line (line 265) | def erase_end_of_line(self) -> None: method erase_down (line 268) | def erase_down(self) -> None: method reset_attributes (line 271) | def reset_attributes(self) -> None: method set_attributes (line 274) | def set_attributes(self, attrs: Attrs, color_depth: ColorDepth) -> None: method disable_autowrap (line 277) | def disable_autowrap(self) -> None: method enable_autowrap (line 280) | def enable_autowrap(self) -> None: method cursor_goto (line 283) | def cursor_goto(self, row: int = 0, column: int = 0) -> None: method cursor_up (line 286) | def cursor_up(self, amount: int) -> None: method cursor_down (line 289) | def cursor_down(self, amount: int) -> None: method cursor_forward (line 292) | def cursor_forward(self, amount: int) -> None: method cursor_backward (line 295) | def cursor_backward(self, amount: int) -> None: method hide_cursor (line 298) | def hide_cursor(self) -> None: method show_cursor (line 301) | def show_cursor(self) -> None: method set_cursor_shape (line 304) | def set_cursor_shape(self, cursor_shape: CursorShape) -> None: method reset_cursor_shape (line 307) | def reset_cursor_shape(self) -> None: method ask_for_cpr (line 310) | def ask_for_cpr(self) -> None: method bell (line 313) | def bell(self) -> None: method enable_bracketed_paste (line 316) | def enable_bracketed_paste(self) -> None: method disable_bracketed_paste (line 319) | def disable_bracketed_paste(self) -> None: method scroll_buffer_to_prompt (line 322) | def scroll_buffer_to_prompt(self) -> None: method get_size (line 325) | def get_size(self) -> Size: method get_rows_below_cursor_position (line 328) | def get_rows_below_cursor_position(self) -> int: method get_default_color_depth (line 331) | def get_default_color_depth(self) -> ColorDepth: FILE: src/prompt_toolkit/output/color_depth.py class ColorDepth (line 11) | class ColorDepth(str, Enum): method from_env (line 37) | def from_env(cls) -> ColorDepth | None: method default (line 58) | def default(cls) -> ColorDepth: FILE: src/prompt_toolkit/output/conemu.py class ConEmuOutput (line 21) | class ConEmuOutput: method __init__ (line 37) | def __init__( method responds_to_cpr (line 46) | def responds_to_cpr(self) -> bool: method __getattr__ (line 49) | def __getattr__(self, name: str) -> Any: FILE: src/prompt_toolkit/output/defaults.py function create_output (line 25) | def create_output( FILE: src/prompt_toolkit/output/flush_stdout.py function flush_stdout (line 13) | def flush_stdout(stdout: TextIO, data: str) -> None: function _blocking_io (line 58) | def _blocking_io(io: IO[str]) -> Iterator[None]: FILE: src/prompt_toolkit/output/plain_text.py class PlainTextOutput (line 16) | class PlainTextOutput(Output): method __init__ (line 28) | def __init__(self, stdout: TextIO) -> None: method fileno (line 34) | def fileno(self) -> int: method encoding (line 38) | def encoding(self) -> str: method write (line 41) | def write(self, data: str) -> None: method write_raw (line 44) | def write_raw(self, data: str) -> None: method set_title (line 47) | def set_title(self, title: str) -> None: method clear_title (line 50) | def clear_title(self) -> None: method flush (line 53) | def flush(self) -> None: method erase_screen (line 61) | def erase_screen(self) -> None: method enter_alternate_screen (line 64) | def enter_alternate_screen(self) -> None: method quit_alternate_screen (line 67) | def quit_alternate_screen(self) -> None: method enable_mouse_support (line 70) | def enable_mouse_support(self) -> None: method disable_mouse_support (line 73) | def disable_mouse_support(self) -> None: method erase_end_of_line (line 76) | def erase_end_of_line(self) -> None: method erase_down (line 79) | def erase_down(self) -> None: method reset_attributes (line 82) | def reset_attributes(self) -> None: method set_attributes (line 85) | def set_attributes(self, attrs: Attrs, color_depth: ColorDepth) -> None: method disable_autowrap (line 88) | def disable_autowrap(self) -> None: method enable_autowrap (line 91) | def enable_autowrap(self) -> None: method cursor_goto (line 94) | def cursor_goto(self, row: int = 0, column: int = 0) -> None: method cursor_up (line 97) | def cursor_up(self, amount: int) -> None: method cursor_down (line 100) | def cursor_down(self, amount: int) -> None: method cursor_forward (line 103) | def cursor_forward(self, amount: int) -> None: method cursor_backward (line 106) | def cursor_backward(self, amount: int) -> None: method hide_cursor (line 109) | def hide_cursor(self) -> None: method show_cursor (line 112) | def show_cursor(self) -> None: method set_cursor_shape (line 115) | def set_cursor_shape(self, cursor_shape: CursorShape) -> None: method reset_cursor_shape (line 118) | def reset_cursor_shape(self) -> None: method ask_for_cpr (line 121) | def ask_for_cpr(self) -> None: method bell (line 124) | def bell(self) -> None: method enable_bracketed_paste (line 127) | def enable_bracketed_paste(self) -> None: method disable_bracketed_paste (line 130) | def disable_bracketed_paste(self) -> None: method scroll_buffer_to_prompt (line 133) | def scroll_buffer_to_prompt(self) -> None: method get_size (line 136) | def get_size(self) -> Size: method get_rows_below_cursor_position (line 139) | def get_rows_below_cursor_position(self) -> int: method get_default_color_depth (line 142) | def get_default_color_depth(self) -> ColorDepth: FILE: src/prompt_toolkit/output/vt100.py function _get_closest_ansi_color (line 109) | def _get_closest_ansi_color(r: int, g: int, b: int, exclude: Sequence[st... class _16ColorCache (line 146) | class _16ColorCache: method __init__ (line 153) | def __init__(self, bg: bool = False) -> None: method get_code (line 157) | def get_code( method _get (line 172) | def _get( class _256ColorCache (line 187) | class _256ColorCache(dict[tuple[int, int, int], int]): method __init__ (line 192) | def __init__(self) -> None: method __missing__ (line 230) | def __missing__(self, value: tuple[int, int, int]) -> int: class _EscapeCodeCache (line 258) | class _EscapeCodeCache(dict[Attrs, str]): method __init__ (line 267) | def __init__(self, color_depth: ColorDepth) -> None: method __missing__ (line 270) | def __missing__(self, attrs: Attrs) -> str: method _color_name_to_rgb (line 312) | def _color_name_to_rgb(self, color: str) -> tuple[int, int, int]: method _colors_to_code (line 324) | def _colors_to_code(self, fg_color: str, bg_color: str) -> Iterable[str]: function _get_size (line 382) | def _get_size(fileno: int) -> tuple[int, int]: class Vt100_Output (line 393) | class Vt100_Output(Output): method __init__ (line 411) | def __init__( method from_pty (line 449) | def from_pty( method get_size (line 501) | def get_size(self) -> Size: method fileno (line 504) | def fileno(self) -> int: method encoding (line 508) | def encoding(self) -> str: method write_raw (line 512) | def write_raw(self, data: str) -> None: method write (line 518) | def write(self, data: str) -> None: method set_title (line 525) | def set_title(self, title: str) -> None: method clear_title (line 537) | def clear_title(self) -> None: method erase_screen (line 540) | def erase_screen(self) -> None: method enter_alternate_screen (line 547) | def enter_alternate_screen(self) -> None: method quit_alternate_screen (line 550) | def quit_alternate_screen(self) -> None: method enable_mouse_support (line 553) | def enable_mouse_support(self) -> None: method disable_mouse_support (line 568) | def disable_mouse_support(self) -> None: method erase_end_of_line (line 574) | def erase_end_of_line(self) -> None: method erase_down (line 580) | def erase_down(self) -> None: method reset_attributes (line 587) | def reset_attributes(self) -> None: method set_attributes (line 590) | def set_attributes(self, attrs: Attrs, color_depth: ColorDepth) -> None: method disable_autowrap (line 602) | def disable_autowrap(self) -> None: method enable_autowrap (line 605) | def enable_autowrap(self) -> None: method enable_bracketed_paste (line 608) | def enable_bracketed_paste(self) -> None: method disable_bracketed_paste (line 611) | def disable_bracketed_paste(self) -> None: method reset_cursor_key_mode (line 614) | def reset_cursor_key_mode(self) -> None: method cursor_goto (line 622) | def cursor_goto(self, row: int = 0, column: int = 0) -> None: method cursor_up (line 628) | def cursor_up(self, amount: int) -> None: method cursor_down (line 636) | def cursor_down(self, amount: int) -> None: method cursor_forward (line 646) | def cursor_forward(self, amount: int) -> None: method cursor_backward (line 654) | def cursor_backward(self, amount: int) -> None: method hide_cursor (line 662) | def hide_cursor(self) -> None: method show_cursor (line 667) | def show_cursor(self) -> None: method set_cursor_shape (line 672) | def set_cursor_shape(self, cursor_shape: CursorShape) -> None: method reset_cursor_shape (line 688) | def reset_cursor_shape(self) -> None: method flush (line 697) | def flush(self) -> None: method ask_for_cpr (line 709) | def ask_for_cpr(self) -> None: method responds_to_cpr (line 717) | def responds_to_cpr(self) -> bool: method bell (line 733) | def bell(self) -> None: method get_default_color_depth (line 739) | def get_default_color_depth(self) -> ColorDepth: FILE: src/prompt_toolkit/output/win32.py function _coord_byval (line 40) | def _coord_byval(coord: COORD) -> c_long: class NoConsoleScreenBufferError (line 65) | class NoConsoleScreenBufferError(Exception): method __init__ (line 71) | def __init__(self) -> None: class Win32Output (line 91) | class Win32Output(Output): method __init__ (line 97) | def __init__( method fileno (line 122) | def fileno(self) -> int: method encoding (line 126) | def encoding(self) -> str: method write (line 130) | def write(self, data: str) -> None: method write_raw (line 136) | def write_raw(self, data: str) -> None: method get_size (line 140) | def get_size(self) -> Size: method _winapi (line 160) | def _winapi(self, func: Callable[..., _T], *a: object, **kw: object) -... method get_win32_screen_buffer_info (line 186) | def get_win32_screen_buffer_info(self) -> CONSOLE_SCREEN_BUFFER_INFO: method set_title (line 222) | def set_title(self, title: str) -> None: method clear_title (line 228) | def clear_title(self) -> None: method erase_screen (line 231) | def erase_screen(self) -> None: method erase_down (line 239) | def erase_down(self) -> None: method erase_end_of_line (line 248) | def erase_end_of_line(self) -> None: method _erase (line 256) | def _erase(self, start: COORD, length: int) -> None: method reset_attributes (line 279) | def reset_attributes(self) -> None: method set_attributes (line 286) | def set_attributes(self, attrs: Attrs, color_depth: ColorDepth) -> None: method disable_autowrap (line 325) | def disable_autowrap(self) -> None: method enable_autowrap (line 329) | def enable_autowrap(self) -> None: method cursor_goto (line 333) | def cursor_goto(self, row: int = 0, column: int = 0) -> None: method cursor_up (line 339) | def cursor_up(self, amount: int) -> None: method cursor_down (line 346) | def cursor_down(self, amount: int) -> None: method cursor_forward (line 349) | def cursor_forward(self, amount: int) -> None: method cursor_backward (line 358) | def cursor_backward(self, amount: int) -> None: method flush (line 361) | def flush(self) -> None: method get_rows_below_cursor_position (line 391) | def get_rows_below_cursor_position(self) -> int: method scroll_buffer_to_prompt (line 395) | def scroll_buffer_to_prompt(self) -> None: method enter_alternate_screen (line 425) | def enter_alternate_screen(self) -> None: method quit_alternate_screen (line 449) | def quit_alternate_screen(self) -> None: method enable_mouse_support (line 462) | def enable_mouse_support(self) -> None: method disable_mouse_support (line 480) | def disable_mouse_support(self) -> None: method hide_cursor (line 492) | def hide_cursor(self) -> None: method show_cursor (line 495) | def show_cursor(self) -> None: method set_cursor_shape (line 498) | def set_cursor_shape(self, cursor_shape: CursorShape) -> None: method reset_cursor_shape (line 501) | def reset_cursor_shape(self) -> None: method win32_refresh_window (line 505) | def win32_refresh_window(cls) -> None: method get_default_color_depth (line 519) | def get_default_color_depth(self) -> ColorDepth: class FOREGROUND_COLOR (line 532) | class FOREGROUND_COLOR: class BACKGROUND_COLOR (line 544) | class BACKGROUND_COLOR: function _create_ansi_color_dict (line 556) | def _create_ansi_color_dict( class ColorLookupTable (line 590) | class ColorLookupTable: method __init__ (line 595) | def __init__(self) -> None: method _build_color_table (line 602) | def _build_color_table() -> list[tuple[int, int, int, int, int]]: method _closest_color (line 628) | def _closest_color(self, r: int, g: int, b: int) -> tuple[int, int]: method _color_indexes (line 646) | def _color_indexes(self, color: str) -> tuple[int, int]: method lookup_fg_color (line 661) | def lookup_fg_color(self, fg_color: str) -> int: method lookup_bg_color (line 674) | def lookup_bg_color(self, bg_color: str) -> int: FILE: src/prompt_toolkit/output/windows10.py class Windows10_Output (line 28) | class Windows10_Output: method __init__ (line 33) | def __init__( method flush (line 43) | def flush(self) -> None: method responds_to_cpr (line 65) | def responds_to_cpr(self) -> bool: method __getattr__ (line 68) | def __getattr__(self, name: str) -> Any: method get_default_color_depth (line 88) | def get_default_color_depth(self) -> ColorDepth: function is_win_vt100_enabled (line 111) | def is_win_vt100_enabled() -> bool: FILE: src/prompt_toolkit/patch_stdout.py function patch_stdout (line 42) | def patch_stdout(raw: bool = False) -> Generator[None, None, None]: class _Done (line 77) | class _Done: class StdoutProxy (line 81) | class StdoutProxy: method __init__ (line 99) | def __init__( method __enter__ (line 126) | def __enter__(self) -> StdoutProxy: method __exit__ (line 129) | def __exit__(self, *args: object) -> None: method close (line 132) | def close(self) -> None: method _start_write_thread (line 144) | def _start_write_thread(self) -> threading.Thread: method _write_thread (line 153) | def _write_thread(self) -> None: method _get_app_loop (line 190) | def _get_app_loop(self) -> asyncio.AbstractEventLoop | None: method _write_and_flush (line 202) | def _write_and_flush( method _write (line 238) | def _write(self, data: str) -> None: method _flush (line 261) | def _flush(self) -> None: method write (line 266) | def write(self, data: str) -> int: method flush (line 272) | def flush(self) -> None: method original_stdout (line 280) | def original_stdout(self) -> TextIO | None: method fileno (line 285) | def fileno(self) -> int: method isatty (line 288) | def isatty(self) -> bool: method encoding (line 296) | def encoding(self) -> str: method errors (line 300) | def errors(self) -> str: FILE: src/prompt_toolkit/renderer.py function _output_screen_diff (line 40) | def _output_screen_diff( class HeightIsUnknownError (line 267) | class HeightIsUnknownError(Exception): class _StyleStringToAttrsCache (line 271) | class _StyleStringToAttrsCache(dict[str, Attrs]): method __init__ (line 277) | def __init__( method __missing__ (line 285) | def __missing__(self, style_str: str) -> Attrs: class _StyleStringHasStyleCache (line 293) | class _StyleStringHasStyleCache(dict[str, bool]): method __init__ (line 304) | def __init__(self, style_string_to_attrs: dict[str, Attrs]) -> None: method __missing__ (line 307) | def __missing__(self, style_str: str) -> bool: class CPR_Support (line 322) | class CPR_Support(Enum): class Renderer (line 330) | class Renderer: method __init__ (line 343) | def __init__( method reset (line 383) | def reset(self, _scroll: bool = False, leave_alternate_screen: bool = ... method last_rendered_screen (line 433) | def last_rendered_screen(self) -> Screen | None: method height_is_known (line 441) | def height_is_known(self) -> bool: method rows_above_layout (line 456) | def rows_above_layout(self) -> int: method request_absolute_cursor_position (line 469) | def request_absolute_cursor_position(self) -> None: method report_absolute_cursor_row (line 530) | def report_absolute_cursor_row(self, row: int) -> None: method waiting_for_cpr (line 554) | def waiting_for_cpr(self) -> bool: method wait_for_cpr_responses (line 561) | async def wait_for_cpr_responses(self, timeout: int = 1) -> None: method render (line 591) | def render( method erase (line 735) | def erase(self, leave_alternate_screen: bool = True) -> None: method clear (line 756) | def clear(self) -> None: function print_formatted_text (line 773) | def print_formatted_text( FILE: src/prompt_toolkit/search.py class SearchDirection (line 29) | class SearchDirection(Enum): class SearchState (line 34) | class SearchState: method __init__ (line 52) | def __init__( method __repr__ (line 62) | def __repr__(self) -> str: method __invert__ (line 65) | def __invert__(self) -> SearchState: function start_search (line 80) | def start_search( function stop_search (line 119) | def stop_search(buffer_control: BufferControl | None = None) -> None: function do_incremental_search (line 150) | def do_incremental_search(direction: SearchDirection, count: int = 1) ->... function accept_search (line 183) | def accept_search() -> None: function _get_reverse_search_links (line 217) | def _get_reverse_search_links( FILE: src/prompt_toolkit/selection.py class SelectionType (line 16) | class SelectionType(Enum): class PasteMode (line 31) | class PasteMode(Enum): class SelectionState (line 37) | class SelectionState: method __init__ (line 45) | def __init__( method enter_shift_mode (line 54) | def enter_shift_mode(self) -> None: method __repr__ (line 57) | def __repr__(self) -> str: FILE: src/prompt_toolkit/shortcuts/choice_input.py function create_default_choice_input_style (line 44) | def create_default_choice_input_style() -> BaseStyle: class ChoiceInput (line 53) | class ChoiceInput(Generic[_T]): method __init__ (line 91) | def __init__( method _create_application (line 123) | def _create_application(self) -> Application[_T]: method prompt (line 242) | def prompt(self) -> _T: method prompt_async (line 245) | async def prompt_async(self) -> _T: function choice (line 249) | def choice( FILE: src/prompt_toolkit/shortcuts/dialogs.py function yes_no_dialog (line 45) | def yes_no_dialog( function button_dialog (line 79) | def button_dialog( function input_dialog (line 106) | def input_dialog( function message_dialog (line 158) | def message_dialog( function radiolist_dialog (line 177) | def radiolist_dialog( function checkboxlist_dialog (line 216) | def checkboxlist_dialog( function progress_dialog (line 255) | def progress_dialog( function _create_app (line 314) | def _create_app(dialog: AnyContainer, style: BaseStyle | None) -> Applic... function _return_none (line 329) | def _return_none() -> None: FILE: src/prompt_toolkit/shortcuts/progress_bar/base.py function create_key_bindings (line 62) | def create_key_bindings(cancel_callback: Callable[[], None] | None) -> K... class ProgressBar (line 87) | class ProgressBar: method __init__ (line 114) | def __init__( method __enter__ (line 156) | def __enter__(self) -> ProgressBar: method __exit__ (line 233) | def __exit__(self, *a: object) -> None: method __call__ (line 246) | def __call__( method invalidate (line 268) | def invalidate(self) -> None: class _ProgressControl (line 272) | class _ProgressControl(UIControl): method __init__ (line 277) | def __init__( method create_content (line 287) | def create_content(self, width: int, height: int) -> UIContent: method is_focusable (line 304) | def is_focusable(self) -> bool: method get_key_bindings (line 307) | def get_key_bindings(self) -> KeyBindings: class ProgressBarCounter (line 314) | class ProgressBarCounter(Generic[_CounterItem]): method __init__ (line 319) | def __init__( method __iter__ (line 345) | def __iter__(self) -> Iterator[_CounterItem]: method item_completed (line 361) | def item_completed(self) -> None: method done (line 371) | def done(self) -> bool: method done (line 383) | def done(self, value: bool) -> None: method stopped (line 391) | def stopped(self) -> bool: method stopped (line 409) | def stopped(self, value: bool) -> None: method percentage (line 419) | def percentage(self) -> float: method time_elapsed (line 426) | def time_elapsed(self) -> datetime.timedelta: method time_left (line 436) | def time_left(self) -> datetime.timedelta | None: FILE: src/prompt_toolkit/shortcuts/progress_bar/formatters.py class Formatter (line 43) | class Formatter(metaclass=ABCMeta): method format (line 49) | def format( method get_width (line 57) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: class Text (line 61) | class Text(Formatter): method __init__ (line 66) | def __init__(self, text: AnyFormattedText, style: str = "") -> None: method format (line 69) | def format( method get_width (line 77) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: class Label (line 81) | class Label(Formatter): method __init__ (line 91) | def __init__(self, width: AnyDimension = None, suffix: str = "") -> None: method _add_suffix (line 95) | def _add_suffix(self, label: AnyFormattedText) -> StyleAndTextTuples: method format (line 99) | def format( method get_width (line 117) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: class Percentage (line 129) | class Percentage(Formatter): method format (line 136) | def format( method get_width (line 144) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: class Bar (line 148) | class Bar(Formatter): method __init__ (line 157) | def __init__( method format (line 176) | def format( method get_width (line 212) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: class Progress (line 216) | class Progress(Formatter): method format (line 223) | def format( method get_width (line 233) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: function _format_timedelta (line 241) | def _format_timedelta(timedelta: datetime.timedelta) -> str: class TimeElapsed (line 251) | class TimeElapsed(Formatter): method format (line 258) | def format( method get_width (line 267) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: class TimeLeft (line 276) | class TimeLeft(Formatter): method format (line 284) | def format( method get_width (line 298) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: class IterationsPerSecond (line 308) | class IterationsPerSecond(Formatter): method format (line 317) | def format( method get_width (line 326) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: class SpinningWheel (line 336) | class SpinningWheel(Formatter): method format (line 344) | def format( method get_width (line 353) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: function _hue_to_rgb (line 357) | def _hue_to_rgb(hue: float) -> tuple[int, int, int]: class Rainbow (line 379) | class Rainbow(Formatter): method __init__ (line 386) | def __init__(self, formatter: Formatter) -> None: method format (line 389) | def format( method get_width (line 410) | def get_width(self, progress_bar: ProgressBar) -> AnyDimension: function create_default_formatters (line 414) | def create_default_formatters() -> list[Formatter]: FILE: src/prompt_toolkit/shortcuts/prompt.py function _split_multiline_prompt (line 150) | def _split_multiline_prompt( class _RPrompt (line 190) | class _RPrompt(Window): method __init__ (line 195) | def __init__(self, text: AnyFormattedText) -> None: class CompleteStyle (line 203) | class CompleteStyle(str, Enum): class PromptSession (line 228) | class PromptSession(Generic[_T]): method __init__ (line 379) | def __init__( method _dyncond (line 486) | def _dyncond(self, attr_name: str) -> Condition: method _create_default_buffer (line 503) | def _create_default_buffer(self) -> Buffer: method _create_search_buffer (line 547) | def _create_search_buffer(self) -> Buffer: method _create_layout (line 550) | def _create_layout(self) -> Layout: method _create_application (line 739) | def _create_application( method _create_prompt_bindings (line 816) | def _create_prompt_bindings(self) -> KeyBindings: method prompt (line 880) | def prompt( method _dumb_prompt (line 1072) | def _dumb_prompt(self, message: AnyFormattedText = "") -> Iterator[App... method prompt_async (line 1120) | async def prompt_async( method _add_pre_run_callables (line 1265) | def _add_pre_run_callables( method editing_mode (line 1282) | def editing_mode(self) -> EditingMode: method editing_mode (line 1286) | def editing_mode(self, value: EditingMode) -> None: method _get_default_buffer_control_height (line 1289) | def _get_default_buffer_control_height(self) -> Dimension: method _get_prompt (line 1311) | def _get_prompt(self) -> StyleAndTextTuples: method _get_continuation (line 1314) | def _get_continuation( method _get_line_prefix (line 1341) | def _get_line_prefix( method _get_arg_text (line 1362) | def _get_arg_text(self) -> StyleAndTextTuples: method _inline_arg (line 1374) | def _inline_arg(self) -> StyleAndTextTuples: method input (line 1392) | def input(self) -> Input: method output (line 1396) | def output(self) -> Output: function prompt (line 1400) | def prompt( function create_confirm_session (line 1510) | def create_confirm_session( function confirm (line 1542) | def confirm(message: AnyFormattedText = "Confirm?", suffix: str = " (y/n... FILE: src/prompt_toolkit/shortcuts/utils.py function print_formatted_text (line 41) | def print_formatted_text( function print_container (line 167) | def print_container( function _create_merged_style (line 202) | def _create_merged_style( function clear (line 217) | def clear() -> None: function set_title (line 227) | def set_title(text: str) -> None: function clear_title (line 235) | def clear_title() -> None: FILE: src/prompt_toolkit/styles/base.py class Attrs (line 23) | class Attrs(NamedTuple): class BaseStyle (line 113) | class BaseStyle(metaclass=ABCMeta): method get_attrs_for_style_str (line 119) | def get_attrs_for_style_str( method style_rules (line 132) | def style_rules(self) -> list[tuple[str, str]]: method invalidation_hash (line 140) | def invalidation_hash(self) -> Hashable: class DummyStyle (line 148) | class DummyStyle(BaseStyle): method get_attrs_for_style_str (line 153) | def get_attrs_for_style_str( method invalidation_hash (line 158) | def invalidation_hash(self) -> Hashable: method style_rules (line 162) | def style_rules(self) -> list[tuple[str, str]]: class DynamicStyle (line 166) | class DynamicStyle(BaseStyle): method __init__ (line 173) | def __init__(self, get_style: Callable[[], BaseStyle | None]): method get_attrs_for_style_str (line 177) | def get_attrs_for_style_str( method invalidation_hash (line 184) | def invalidation_hash(self) -> Hashable: method style_rules (line 188) | def style_rules(self) -> list[tuple[str, str]]: FILE: src/prompt_toolkit/styles/defaults.py function default_ui_style (line 218) | def default_ui_style() -> BaseStyle: function default_pygments_style (line 232) | def default_pygments_style() -> Style: FILE: src/prompt_toolkit/styles/pygments.py function style_from_pygments_cls (line 28) | def style_from_pygments_cls(pygments_style_cls: type[PygmentsStyle]) -> ... function style_from_pygments_dict (line 49) | def style_from_pygments_dict(pygments_dict: dict[Token, str]) -> Style: function pygments_token_to_classname (line 62) | def pygments_token_to_classname(token: Token) -> str: FILE: src/prompt_toolkit/styles/style.py function parse_color (line 34) | def parse_color(text: str) -> str: function _expand_classname (line 96) | def _expand_classname(classname: str) -> list[str]: function _parse_style_str (line 111) | def _parse_style_str(style_str: str) -> Attrs: class Priority (line 186) | class Priority(Enum): class Style (line 212) | class Style(BaseStyle): method __init__ (line 234) | def __init__(self, style_rules: list[tuple[str, str]]) -> None: method style_rules (line 253) | def style_rules(self) -> list[tuple[str, str]]: method from_dict (line 257) | def from_dict( method get_attrs_for_style_str (line 274) | def get_attrs_for_style_str( method invalidation_hash (line 323) | def invalidation_hash(self) -> Hashable: function _merge_attrs (line 330) | def _merge_attrs(list_of_attrs: list[Attrs]) -> Attrs: function merge_styles (line 358) | def merge_styles(styles: list[BaseStyle]) -> _MergedStyle: class _MergedStyle (line 366) | class _MergedStyle(BaseStyle): method __init__ (line 382) | def __init__(self, styles: list[BaseStyle]) -> None: method _merged_style (line 387) | def _merged_style(self) -> Style: method style_rules (line 396) | def style_rules(self) -> list[tuple[str, str]]: method get_attrs_for_style_str (line 402) | def get_attrs_for_style_str( method invalidation_hash (line 407) | def invalidation_hash(self) -> Hashable: FILE: src/prompt_toolkit/styles/style_transformation.py class StyleTransformation (line 39) | class StyleTransformation(metaclass=ABCMeta): method transform_attrs (line 45) | def transform_attrs(self, attrs: Attrs) -> Attrs: method invalidation_hash (line 53) | def invalidation_hash(self) -> Hashable: class SwapLightAndDarkStyleTransformation (line 60) | class SwapLightAndDarkStyleTransformation(StyleTransformation): method transform_attrs (line 78) | def transform_attrs(self, attrs: Attrs) -> Attrs: class ReverseStyleTransformation (line 89) | class ReverseStyleTransformation(StyleTransformation): method transform_attrs (line 96) | def transform_attrs(self, attrs: Attrs) -> Attrs: class SetDefaultColorStyleTransformation (line 100) | class SetDefaultColorStyleTransformation(StyleTransformation): method __init__ (line 110) | def __init__( method transform_attrs (line 116) | def transform_attrs(self, attrs: Attrs) -> Attrs: method invalidation_hash (line 125) | def invalidation_hash(self) -> Hashable: class AdjustBrightnessStyleTransformation (line 133) | class AdjustBrightnessStyleTransformation(StyleTransformation): method __init__ (line 157) | def __init__( method transform_attrs (line 163) | def transform_attrs(self, attrs: Attrs) -> Attrs: method _color_to_rgb (line 192) | def _color_to_rgb(self, color: str) -> tuple[float, float, float]: method _interpolate_brightness (line 215) | def _interpolate_brightness( method invalidation_hash (line 223) | def invalidation_hash(self) -> Hashable: class DummyStyleTransformation (line 231) | class DummyStyleTransformation(StyleTransformation): method transform_attrs (line 236) | def transform_attrs(self, attrs: Attrs) -> Attrs: method invalidation_hash (line 239) | def invalidation_hash(self) -> Hashable: class DynamicStyleTransformation (line 244) | class DynamicStyleTransformation(StyleTransformation): method __init__ (line 253) | def __init__( method transform_attrs (line 258) | def transform_attrs(self, attrs: Attrs) -> Attrs: method invalidation_hash (line 264) | def invalidation_hash(self) -> Hashable: class ConditionalStyleTransformation (line 271) | class ConditionalStyleTransformation(StyleTransformation): method __init__ (line 276) | def __init__( method transform_attrs (line 282) | def transform_attrs(self, attrs: Attrs) -> Attrs: method invalidation_hash (line 287) | def invalidation_hash(self) -> Hashable: class _MergedStyleTransformation (line 291) | class _MergedStyleTransformation(StyleTransformation): method __init__ (line 292) | def __init__(self, style_transformations: Sequence[StyleTransformation... method transform_attrs (line 295) | def transform_attrs(self, attrs: Attrs) -> Attrs: method invalidation_hash (line 300) | def invalidation_hash(self) -> Hashable: function merge_style_transformations (line 304) | def merge_style_transformations( function get_opposite_color (line 340) | def get_opposite_color(colorname: str | None) -> str | None: FILE: src/prompt_toolkit/utils.py class Event (line 42) | class Event(Generic[_Sender]): method __init__ (line 63) | def __init__( method __call__ (line 72) | def __call__(self) -> None: method fire (line 77) | def fire(self) -> None: method add_handler (line 81) | def add_handler(self, handler: Callable[[_Sender], None]) -> None: method remove_handler (line 90) | def remove_handler(self, handler: Callable[[_Sender], None]) -> None: method __iadd__ (line 97) | def __iadd__(self, handler: Callable[[_Sender], None]) -> Event[_Sender]: method __isub__ (line 104) | def __isub__(self, handler: Callable[[_Sender], None]) -> Event[_Sender]: class DummyContext (line 112) | class DummyContext(AbstractContextManager[None]): method __enter__ (line 117) | def __enter__(self) -> None: method __exit__ (line 120) | def __exit__(self, *a: object) -> None: class _CharSizesCache (line 124) | class _CharSizesCache(dict[str, int]): method __init__ (line 132) | def __init__(self) -> None: method __missing__ (line 137) | def __missing__(self, string: str) -> int: function get_cwidth (line 168) | def get_cwidth(string: str) -> int: function suspend_to_background_supported (line 175) | def suspend_to_background_supported() -> bool: function is_windows (line 183) | def is_windows() -> bool: function is_windows_vt100_supported (line 190) | def is_windows_vt100_supported() -> bool: function is_conemu_ansi (line 203) | def is_conemu_ansi() -> bool: function in_main_thread (line 210) | def in_main_thread() -> bool: function get_bell_environment_variable (line 217) | def get_bell_environment_variable() -> bool: function get_term_environment_variable (line 225) | def get_term_environment_variable() -> str: function take_using_weights (line 233) | def take_using_weights( function to_str (line 287) | def to_str(value: Callable[[], str] | str) -> str: function to_int (line 295) | def to_int(value: Callable[[], int] | int) -> int: function to_float (line 306) | def to_float(value: AnyFloat) -> float: function is_dumb_terminal (line 314) | def is_dumb_terminal(term: str | None = None) -> bool: FILE: src/prompt_toolkit/validation.py class ValidationError (line 26) | class ValidationError(Exception): method __init__ (line 34) | def __init__(self, cursor_position: int = 0, message: str = "") -> None: method __repr__ (line 39) | def __repr__(self) -> str: class Validator (line 43) | class Validator(metaclass=ABCMeta): method validate (line 57) | def validate(self, document: Document) -> None: method validate_async (line 66) | async def validate_async(self, document: Document) -> None: method from_callable (line 78) | def from_callable( class _ValidatorFromCallable (line 102) | class _ValidatorFromCallable(Validator): method __init__ (line 107) | def __init__( method __repr__ (line 114) | def __repr__(self) -> str: method validate (line 117) | def validate(self, document: Document) -> None: class ThreadedValidator (line 127) | class ThreadedValidator(Validator): method __init__ (line 134) | def __init__(self, validator: Validator) -> None: method validate (line 137) | def validate(self, document: Document) -> None: method validate_async (line 140) | async def validate_async(self, document: Document) -> None: class DummyValidator (line 151) | class DummyValidator(Validator): method validate (line 156) | def validate(self, document: Document) -> None: class ConditionalValidator (line 160) | class ConditionalValidator(Validator): method __init__ (line 166) | def __init__(self, validator: Validator, filter: FilterOrBool) -> None: method validate (line 170) | def validate(self, document: Document) -> None: class DynamicValidator (line 176) | class DynamicValidator(Validator): method __init__ (line 183) | def __init__(self, get_validator: Callable[[], Validator | None]) -> N... method validate (line 186) | def validate(self, document: Document) -> None: method validate_async (line 190) | async def validate_async(self, document: Document) -> None: FILE: src/prompt_toolkit/widgets/base.py class Border (line 102) | class Border: class TextArea (line 113) | class TextArea: method __init__ (line 174) | def __init__( method text (line 289) | def text(self) -> str: method text (line 296) | def text(self, value: str) -> None: method document (line 300) | def document(self) -> Document: method document (line 307) | def document(self, value: Document) -> None: method accept_handler (line 311) | def accept_handler(self) -> BufferAcceptHandler | None: method accept_handler (line 318) | def accept_handler(self, value: BufferAcceptHandler) -> None: method __pt_container__ (line 321) | def __pt_container__(self) -> Container: class Label (line 325) | class Label: method __init__ (line 344) | def __init__( method __pt_container__ (line 383) | def __pt_container__(self) -> Container: class Button (line 387) | class Button: method __init__ (line 398) | def __init__( method _get_text_fragments (line 439) | def _get_text_fragments(self) -> StyleAndTextTuples: method _get_key_bindings (line 461) | def _get_key_bindings(self) -> KeyBindings: method __pt_container__ (line 473) | def __pt_container__(self) -> Container: class Frame (line 477) | class Frame: method __init__ (line 489) | def __init__( method __pt_container__ (line 571) | def __pt_container__(self) -> Container: class Shadow (line 575) | class Shadow: method __init__ (line 584) | def __init__(self, body: AnyContainer) -> None: method __pt_container__ (line 607) | def __pt_container__(self) -> Container: class Box (line 611) | class Box: method __init__ (line 630) | def __init__( method __pt_container__ (line 691) | def __pt_container__(self) -> Container: class _DialogList (line 698) | class _DialogList(Generic[_T]): method __init__ (line 703) | def __init__( method _handle_enter (line 836) | def _handle_enter(self) -> None: method _get_text_fragments (line 846) | def _get_text_fragments(self) -> StyleAndTextTuples: method __pt_container__ (line 898) | def __pt_container__(self) -> Container: class RadioList (line 902) | class RadioList(_DialogList[_T]): method __init__ (line 909) | def __init__( class CheckboxList (line 951) | class CheckboxList(_DialogList[_T]): method __init__ (line 958) | def __init__( class Checkbox (line 984) | class Checkbox(CheckboxList[str]): method __init__ (line 992) | def __init__(self, text: AnyFormattedText = "", checked: bool = False)... method checked (line 998) | def checked(self) -> bool: method checked (line 1002) | def checked(self, value: bool) -> None: class VerticalLine (line 1009) | class VerticalLine: method __init__ (line 1014) | def __init__(self) -> None: method __pt_container__ (line 1019) | def __pt_container__(self) -> Container: class HorizontalLine (line 1023) | class HorizontalLine: method __init__ (line 1028) | def __init__(self) -> None: method __pt_container__ (line 1033) | def __pt_container__(self) -> Container: class ProgressBar (line 1037) | class ProgressBar: method __init__ (line 1038) | def __init__(self) -> None: method percentage (line 1072) | def percentage(self) -> int: method percentage (line 1076) | def percentage(self, value: int) -> None: method __pt_container__ (line 1080) | def __pt_container__(self) -> Container: FILE: src/prompt_toolkit/widgets/dialogs.py class Dialog (line 29) | class Dialog: method __init__ (line 42) | def __init__( method __pt_container__ (line 107) | def __pt_container__(self) -> AnyContainer: FILE: src/prompt_toolkit/widgets/menus.py class MenuContainer (line 35) | class MenuContainer: method __init__ (line 41) | def __init__( method _get_menu (line 214) | def _get_menu(self, level: int) -> MenuItem: method _get_menu_fragments (line 226) | def _get_menu_fragments(self) -> StyleAndTextTuples: method _submenu (line 267) | def _submenu(self, level: int = 0) -> Window: method floats (line 346) | def floats(self) -> list[Float] | None: method __pt_container__ (line 349) | def __pt_container__(self) -> Container: class MenuItem (line 353) | class MenuItem: method __init__ (line 354) | def __init__( method width (line 370) | def width(self) -> int: FILE: src/prompt_toolkit/widgets/toolbars.py class FormattedTextToolbar (line 60) | class FormattedTextToolbar(Window): method __init__ (line 61) | def __init__(self, text: AnyFormattedText, style: str = "", **kw: Any)... class SystemToolbar (line 72) | class SystemToolbar: method __init__ (line 79) | def __init__( method _get_display_before_text (line 108) | def _get_display_before_text(self) -> StyleAndTextTuples: method _build_key_bindings (line 115) | def _build_key_bindings(self) -> KeyBindingsBase: method __pt_container__ (line 187) | def __pt_container__(self) -> Container: class ArgToolbar (line 191) | class ArgToolbar: method __init__ (line 192) | def __init__(self) -> None: method __pt_container__ (line 207) | def __pt_container__(self) -> Container: class SearchToolbar (line 211) | class SearchToolbar: method __init__ (line 217) | def __init__( method __pt_container__ (line 259) | def __pt_container__(self) -> Container: class _CompletionsToolbarControl (line 263) | class _CompletionsToolbarControl(UIControl): method create_content (line 264) | def create_content(self, width: int, height: int) -> UIContent: class CompletionsToolbar (line 331) | class CompletionsToolbar: method __init__ (line 332) | def __init__(self) -> None: method __pt_container__ (line 340) | def __pt_container__(self) -> Container: class ValidationToolbar (line 344) | class ValidationToolbar: method __init__ (line 345) | def __init__(self, show_position: bool = False) -> None: method __pt_container__ (line 369) | def __pt_container__(self) -> Container: FILE: src/prompt_toolkit/win32_types.py class COORD (line 15) | class COORD(Structure): method __repr__ (line 30) | def __repr__(self) -> str: class UNICODE_OR_ASCII (line 40) | class UNICODE_OR_ASCII(Union): class KEY_EVENT_RECORD (line 51) | class KEY_EVENT_RECORD(Structure): class MOUSE_EVENT_RECORD (line 74) | class MOUSE_EVENT_RECORD(Structure): class WINDOW_BUFFER_SIZE_RECORD (line 93) | class WINDOW_BUFFER_SIZE_RECORD(Structure): class MENU_EVENT_RECORD (line 104) | class MENU_EVENT_RECORD(Structure): class FOCUS_EVENT_RECORD (line 115) | class FOCUS_EVENT_RECORD(Structure): class EVENT_RECORD (line 126) | class EVENT_RECORD(Union): class INPUT_RECORD (line 143) | class INPUT_RECORD(Structure): class SMALL_RECT (line 164) | class SMALL_RECT(Structure): class CONSOLE_SCREEN_BUFFER_INFO (line 181) | class CONSOLE_SCREEN_BUFFER_INFO(Structure): method __repr__ (line 199) | def __repr__(self) -> str: class SECURITY_ATTRIBUTES (line 215) | class SECURITY_ATTRIBUTES(Structure): FILE: tests/test_async_generator.py function _sync_generator (line 8) | def _sync_generator(): function test_generator_to_async_generator (line 13) | def test_generator_to_async_generator(): FILE: tests/test_buffer.py function _buffer (line 9) | def _buffer(): function test_initial (line 14) | def test_initial(_buffer): function test_insert_text (line 19) | def test_insert_text(_buffer): function test_cursor_movement (line 25) | def test_cursor_movement(_buffer): function test_backspace (line 37) | def test_backspace(_buffer): function test_cursor_up (line 47) | def test_cursor_up(_buffer): function test_cursor_down (line 66) | def test_cursor_down(_buffer): function test_join_next_line (line 83) | def test_join_next_line(_buffer): function test_newline (line 99) | def test_newline(_buffer): function test_swap_characters_before_cursor (line 106) | def test_swap_characters_before_cursor(_buffer): FILE: tests/test_cli.py function _history (line 24) | def _history(): function _feed_cli_with_input (line 32) | def _feed_cli_with_input( function test_simple_text_input (line 67) | def test_simple_text_input(): function test_emacs_cursor_movements (line 74) | def test_emacs_cursor_movements(): function test_emacs_kill_multiple_words_and_paste (line 191) | def test_emacs_kill_multiple_words_and_paste(): function test_interrupts (line 212) | def test_interrupts(): function test_emacs_yank (line 225) | def test_emacs_yank(): function test_quoted_insert (line 233) | def test_quoted_insert(): function test_transformations (line 239) | def test_transformations(): function test_emacs_other_bindings (line 266) | def test_emacs_other_bindings(): function test_controlx_controlx (line 306) | def test_controlx_controlx(): function test_emacs_history_bindings (line 321) | def test_emacs_history_bindings(): function test_emacs_reverse_search (line 351) | def test_emacs_reverse_search(): function test_emacs_arguments (line 363) | def test_emacs_arguments(): function test_emacs_arguments_for_all_commands (line 392) | def test_emacs_arguments_for_all_commands(): function test_emacs_kill_ring (line 413) | def test_emacs_kill_ring(): function test_emacs_selection (line 438) | def test_emacs_selection(): function test_emacs_insert_comment (line 476) | def test_emacs_insert_comment(): function test_emacs_record_macro (line 487) | def test_emacs_record_macro(): function test_emacs_nested_macro (line 503) | def test_emacs_nested_macro(): function test_prefix_meta (line 536) | def test_prefix_meta(): function test_bracketed_paste (line 547) | def test_bracketed_paste(): function test_vi_cursor_movements (line 563) | def test_vi_cursor_movements(): function test_vi_operators (line 610) | def test_vi_operators(): function test_vi_text_objects (line 626) | def test_vi_text_objects(): function test_vi_digraphs (line 650) | def test_vi_digraphs(): function test_vi_block_editing (line 670) | def test_vi_block_editing(): function test_vi_block_editing_empty_lines (line 704) | def test_vi_block_editing_empty_lines(): function test_vi_visual_line_copy (line 738) | def test_vi_visual_line_copy(): function test_vi_visual_empty_line (line 770) | def test_vi_visual_empty_line(): function test_vi_character_delete_after_cursor (line 804) | def test_vi_character_delete_after_cursor(): function test_vi_character_delete_before_cursor (line 829) | def test_vi_character_delete_before_cursor(): function test_vi_character_paste (line 853) | def test_vi_character_paste(): function test_vi_temp_navigation_mode (line 867) | def test_vi_temp_navigation_mode(): function test_vi_macros (line 896) | def test_vi_macros(): function test_accept_default (line 930) | def test_accept_default(): FILE: tests/test_completion.py function chdir (line 21) | def chdir(directory): function write_test_files (line 32) | def write_test_files(test_dir, names=None): function test_pathcompleter_completes_in_current_directory (line 40) | def test_pathcompleter_completes_in_current_directory(): function test_pathcompleter_completes_files_in_current_directory (line 49) | def test_pathcompleter_completes_files_in_current_directory(): function test_pathcompleter_completes_files_in_absolute_directory (line 73) | def test_pathcompleter_completes_files_in_absolute_directory(): function test_pathcompleter_completes_directories_with_only_directories (line 97) | def test_pathcompleter_completes_directories_with_only_directories(): function test_pathcompleter_respects_completions_under_min_input_len (line 130) | def test_pathcompleter_respects_completions_under_min_input_len(): function test_pathcompleter_does_not_expanduser_by_default (line 192) | def test_pathcompleter_does_not_expanduser_by_default(): function test_pathcompleter_can_expanduser (line 201) | def test_pathcompleter_can_expanduser(): function test_pathcompleter_can_apply_file_filter (line 210) | def test_pathcompleter_can_apply_file_filter(): function test_pathcompleter_get_paths_constrains_path (line 234) | def test_pathcompleter_get_paths_constrains_path(): function test_word_completer_static_word_list (line 260) | def test_word_completer_static_word_list(): function test_word_completer_ignore_case (line 283) | def test_word_completer_ignore_case(): function test_word_completer_match_middle (line 292) | def test_word_completer_match_middle(): function test_word_completer_sentence (line 298) | def test_word_completer_sentence(): function test_word_completer_dynamic_word_list (line 314) | def test_word_completer_dynamic_word_list(): function test_word_completer_pattern (line 334) | def test_word_completer_pattern(): function test_fuzzy_completer (line 349) | def test_fuzzy_completer(): function test_nested_completer (line 403) | def test_nested_completer(): function test_deduplicate_completer (line 447) | def test_deduplicate_completer(): FILE: tests/test_document.py function document (line 11) | def document(): function test_current_char (line 17) | def test_current_char(document): function test_text_before_cursor (line 22) | def test_text_before_cursor(document): function test_text_after_cursor (line 26) | def test_text_after_cursor(document): function test_lines (line 30) | def test_lines(document): function test_line_count (line 34) | def test_line_count(document): function test_current_line_before_cursor (line 38) | def test_current_line_before_cursor(document): function test_current_line_after_cursor (line 42) | def test_current_line_after_cursor(document): function test_current_line (line 46) | def test_current_line(document): function test_cursor_position (line 50) | def test_cursor_position(document): function test_translate_index_to_position (line 59) | def test_translate_index_to_position(document): function test_is_cursor_at_the_end (line 69) | def test_is_cursor_at_the_end(document): function test_get_word_before_cursor_with_whitespace_and_pattern (line 74) | def test_get_word_before_cursor_with_whitespace_and_pattern(): FILE: tests/test_filter.py function test_never (line 9) | def test_never(): function test_always (line 13) | def test_always(): function test_invert (line 17) | def test_invert(): function test_or (line 25) | def test_or(): function test_and (line 36) | def test_and(): function test_nested_and (line 47) | def test_nested_and(): function test_nested_or (line 60) | def test_nested_or(): function test_to_filter (line 73) | def test_to_filter(): function test_filter_cache_regression_1 (line 92) | def test_filter_cache_regression_1(): function test_filter_cache_regression_2 (line 105) | def test_filter_cache_regression_2(): function test_filter_remove_duplicates (line 115) | def test_filter_remove_duplicates(): FILE: tests/test_formatted_text.py function test_basic_html (line 15) | def test_basic_html(): function test_html_with_fg_bg (line 36) | def test_html_with_fg_bg(): function test_ansi_formatting (line 56) | def test_ansi_formatting(): function test_ansi_dim (line 92) | def test_ansi_dim(): function test_ansi_256_color (line 132) | def test_ansi_256_color(): function test_ansi_true_color (line 141) | def test_ansi_true_color(): function test_ansi_interpolation (line 148) | def test_ansi_interpolation(): function test_interpolation (line 213) | def test_interpolation(): function test_html_interpolation (line 233) | def test_html_interpolation(): function test_merge_formatted_text (line 255) | def test_merge_formatted_text(): function test_pygments_tokens (line 266) | def test_pygments_tokens(): function test_split_lines (line 280) | def test_split_lines(): function test_split_lines_2 (line 290) | def test_split_lines_2(): function test_split_lines_3 (line 302) | def test_split_lines_3(): function test_split_lines_4 (line 329) | def test_split_lines_4(): FILE: tests/test_history.py function _call_history_load (line 8) | def _call_history_load(history): function test_in_memory_history (line 22) | def test_in_memory_history(): function test_file_history (line 41) | def test_file_history(tmpdir): function test_threaded_file_history (line 63) | def test_threaded_file_history(tmpdir): function test_threaded_in_memory_history (line 85) | def test_threaded_in_memory_history(): FILE: tests/test_inputstream.py class _ProcessorMock (line 9) | class _ProcessorMock: method __init__ (line 10) | def __init__(self): method feed_key (line 13) | def feed_key(self, key_press): function processor (line 18) | def processor(): function stream (line 23) | def stream(processor): function test_control_keys (line 27) | def test_control_keys(processor, stream): function test_arrows (line 39) | def test_arrows(processor, stream): function test_escape (line 53) | def test_escape(processor, stream): function test_special_double_keys (line 63) | def test_special_double_keys(processor, stream): function test_flush_1 (line 73) | def test_flush_1(processor, stream): function test_flush_2 (line 83) | def test_flush_2(processor, stream): function test_meta_arrows (line 101) | def test_meta_arrows(processor, stream): function test_control_square_close (line 109) | def test_control_square_close(processor, stream): function test_invalid (line 117) | def test_invalid(processor, stream): function test_cpr_response (line 128) | def test_cpr_response(processor, stream): function test_cpr_response_2 (line 136) | def test_cpr_response_2(processor, stream): FILE: tests/test_key_binding.py class Handlers (line 17) | class Handlers: method __init__ (line 18) | def __init__(self): method __getattr__ (line 21) | def __getattr__(self, name): function set_dummy_app (line 29) | def set_dummy_app(): function handlers (line 60) | def handlers(): function bindings (line 65) | def bindings(handlers): function processor (line 76) | def processor(bindings): function test_remove_bindings (line 80) | def test_remove_bindings(handlers): function test_feed_simple (line 102) | def test_feed_simple(processor, handlers): function test_feed_several (line 111) | def test_feed_several(processor, handlers): function test_control_square_closed_any (line 137) | def test_control_square_closed_any(processor, handlers): function test_common_prefix (line 146) | def test_common_prefix(processor, handlers): function test_previous_key_sequence (line 163) | def test_previous_key_sequence(processor): FILE: tests/test_layout.py function test_layout_class (line 10) | def test_layout_class(): function test_create_invalid_layout (line 51) | def test_create_invalid_layout(): FILE: tests/test_memory_leaks.py function _count_prompt_session_instances (line 8) | def _count_prompt_session_instances() -> int: function test_prompt_session_memory_leak (line 18) | def test_prompt_session_memory_leak() -> None: FILE: tests/test_print_formatted_text.py class _Capture (line 16) | class _Capture: method __init__ (line 19) | def __init__(self): method write (line 22) | def write(self, data): method data (line 26) | def data(self): method flush (line 29) | def flush(self): method isatty (line 32) | def isatty(self): method fileno (line 35) | def fileno(self): function test_print_formatted_text (line 42) | def test_print_formatted_text(): function test_print_formatted_text_backslash_r (line 50) | def test_print_formatted_text_backslash_r(): function test_formatted_text_with_style (line 57) | def test_formatted_text_with_style(): function test_html_with_style (line 80) | def test_html_with_style(): function test_print_formatted_text_with_dim (line 97) | def test_print_formatted_text_with_dim(): FILE: tests/test_regular_languages.py function test_simple_match (line 10) | def test_simple_match(): function test_variable_varname (line 23) | def test_variable_varname(): function test_prefix (line 48) | def test_prefix(): function test_completer (line 78) | def test_completer(): FILE: tests/test_shortcuts.py function test_split_multiline_prompt (line 8) | def test_split_multiline_prompt(): function test_print_container (line 58) | def test_print_container(tmpdir): FILE: tests/test_style.py function test_style_from_dict (line 6) | def test_style_from_dict(): function test_class_combinations_1 (line 89) | def test_class_combinations_1(): function test_class_combinations_2 (line 120) | def test_class_combinations_2(): function test_substyles (line 163) | def test_substyles(): function test_swap_light_and_dark_style_transformation (line 235) | def test_swap_light_and_dark_style_transformation(): FILE: tests/test_style_transformation.py function default_attrs (line 9) | def default_attrs(): function test_adjust_brightness_style_transformation (line 24) | def test_adjust_brightness_style_transformation(default_attrs): FILE: tests/test_utils.py function test_using_weights (line 10) | def test_using_weights(): FILE: tests/test_vt100_output.py function test_get_closest_ansi_color (line 6) | def test_get_closest_ansi_color(): function test_256_colors (line 23) | def test_256_colors(): FILE: tests/test_widgets.py function _to_text (line 8) | def _to_text(button: Button) -> str: function test_default_button (line 13) | def test_default_button(): function test_custom_button (line 18) | def test_custom_button(): FILE: tests/test_yank_nth_arg.py function _history (line 10) | def _history(): function test_empty_history (line 21) | def test_empty_history(): function test_simple_search (line 27) | def test_simple_search(_history): function test_simple_search_with_quotes (line 33) | def test_simple_search_with_quotes(_history): function test_simple_search_with_arg (line 40) | def test_simple_search_with_arg(_history): function test_simple_search_with_arg_out_of_bounds (line 46) | def test_simple_search_with_arg_out_of_bounds(_history): function test_repeated_search (line 52) | def test_repeated_search(_history): function test_repeated_search_with_wraparound (line 59) | def test_repeated_search_with_wraparound(_history): function test_yank_nth_arg (line 70) | def test_yank_nth_arg(_history): function test_repeated_yank_nth_arg (line 76) | def test_repeated_yank_nth_arg(_history): function test_yank_nth_arg_with_arg (line 83) | def test_yank_nth_arg_with_arg(_history): FILE: tools/debug_input_cross_platform.py function main (line 15) | async def main() -> None: FILE: tools/debug_vt100_input.py function callback (line 17) | def callback(key_press: KeyPress) -> None: function main (line 24) | def main() -> None: