From 59c289eaee38bf9f5830874adf917a5c931d95a5 Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Sun, 16 Apr 2023 19:23:00 -0400 Subject: [PATCH] Update development section --- README.md | 13 +++++++++---- cspell.json | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5018388..493001b 100644 --- a/README.md +++ b/README.md @@ -54,16 +54,21 @@ Install Textual and Stransi: pip install "textual[dev]" "stransi" ``` -Run supporting live-reloading CSS: +Run via Textual's CLI for live-reloading CSS support: ```bash -textual run --dev paint.py +textual run --dev "paint.py --clear-screen" ``` -Or run normally: +Or run more basically: ```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 diff --git a/cspell.json b/cspell.json index c313bfc..42644fb 100644 --- a/cspell.json +++ b/cspell.json @@ -16,6 +16,7 @@ "Haha", "hkey", "𝗟𝙇", + "modd", "Odhner", "Playscii", "pycache",