11e5823202- Update to 3.0.52: New features: * Add choice() shortcut for selecting an option amongst a list of choices (see documentation for examples). * Add support for ANSI dim text formatting. * Add frame=... option for prompt() and choice() shortcuts to allow for displaying a frame around the input prompt. Fixes: * Fix button width when non English characters are displayed. * Implement flushing in Windows VT100 input. * Fix signal handling for GraalPy. * Fix handling of zero sized dimensions.Nico Krapp2025-08-29 08:08:57 +00:00
7d32a40cb6- update to 3.0.51: * Use pyproject.toml instead of setup.py. * Fix edge case in formatted_text.split_lines when the input starts with a line ending. * Fixes non user impacting regression on the output rendering. Don't render cursor hide/show ANSI escape codes if not needed. * On Windows, use virtual terminal input when available. * Support for multiline suggestions. * Handle InvalidStateError during termination when using run_in_terminal/patch_stdout. This can happen in some cases during cancellation, probably when using anyio. * Fix cursor that remains in hidden state when the application exits. This can happen when the application doesn't show the cursor and erase_when_done is being used. * Drop support for Python 3.7:Dirk Mueller2025-04-28 16:40:02 +00:00
85347e518aAccepting request 1225843 from devel:languages:pythonAna Guerrero2024-11-22 22:51:08 +00:00
9fe17ee0f8Accepting request 1208844 from devel:languages:pythonAna Guerrero2024-10-20 08:13:40 +00:00
98c4e5d5c9- update to 3.0.48: * Typing improvements: * Add @overload to contrib.regular_languages.compiler.Variables.get. * Use Sequence instead of list for words argument in completers. * Improve ModalCursorShapeConfig: * Display an "underscore" cursor in Vi's "replace single" mode, like "replace" mode. * Display an "beam" cursor in Emacs (insert) mode.Dirk Mueller2024-10-18 10:46:47 +00:00
8a5c8d86e1Accepting request 1194587 from devel:languages:pythonAna Guerrero2024-08-20 14:12:32 +00:00
74eca2a1bb- update to 3.0.47: * Allow passing exception classes for KeyboardInterrupt and EOFError in PromptSession. * Compute padding parameters for Box widget lazily.Dirk Mueller2024-08-18 17:22:19 +00:00
9f6e8485f0Accepting request 1179075 from devel:languages:pythonAna Guerrero2024-06-07 13:01:50 +00:00
7fabf0d46b- update to 3.0.46: * Fix pytest capsys fixture compatibility. * Improve performance of GrammarCompleter (faster deduplication of completions). * Accept os.PathLike in FileHistory (typing fix). * Fix memory leak in filters. * Improve performance of progress bar formatters. * Fix compatibility when a SIGINT handler is installed by non- Python (Rust, C). * Limit number of completions in buffer to 10k by default (for performance).Dirk Mueller2024-06-06 20:02:34 +00:00
155720ba42- update to 3.0.43: * Fix regression on Pypy: Don't use ctypes.pythonapi to restore SIGINT if not available. * Make formatted_text.split_lines() accept an iterable instead of lists only. * Disable the IPython workaround (from 3.0.41) for IPython >= 8.18. * Restore signal.SIGINT handler between prompts. - Update to version 3.0.36 - Update to version 3.0.33: - Update to version 3.0.32:Dirk Mueller2023-12-30 20:30:34 +00:00
fe09517069Accepting request 1130986 from devel:languages:pythonAna Guerrero2023-12-07 18:08:53 +00:00
6cc09d9731- Update to 3.0.41 (bsc#1217693): - Fix regression regarding IPython input hook (%gui) integration. - 3.0.40 * Fixes: - Improved Python 3.12 support (fixes event loop DeprecationWarning). * New features: - Vi key bindings: control-t and control-d for indent/unindent in insert mode. - Insert partial suggestion when control+right is pressed, similar to Fish. - Use sphinx-nefertiti theme for the docs. - 3.0.39 * Fixes: - Fix RuntimeError when __breakpointhook__ is called from another thread. - Fix memory leak in filters usage. - Ensure that key bindings are handled in the right context (when using contextvars). * New features: - Accept in_thread keyword in prompt_toolkit.shortcuts.prompt(). - Support the NO_COLOR environment variable.Daniel Garcia2023-12-05 13:32:27 +00:00
97ef2be646- update to 3.0.28: - Support format specifiers for HTML and ANSI formatted text. - Accept defaults for checkbox and radio list, and their corresponding dialogs. - Fix resetting of cursor shape after the application terminates. - Support for cursor shapes. The cursor shape for prompts/applications can now be configured, either as a fixed cursor shape, or in case of Vi input mode, according to the current input mode. - Handle "cursor forward" command in ANSI formatted text. This makes it possible to render many kinds of generated ANSI art. - Accept align attribute in Label widget. - Added PlainTextOutput: an output implementation that doesn't render any ANSI escape sequences. This will be used by default when redirecting stdout to a file. - Added create_app_session_from_tty: a context manager that enforces input/output to go to the current TTY, even if stdin/stdout are attached to pipes. - Added to_plain_text utility for converting formatted text into plain text. - Don't automatically use sys.stderr for output when sys.stdout is not a TTY, but sys.stderr is. The previous behavior was confusing, especially when rendering formatted text to the output, and we expect it to followDirk Mueller2022-03-26 19:24:42 +00:00
a18d78b002- update to 3.0.8: - Added validator parameter to input_dialog. - New "placeholder" parameter added to PromptSession. - Fixes - The SSH/Telnet adaptors have been refactored and improved in several ways. See issues #876 and PR #1150 and #1184 on GitHub. * Handle terminal types for both telnet and SSH sessions. * Added pipe input abstraction. (base class for PosixPipeInput and Win32PipeInput). * The color depth logic has been refactored and moved to the Output implementations. Added get_default_color_depth method to Output objects. * All line feets are now preceded by a carriage return in the telnet connection stdout. - Introduce REPLACE_SINGLE input mode for Vi key bindings. - Improvements to the checkbox implementation: * Hide the scrollbar for a single checkbox. * Added a "checked" setter to the checkbox. - Expose KeyPressEvent in key_binding/__init__.py (often used in type annotations). - The renderer has been optimized so that no trailing spaces are generated (this improves copying in some terminals).Dirk Mueller2020-12-20 09:40:21 +00:00