Update development section

This commit is contained in:
Isaiah Odhner 2023-04-16 19:23:00 -04:00
parent 8929ed14b6
commit 59c289eaee
2 changed files with 10 additions and 4 deletions

View File

@ -54,16 +54,21 @@ Install Textual and Stransi:
pip install "textual[dev]" "stransi" pip install "textual[dev]" "stransi"
``` ```
Run supporting live-reloading CSS: Run via Textual's CLI for live-reloading CSS support:
```bash ```bash
textual run --dev paint.py textual run --dev "paint.py --clear-screen"
``` ```
Or run normally: Or run more basically:
```bash ```bash
python paint.py python paint.py --clear-screen
``` ```
`--clear-screen` is useful for development, because it's sometimes jarring to see error messages that have actually been fixed, when exiting the program.
There are also launch tasks configured for VS Code, so you can run the program from the Run and Debug panel.
I tried running via `modd` to automatically reload the program when (non-CSS) files change, but it doesn't handle ANSI escape sequences well. I wonder if it would work better now with the `--clear-screen` option. (I could also look for another tool that's more part of the Python ecosystem.)
## License ## License

View File

@ -16,6 +16,7 @@
"Haha", "Haha",
"hkey", "hkey",
"𝗟𝙇", "𝗟𝙇",
"modd",
"Odhner", "Odhner",
"Playscii", "Playscii",
"pycache", "pycache",