mirror of
https://github.com/1j01/textual-paint.git
synced 2024-09-11 15:56:03 +03:00
Update development section
This commit is contained in:
parent
8929ed14b6
commit
59c289eaee
13
README.md
13
README.md
@ -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
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
"Haha",
|
"Haha",
|
||||||
"hkey",
|
"hkey",
|
||||||
"𝗟𝙇",
|
"𝗟𝙇",
|
||||||
|
"modd",
|
||||||
"Odhner",
|
"Odhner",
|
||||||
"Playscii",
|
"Playscii",
|
||||||
"pycache",
|
"pycache",
|
||||||
|
Loading…
Reference in New Issue
Block a user