summaryrefslogtreecommitdiff
path: root/cmd2/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Renamed ansi_safe_wcswidth() to style_aware_wcswidth()Kevin Van Brunt2019-12-191-5/+5
| | | | Renamed ansi_aware_write() to style_aware_write()
* Changed allow_ansi to allow_style for accuracy in what types of ANSI escape ↵Kevin Van Brunt2019-12-191-5/+5
| | | | sequences are handled
* Renamed functions based on code review comments. Fixed Python warnings.Kevin Van Brunt2019-12-091-21/+18
|
* Added more text alignment unit testsKevin Van Brunt2019-12-091-0/+6
|
* Adding unit tests for text alignment functionsKevin Van Brunt2019-12-091-15/+13
|
* Updated center_text to support ansi escape sequences and characters with ↵Kevin Van Brunt2019-12-091-16/+148
| | | | | | display widths greater than 1. Also added left and right justification functions.
* Fixed bug where pipe processes were not being stopped by Ctrl-C on WindowsKevin Van Brunt2019-11-181-2/+4
|
* Fixed ProcessLookupErrorKevin Van Brunt2019-11-171-1/+5
|
* Fixed bug where pipe processes were not being stopped by Ctrl-C on Linux/MacKevin Van Brunt2019-11-171-3/+4
|
* Updated docstring of which to be more accurate in its purposeKevin Van Brunt2019-10-301-11/+11
|
* Fixed a few commands that would have failed if arguments containing quotes ↵Kevin Van Brunt2019-07-241-6/+11
| | | | were used
* Fixed commentKevin Van Brunt2019-07-221-1/+1
|
* Reduced complexity of complete()Kevin Van Brunt2019-07-171-1/+1
|
* Merge branch 'master' into auto_completer_refactorKevin Van Brunt2019-07-061-0/+1
|\
| * Major overhaul of documentation structure for #709kotfu2019-07-021-0/+1
| |
* | Moved basic_complete to utilsKevin Van Brunt2019-07-021-0/+16
|/
* Moved code related to ANSI escape codes to new file called ansi.pyKevin Van Brunt2019-06-261-62/+0
|
* Added bold and underline to style()Kevin Van Brunt2019-06-261-4/+16
|
* Removed unneeded (optional) text from docstringsKevin Van Brunt2019-06-261-3/+3
|
* Renamed style_message to styleKevin Van Brunt2019-06-261-5/+5
|
* Removed end argument from style_messageKevin Van Brunt2019-06-251-3/+1
|
* Fix flake8 errors, don't use Style.RESET, fix docstring, change some ↵Daniel Ahn2019-06-241-2/+4
| | | | pexcept() calls to perror()
* Initial Commit for Issue 698xNinjaKittyx2019-06-241-0/+29
|
* Added center_text() utility function for centering text in a terminal along ↵Todd Leonhardt2019-06-161-0/+16
| | | | | | with unit tests for it This function isn't used yet, but I have plans to use it when improving the output of transcript testing
* Fixed a few comments where "redirecting" accidentally got changed to ↵Todd Leonhardt2019-06-151-1/+1
| | | | "_redirecting"
* Began work to minimize public APITodd Leonhardt2019-06-151-1/+30
|
* Moved a new helper function from cmd2.py to utils.py where it probably belongedTodd Leonhardt2019-06-071-0/+16
|
* Extracted duplicated code to utility functionTodd Leonhardt2019-06-061-0/+13
|
* Preserving originally typed quotes of Statement.output_to for use in ↵Kevin Van Brunt2019-05-131-14/+23
| | | | Statement.post_command()
* Updated a commentKevin Van Brunt2019-05-081-1/+1
|
* Added capability to redirect pipe commands and chain them togetherKevin Van Brunt2019-05-071-0/+21
|
* Broke _complete_statement into 2 functions.Kevin Van Brunt2019-05-051-4/+5
| | | | Fixed issue where terminators could not be used in alias/macro values.
* Removing support for wrapping binary streams since cmd2 assumes stdout will ↵Kevin Van Brunt2019-04-251-10/+29
| | | | be a text stream in all of its code like poutput()
* Clearing bytearray instead of creating a new objectKevin Van Brunt2019-04-111-1/+1
|
* Fixed issue where pointer to bytearray was being returned instead of copied ↵Kevin Van Brunt2019-04-111-1/+1
| | | | bytes
* Fixed minor grammatical errorTodd Leonhardt2019-04-031-1/+1
|
* Attempt to fix unit testsTodd Leonhardt2019-04-021-2/+6
|
* Added some unit tests for ProcReader and ContextFlag utility classesTodd Leonhardt2019-04-021-1/+0
|
* Fix flake8 warningTodd Leonhardt2019-04-021-2/+0
|
* Started addressing my PR commentsTodd Leonhardt2019-04-021-11/+32
|
* Renamed stuff and removed unneeded KeyboardInterrupt protectionKevin Van Brunt2019-03-271-13/+8
|
* Made ContextFlag reentrantKevin Van Brunt2019-03-241-9/+12
|
* Forward SIGINT to current pipe process instead of terminating it. This is ↵Kevin Van Brunt2019-03-231-0/+5
| | | | | | consistent with our do_shell() command, ppaged() command, and other shells.
* Added protection from SIGINT when in a critical section of codeKevin Van Brunt2019-03-221-8/+34
|
* Changed StdSim byte buffer into a bytearrayKevin Van Brunt2019-03-211-1/+1
|
* Removed unused importKevin Van Brunt2019-03-201-1/+0
|
* Terminate pipe processes instead of sending them SIGINTsKevin Van Brunt2019-03-201-3/+3
|
* Not running command if redirection failsKevin Van Brunt2019-03-201-3/+3
|
* Handled issue where nested pipe processes were not being closed in the right ↵Kevin Van Brunt2019-03-201-8/+14
| | | | order upon SIGINT events
* Updated ppaged to not use self.pipe_procKevin Van Brunt2019-03-201-0/+4
|