Skip to content

Commit aa64135

Browse files
authored
feat: otty-pty v0.1.0
1 parent 131de1c commit aa64135

14 files changed

Lines changed: 1527 additions & 10 deletions

File tree

Cargo.lock

Lines changed: 292 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
resolver = "3"
33
members = [
44
"otty-escape",
5+
"otty-pty",
56
"otty-vte",
67
]
78

@@ -13,4 +14,5 @@ rust-version = "1.87.0"
1314
thiserror = "2.0.17"
1415
bitflags = "2.10.0"
1516
log = { version = "0.4.28" }
16-
17+
anyhow = "1.0.100"
18+
mio = "1.1.0"

otty-escape/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "otty-escape"
33
homepage = "https://otty.sh"
44
repository = "https://github.com/otty-shell/otty"
5-
description = "Library for writing terminal emulators"
5+
description = "Library for parsing raw bytes to UI frendly actions"
66
authors = ["Ilya Shvyryalkin <ilyashvy@gmail.com>"]
77
version = "0.1.0"
88
license = "Apache-2.0"

otty-escape/src/charset.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
1+
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
22
pub enum Charset {
33
/// ASCII Character set
4+
#[default]
45
Ascii,
56
/// DEC Line Drawing Character set
67
DecLineDrawing,
78
}
89

9-
impl Default for Charset {
10-
fn default() -> Self {
11-
Self::Ascii
12-
}
13-
}
14-
1510
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
1611
pub enum CharsetIndex {
1712
/// Designate G0 Character Set

otty-pty/Cargo.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "otty-pty"
3+
homepage = "https://otty.sh"
4+
repository = "https://github.com/otty-shell/otty"
5+
description = "Library for working with pty"
6+
authors = ["Ilya Shvyryalkin <ilyashvy@gmail.com>"]
7+
version = "0.1.0"
8+
license = "Apache-2.0"
9+
readme = "./README.md"
10+
edition.workspace = true
11+
rust-version.workspace = true
12+
13+
[dependencies]
14+
anyhow.workspace = true
15+
thiserror.workspace = true
16+
mio = { workspace = true, features = ["os-ext", "net"] }
17+
ssh2 = "0.9.5"
18+
19+
[target.'cfg(unix)'.dependencies]
20+
nix = { version = "0.30.1", features = ["term"]}
21+
signal-hook = "0.3.18"

0 commit comments

Comments
 (0)