From b32495bd359fa25b9cd4d52e72da1e24630a0663 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 12 Dec 2021 12:12:23 +0100 Subject: bin: allow specifying the console on the command line As in: $ vtcol --console /dev/tty6 colors get solarized $ vtcol --console /dev/tty6 colors set phosphor $ vtcol --console /dev/tty6 colors get phosphor That simplifies testing so much I wonder why the heck I needed this long to finally implement it. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 64cf6f3..4ff9bba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -921,7 +921,7 @@ impl Console Ok(fd) } - fn from_path>(path: P) -> io::Result + pub fn from_path>(path: P) -> io::Result { let p = std::ffi::CString::new(path.as_ref().to_str().unwrap()).unwrap(); -- cgit v1.2.3