Commit graph

110 commits

Author SHA1 Message Date
Darren Burns
55b562ccdd
Add test around nested captures 2022-06-29 14:53:44 +01:00
Darren Burns
03e858ba75
Add docstrings 2022-06-16 12:52:08 +01:00
Darren Burns
3c1159d2e8
Ensure the correct stuff is written to stdout when recording and capturing 2022-06-16 10:27:05 +01:00
Darren Burns
051dd0452c
Fix interaction between Console capture and record 2022-06-15 17:07:04 +01:00
Will McGugan
6b824b6477 test fix 2022-05-24 07:30:25 +01:00
Will McGugan
2d44195482 svg fixes 2022-05-23 16:54:07 +01:00
Will McGugan
b423f742ad refinements to SVG out 2022-05-23 09:43:12 +01:00
Will McGugan
bcf6cff58d test fix 2022-05-08 15:40:48 +01:00
Will McGugan
1e0e33e944 tweaked backgorund and border of terminal 2022-05-08 15:37:30 +01:00
Will McGugan
4761fa9eeb fix test 2022-05-08 12:16:23 +01:00
Darren Burns
5a999f49f9
Render height fix (#2246)
* Fix issue where height - totalvpad < 0 would cause render_lines crash

* Update changelog
2022-05-03 13:23:43 +01:00
Will McGugan
95db6abced made dim less dim 2022-05-03 10:32:13 +01:00
Will McGugan
fd6dea6356 fix tests 2022-05-03 10:19:58 +01:00
Will McGugan
95049662d6 fix background 2022-05-02 20:18:28 +01:00
Will McGugan
b290fdcc55 no hash 2022-05-02 20:07:50 +01:00
Will McGugan
79a4245cd1 tweaks 2022-05-02 19:52:21 +01:00
Will McGugan
7f8565c10a tweaks 2022-05-02 17:44:20 +01:00
Will McGugan
113997ac51 SVG output 2022-05-02 16:20:23 +01:00
Darren Burns
8a9e9a2022
SVG export - Safari - Prevent box appearing on rounded corners (#2201)
* Use box-shadow instead of outline for Safari support

* Update changelog re Safari SVG export square corner bug
2022-04-20 09:53:26 +01:00
Darren Burns
cb56ec7ebb
Setting terminal window title (#2200)
* Adding tests for setting console title

* Add Windows note

* Update changelog regarding changing terminal window title

* Add test for window title control code -> legacy windows conversion

* Fix docstring typo
2022-04-19 17:20:17 +01:00
Will McGugan
e3fdf33043
Merge pull request #2170 from Textualize/console-svg-isolate-css-selectors-and-font-name
[console] namespace SVG elements to avoid conflicts with surrounding HTML page
2022-04-06 13:45:53 +01:00
Olivier Philippon
d98d671c49 Fall back to sys.__stderr__ on non-Windows OS to get size
This fixes the "pipe" bug, where we could not determine the available size correctly when the output of Rich is piped to another process
2022-04-06 11:37:56 +01:00
Olivier Philippon
b4ec058305 [console] SVG elements namespacing is now done with a hash of the content 2022-04-06 09:46:19 +01:00
Olivier Philippon
55c80fbeb1 [console] PR feedback on SVG elements namespacing 2022-04-05 16:29:32 +01:00
Olivier Philippon
ec3e849737 [console] namespace SVG elements to avoid conflicts with surrounding HTML page 2022-04-05 15:08:30 +01:00
Darren Burns
9f43cccfce
Exporting console content to SVG (#2101)
* Add skeleton export_svg and save_svg methods to Console

* Exporting SVG

* SVG export - Writing HTML foreign object into naively calculated SVG rect background

* Exporting as foreign object SVG

* Working with drop-shadow

* Update terminal output style to include tab and background/border

* Add more terminal themes, support dim, reverse in SVG output

* Fix some HTML export tests

* Allow for templating of SVG output

* Fix mypy issue involving shadowed variable in SVG export

* Remove unused code from main block in console.py

* Remove unused record=True in __main__.py Console init

* Small tidy ups in console.py SVG export

* Add test for exporting to SVG

* Add tests for export SVG and save SVG

* Update docs with info on SVG exports

* Add support for blink and blink2 to SVG export, use Fira Code webfont fallback

* Update tests for SVG exporting

* Add more information to docs about SVG exporting

* Update SVG exporting tests

* Explain how to use different terminal theme in SVG export docs

* Remove some development testing code

* Remove some more testing code

* Improve docs, fix typo

* Fixing a typo

* Add note to changelog about SVG export functionality

* Use CSS styling instead of inline styles on SVG export

* Fix issues noted in code review, fix reverse style

* Update SVG used in Rich docs
2022-03-29 17:34:14 +01:00
Will McGugan
79e5f9523d test env 2022-03-10 11:13:27 +00:00
Will McGugan
0f17da17f3 force env 2022-03-10 11:09:38 +00:00
Will McGugan
8a4432892d remove deprecated test 2022-03-10 11:00:32 +00:00
Will McGugan
e4c9fc22d7 test reset height 2022-03-10 10:47:19 +00:00
Darren Burns
c938561c16
Fix printing JSON highlighting when indent=None 2022-03-07 17:01:02 +00:00
Will McGugan
13589da335 for environment to empty in tests 2022-01-05 14:40:36 +00:00
Will McGugan
55e11902ab optimizations 2021-11-25 20:47:09 +00:00
Will McGugan
3c811afa91 special case for Text 2021-11-16 14:41:30 +00:00
Will McGugan
f60dcd168a disable legacy windows 2021-11-09 17:43:23 +00:00
Will McGugan
5d601fabc3 pass dumps params 2021-11-05 11:09:03 +00:00
Will McGugan
8cf9b684f3 formatting 2021-11-05 10:59:01 +00:00
Will McGugan
e1c105b8f0 fix detect color 2021-11-05 10:26:02 +00:00
Laurent Peuch
8a33ce27db fix a edge case bug when running under pytest 2021-10-13 17:39:30 +02:00
Tushar Sadhwani
4253a26c49 Use builtin html.escape 2021-09-04 00:08:58 +05:30
Will McGugan
cfb7532190 test 2021-08-29 15:41:56 +01:00
Will McGugan
f03b9b7fd8 version bump 2021-08-29 15:34:13 +01:00
Will McGugan
6e76b2216f added print_json 2021-08-28 15:04:06 +01:00
Will McGugan
ff43bae4eb .on methods and name changes 2021-07-28 09:10:23 +01:00
Will McGugan
aba4c7b623 Added max height 2021-07-11 14:25:14 +01:00
Will McGugan
d926952066 tests 2021-06-27 16:01:12 +01:00
Will McGugan
3281af6f3b auto repr 2021-06-18 20:24:05 +01:00
Will McGugan
41cc6a6ff2 added meta to Style 2021-06-17 22:31:08 +01:00
Will McGugan
f1492a04d6 skip alt screen if LW 2021-03-25 21:14:40 +00:00
Will McGugan
be5e9dca2d rich measure 2021-03-25 21:08:36 +00:00