summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
new file mode 100644
index 0000000..bdd3ba3
--- /dev/null
+++ b/src/config.rs
@@ -0,0 +1,19 @@
+// bytes that make up a `.ttf` file
+pub const FONT: &[u8] = std::include_bytes!("../fonts/Miracode.ttf");
+
+// model parameters
+// standard for vte: 80, 24, and whatever happens to work on your screen
+pub const MODEL_WIDTH: usize = 80;
+pub const MODEL_HEIGHT: usize = 24;
+pub const MODEL_SCALE: f32 = 0.01;
+
+// window parameters
+pub const WINDOW_TITLE: &str = "rustty";
+pub const WINDOW_TARGET_FPS: usize = 60;
+
+// input buffer size
+pub const INPUT_BUFFER_SIZE: usize = 2048;
+
+// environment variables
+pub const ENV_TERM: &str = "vt100";
+pub const ENV_PATH: &str = "/run/current-system/sw/bin";