summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-01-31 13:50:14 -0500
committerLLLL Colonq <llll@colonq>2025-01-31 13:50:14 -0500
commitc4f96d2b3f3b3878d6e0bbca7e0c4cd3f5d8bc85 (patch)
tree422e7075f191badb3ccee2c02bd24332e6ee5b9e /src/main.rs
parent7e1ccc9f3e83d7b807ffaa7706085437df69fb67 (diff)
Terminal (it doesn't do the colors right for some reason)
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 8306cae..af8e753 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -15,7 +15,11 @@ pub async fn main() {
.arg_required_else_help(true)
.subcommand(
Command::new("overlay")
- .about("Run the LCOLONQ model renderer / overlay")
+ .about("Run the LCOLONQ model renderer in a full-screen transparent overlay")
+ )
+ .subcommand(
+ Command::new("terminal")
+ .about("Run the LCOLONQ model renderer in a terminal")
)
.subcommand(
Command::new("server")
@@ -24,7 +28,10 @@ pub async fn main() {
.get_matches();
match matches.subcommand() {
Some(("overlay", _cm)) => {
- teleia::run("LCOLONQ", 1920, 1080, true, common::overlay::Overlay::new).await;
+ teleia::run("LCOLONQ", 1920, 1080, teleia::Options::OVERLAY, common::overlay::Overlay::overlay).await;
+ },
+ Some(("terminal", _cm)) => {
+ teleia::run("LCOLONQ", 1920, 1080, teleia::Options::HIDDEN, common::overlay::Overlay::terminal).await;
},
Some(("server", _cm)) => {
env_logger::Builder::new().filter(None, log::LevelFilter::Info).init();