Skip to content
Myr

strip_ansi handles cursor hide/show sequences

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sekenned · committed by David Lord · parent bc6eb98 · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:click/_compat.py+1 added-1 removed
14 unmodified lines
15WIN = sys.platform.startswith('win') and not APP_ENGINE and not MSYS216DEFAULT_COLUMNS = 80171819_ansi_re = re.compile(r'\033\[((?:\d|;)*)([a-zA-Z])')19_ansi_re = re.compile(r'\033\[([;\?0-9]*)([a-zA-Z])')202122def get_filesystem_encoding():23 return sys.getfilesystemencoding() or sys.getdefaultencoding()
692 unmodified lines
modified:CHANGES.rst+2 added
7 unmodified lines
8- Fix PyPI package name, "click" is lowercase again.9- Fix link in ``unicode_literals`` error message. :pr:`1151`10- Add support for colored output on UNIX Jupyter notebooks.11 :issue:`1185`12- Operations that strip ANSI controls will strip the cursor hide/show13 sequences. :issue:`1216`14- Remove unused compat shim for ``bytes``. :pr:`1195`15- Expand testing around termui, especially getchar on Windows.16 :issue:`1116`17- Fix output on Windows Python 2.7 built with MSVC 14. :pr:`1342`
554 unmodified lines