summaryrefslogtreecommitdiff
path: root/cmd2/rl_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Make sys.stdout check clearer.HEADmasterAndrew Clark IV2023-05-021-1/+1
|
* Simplify sys.stdout checkAndrew Clark IV2023-05-021-37/+36
|
* Check if sys.stdout is NoneAndrew Clark IV2023-05-021-36/+37
|
* rl_utils: Verify `readline.__doc__ is not None`netanelc3052023-05-021-1/+1
|
* cmd2 now uses pyreadline3 when running any version of Python on WindowsKevin Van Brunt2022-02-171-8/+7
|
* Improved some readline-related commentsKevin Van Brunt2022-02-171-5/+21
|
* Fixed AttributeError in rl_get_prompt() when prompt is None.Kevin Van Brunt2021-10-111-2/+4
|
* Updated async_alert() to account for self.prompt not matching Readline's ↵Kevin Van Brunt2021-09-141-13/+47
| | | | current prompt.
* Added handling for OSError caused by trying to load a GNU readline shared ↵Kevin Van Brunt2021-04-281-2/+2
| | | | | | library in Python environments like PyPy which have a pure Python implementation of readline.
* More mypy validation changes. cmd2.py is nearly fully mypy compliant now.Eric Lin2021-04-021-3/+3
|
* Add in isort changesTodd Leonhardt2021-01-311-3/+10
|
* Add black for automatic code formatTodd Leonhardt2021-01-311-10/+13
|
* Update conditional pyreadline3 dependency for WinKyle King2021-01-271-2/+2
|
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-1/+3
| | | | minor import changes.
* Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-241-1/+1
| | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes
* Renamed ansi_safe_wcswidth() to style_aware_wcswidth()Kevin Van Brunt2019-12-191-1/+1
| | | | Renamed ansi_aware_write() to style_aware_write()
* Simplified line of codeKevin Van Brunt2019-11-251-2/+1
|
* Added # pragma: no cover to some code in rl_utilsKevin Van Brunt2019-11-241-2/+2
|
* Fixed flake8 warningKevin Van Brunt2019-11-241-2/+2
|
* Updated warning textKevin Van Brunt2019-11-241-1/+1
|
* Added exception handling to account for non-standard Python environments in ↵Kevin Van Brunt2019-11-241-9/+24
| | | | which readline is not loaded dynamically from a shared library file
* Whitespace and doc fixesKevin Van Brunt2019-07-011-1/+1
|
* Cleaned up some PyCharm warningsTodd Leonhardt2019-03-131-6/+9
|
* Fix flake8 issuesTodd Leonhardt2018-12-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings. Predominantly these are whitespace changes. Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline: * flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first. One flake8 error is being ignored entirely: * E252 missing whitespace around parameter equals * ignored because it doesn't correctly deal with default argument values after a type hint A few flake8 errors are being selectively ignored in certain files: * C901 fuction is too complex * ignored in argparse_completer.py because the complex code is an override of argparse complexity * E302 expected 2 blank lines after ... * ignored in all unit test files for convenience * F401 module imported but unused * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility * F821 undefined name * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined
* Addressing code review commentsKevin Van Brunt2018-09-251-5/+9
|
* Removed more terminal code from coverageKevin Van Brunt2018-09-251-13/+13
|
* Removed terminal functions from code coverageKevin Van Brunt2018-09-251-1/+1
|
* Made sure all prompts sent to GNU readline are made safeKevin Van Brunt2018-09-211-2/+32
|
* More code to support asynchronous changes to the terminalKevin Van Brunt2018-09-191-20/+36
|
* Made common function to clear input lines in the terminalKevin Van Brunt2018-09-191-0/+1
|
* Wrote a prompt updater exampleKevin Van Brunt2018-09-191-0/+14
|
* Wrote function and test command to print alertsKevin Van Brunt2018-09-191-1/+44
|
* Corrected how we force a redisplay in pyreadlineKevin Van Brunt2018-06-221-4/+6
|
* Added tab completion of Python identifiers when running the Python consoleKevin Van Brunt2018-05-231-2/+11
|
* Stopped sharing history between cmd2 and python consoleKevin Van Brunt2018-05-231-0/+23
|
* Added warning if tab completion will be disabled. Not allowing libeditKevin Van Brunt2018-05-071-4/+6
|
* Started adding type hintsTodd Leonhardt2018-04-191-5/+1
|
* Identified and marked a few blocks of code that can't be reached during unit ↵Eric Lin2018-04-191-3/+4
| | | | tests due to the lack of a real terminal. Some more comments.
* Addresses comments on #362Eric Lin2018-04-191-1/+3
|
* Merge remote-tracking branch 'origin/master' into autocompleterEric Lin2018-04-181-0/+63
Updated AutoCompleter (#349) to match new directory structure from packaging effort.