Commit graph

3376 commits

Author SHA1 Message Date
Will McGugan
8c6d1cdcc9
Merge pull request #2044 from Textualize/ansi-to-win32
simplify prompt
2022-03-10 10:39:40 +00:00
Will McGugan
568b9517b6 simplify prompt 2022-03-10 10:37:15 +00:00
Will McGugan
7cd8d57ce5 reset height of children 2022-03-09 22:00:12 +00:00
Will McGugan
c2b0e32f27 bump version 2022-03-09 11:59:28 +00:00
Will McGugan
1efc0f0009
Merge pull request #1993 from Textualize/ansi-to-win32
Conversion of Segments to Windows Console API calls on legacy Windows platform
2022-03-09 11:54:18 +00:00
Will McGugan
91e0146385 check win32 2022-03-09 11:48:16 +00:00
Will McGugan
8fe170ad04
Merge branch 'master' into ansi-to-win32 2022-03-09 10:53:12 +00:00
Will McGugan
27c2ba68bd
Merge pull request #2038 from Textualize/print-json-indent-fix
Fix highlighting issue when printing JSON that isn't indented
2022-03-08 16:30:44 +00:00
Darren Burns
03392a1bf5
Merge branch 'master' of github.com:Textualize/rich 2022-03-08 16:26:18 +00:00
Darren Burns
94a10747c1
Some improvements on JSON highlighting 2022-03-08 16:06:54 +00:00
Darren Burns
9e3ae26b78
Update CHANGELOG.md r.e. fix for incorrect non-indented JSON highlighting 2022-03-08 15:44:36 +00:00
Darren Burns
0dd591c07d
Update CHANGELOG.md r.e. fix for incorrect non-indented JSON highlighting 2022-03-08 15:44:30 +00:00
Darren Burns
93e584c47c
Add extra JSON highlighting tests 2022-03-08 15:43:35 +00:00
Darren Burns
7ce9bcabcd
Remove unused json import in highlighter.py 2022-03-08 15:30:51 +00:00
Darren Burns
c9b70864e3
Fix JSON key highlighting when no indentation 2022-03-08 15:21:50 +00:00
Darren Burns
8e3d8e8253
Merge branch 'master' of github.com:Textualize/rich into print-json-indent-fix 2022-03-08 14:21:05 +00:00
Will McGugan
b9b99ad770
Merge pull request #2037 from Textualize/repl-inspect-fix
Handle case inspect fails on repl-defined objects
2022-03-08 14:15:16 +00:00
Will McGugan
9b3ca31d12
Merge pull request #2031 from Textualize/pretty-named-tuples
Add support for named tuples to pretty
2022-03-08 14:14:31 +00:00
Darren Burns
5d64431242
Reworking pretty namedtuples support, more defensive 2022-03-08 14:06:20 +00:00
Darren Burns
4febd6e4aa
More defensive introspection in pretty.py for namedtuples 2022-03-08 13:38:54 +00:00
Darren Burns
38aa939341
Add note to CHANGELOG about fix for inspecting REPL defined objects 2022-03-08 13:24:11 +00:00
Darren Burns
b67fd39eb5
Handle case inspect fails on repl-defined objects 2022-03-08 13:10:02 +00:00
Darren Burns
709b6d39bf
Fix namedtuple typing error 2022-03-08 11:41:48 +00:00
Darren Burns
26910c309d
In Pretty, when namedtuples have custom reprs, use them instead of our own 2022-03-08 11:38:52 +00:00
Darren Burns
c938561c16
Fix printing JSON highlighting when indent=None 2022-03-07 17:01:02 +00:00
Darren Burns
06a3edb6b4
"Fix" spelling in docstring 2022-03-07 13:41:25 +00:00
Darren Burns
aa3bc79a4f
Add a docstring to pretty._is_namedtuple 2022-03-07 13:38:42 +00:00
Darren Burns
934c6ef720
Testing pretty.py - objects similar to namedtuples, namedtuple max_depth 2022-03-07 13:31:56 +00:00
Darren Burns
a95c1f1c48
Update changelog r.e. support for namedtuple in pretty 2022-03-07 11:42:03 +00:00
Darren Burns
5d3cc7ea8c
Add support for named tuples to pretty 2022-03-07 11:38:51 +00:00
Will McGugan
8e649fea51
Merge pull request #2029 from sanders41/print-json-type
Fix print_json indent type
2022-03-07 11:19:49 +00:00
Darren Burns
9b76da283e
Merge pull request #2019 from Textualize/ansi-to-win32_pull-request-fixes
Add support for bold, dim, and reverse on legacy Windows consoles
2022-03-07 10:45:11 +00:00
Paul Sanders
19a861a4a5 Update CHANGELOG.md and CONTRIBUTORS.md 2022-03-06 19:50:46 -05:00
Paul Sanders
96760b9e36 Fix print_json indent type to Union[None, int, str] 2022-03-06 19:50:05 -05:00
Darren Burns
81c4dc4115
Add docstrings to Windows console wrapper functions 2022-03-03 17:13:45 +00:00
Darren Burns
ca3e966de9 Handle legacy windows error 2022-03-03 16:14:01 +00:00
Darren Burns
8f738c7f2a Support reverse, bold (bright), and dim 2022-03-03 15:13:25 +00:00
Darren Burns
5a051f9f8d Make GetConsoleMode Windows Console wrapper more Pythonic 2022-03-03 14:31:35 +00:00
Darren Burns
d87498bf36 Use bitwise operators in LegacyWindowsTerm, fix formatting 2022-03-03 14:23:55 +00:00
Darren Burns
1122501d62 Use WriteConsoleW instead of file.write(...) in LegacyWindowsTerm 2022-03-03 13:54:38 +00:00
Darren Burns
ceef724ecd
Use Windows Console API to write text 2022-03-03 11:36:33 +00:00
Darren Burns
28786c7c31 Merge branch 'ansi-to-win32' of https://github.com/Textualize/rich into ansi-to-win32 2022-03-02 12:42:04 +00:00
Darren Burns
80912a5bae Update CHANGELOG.md 2022-03-02 12:41:07 +00:00
Darren Burns
75253775bc
Use Python 3.6 & 3.7 compatible means of acceessing mock call args/kwargs in test 2022-03-02 11:50:07 +00:00
Darren Burns
862416acf4
Fix typing issues 2022-03-02 11:25:23 +00:00
Darren Burns
151276b2cf
Run legacy Windows tests on Windows only 2022-03-02 11:17:31 +00:00
Darren Burns
7d08e0a7cd Fixing test module on non-Windows platforms 2022-03-01 16:23:05 +00:00
Darren Burns
97d05f592a Fixing test module on non-Windows platforms 2022-03-01 16:19:18 +00:00
Darren Burns
501dcbdfe8 Add tests for LegacyWindowsTerm 2022-03-01 16:15:21 +00:00
Darren Burns
bb9ab3cfaa Merge branch 'master' of https://github.com/Textualize/rich into ansi-to-win32 2022-03-01 13:37:40 +00:00