diff options
| author | andromeda <andromeda@lenovo> | 2026-01-27 09:33:50 +0100 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2026-01-27 09:33:50 +0100 |
| commit | c6d10069ab98052ec4d1cf2cdafca7888457264d (patch) | |
| tree | 9244f85432bd956564eb2b0ed3324368eef3b7c6 /src/config.rs | |
| parent | d2ed0e974bb28d4588405153ce443f807e484e76 (diff) | |
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 19 |
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"; |
