add experimental null char handling
All checks were successful
Rust / build (pull_request) Successful in 6m23s

This commit is contained in:
Vinzenz Schroeter 2025-07-12 13:59:38 +02:00
parent 5dcdd0f311
commit 625e561ba3
3 changed files with 20 additions and 10 deletions

2
Cargo.lock generated
View file

@ -1526,7 +1526,7 @@ dependencies = [
[[package]]
name = "servicepoint-simulator"
version = "0.2.3"
version = "0.2.4"
dependencies = [
"clap",
"env_logger",

View file

@ -1,6 +1,6 @@
[package]
name = "servicepoint-simulator"
version = "0.2.3"
version = "0.2.4"
edition = "2021"
publish = true
license = "GPL-3.0-or-later"

View file

@ -42,14 +42,24 @@ Make sure to run a release build, because a debug build _way_ slower.
Usage: servicepoint-simulator [OPTIONS]
Options:
--bind <BIND> address and port to bind to [default: 0.0.0.0:2342]
-f, --font <FONT> The name of the font family to use. This defaults to the system monospace font.
-s, --spacers add spacers between tile rows to simulate gaps in real display
-r, --red Use the red color channel
-g, --green Use the green color channel
-b, --blue Use the blue color channel
-v, --verbose Set default log level lower. You can also change this via the RUST_LOG environment variable.
-h, --help Print help
--bind <BIND>
address and port to bind to [default: 0.0.0.0:2342]
-f, --font <FONT>
The name of the font family to use. This defaults to the system monospace font.
-s, --spacers
add spacers between tile rows to simulate gaps in real display
-r, --red
Use the red color channel
-g, --green
Use the green color channel
-b, --blue
Use the blue color channel
-v, --verbose
Set default log level lower. You can also change this via the RUST_LOG environment variable.
--experimental-null-char-handling
When receiving a null byte as a char in the CharGridCommand, do not overwrite any pixels instead of clearing all pixels.
-h, --help
Print help
```
See [env_logger](https://docs.rs/env_logger/latest/env_logger/) to configure logging.