First Check
Commit to Help
Example Code
script -q -c "python data_stream_measurement/main.py --help" test.out
cat test.out | ./ansi2html.sh test.html
Description
Within the typer documentation, termynal is used to interactively show the typer features etc. They are also all styled like the typical terminal output. It would be awesome, if I could replicate this for my typer app documentation.
I tried to capture the terminal styling with several approaches:
- Capture output as html -> didn't work
- Use
script to capture the terminal and afterwards use ansi2html -> still no coloring
Is there a way, to get the typer output saved into a file, with the html styling? So I could copy that to my markdown?
Operating System
Linux
Operating System Details
Ubuntu 20.04
Typer Version
0.7.0
Python Version
3.8.10
Additional Context
No response
First Check
Commit to Help
Example Code
Description
Within the typer documentation, termynal is used to interactively show the typer features etc. They are also all styled like the typical terminal output. It would be awesome, if I could replicate this for my typer app documentation.
I tried to capture the terminal styling with several approaches:
scriptto capture the terminal and afterwards useansi2html-> still no coloringIs there a way, to get the typer output saved into a file, with the html styling? So I could copy that to my markdown?
Operating System
Linux
Operating System Details
Ubuntu 20.04
Typer Version
0.7.0
Python Version
3.8.10
Additional Context
No response