From d5953e52f0df8ca6727e71fa07f147467a7369c1 Mon Sep 17 00:00:00 2001
From: Jonas Maier <>
Date: Sun, 3 May 2026 09:15:04 +0200
Subject: complete keybind overhaul, not working, afraid to loose it
---
src/rw.rs | 34 +++++++++++++++++++++++-----------
1 file changed, 23 insertions(+), 11 deletions(-)
(limited to 'src/rw.rs')
diff --git a/src/rw.rs b/src/rw.rs
index 601a2ec..89f6d76 100644
--- a/src/rw.rs
+++ b/src/rw.rs
@@ -13,12 +13,14 @@ use std::{
use nix::poll::{PollFd, PollFlags};
pub enum Input {
+ Null,
Stdin,
Pipe(PipeReader),
File(File),
}
pub enum Output {
+ Null,
Stdout,
Pipe(PipeWriter),
File(File),
@@ -27,6 +29,7 @@ pub enum Output {
impl From for Stdio {
fn from(value: Input) -> Self {
match value {
+ Input::Null => Stdio::null(),
Input::Stdin => Stdio::inherit(),
Input::Pipe(reader) => reader.into(),
Input::File(file) => file.into(),
@@ -37,6 +40,7 @@ impl From for Stdio {
impl From