From f882e01ed4c54801dd1eb32904032053812e9700 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 2 Nov 2019 16:53:51 -0700 Subject: [PATCH] add some debugging around reading console output --- src/mux/mod.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mux/mod.rs b/src/mux/mod.rs index 342008d65..6b6fe99c8 100644 --- a/src/mux/mod.rs +++ b/src/mux/mod.rs @@ -68,6 +68,17 @@ fn read_from_tab_pty(config: Arc, tab_id: TabId, mut reader: Box { lim.blocking_admittance_check(size as u32); let data = buf[0..size].to_vec(); + /* + match std::str::from_utf8(&data) { + Ok(s) => { + let chars: Vec = s.chars().map(|c| c as u32).collect(); + error!("read chars: {:x?}", chars); + } + Err(e) => { + error!("couldn't convert to string: {:?}", e); + } + } + */ Future::with_executor(executor(), move || { let mux = Mux::get().unwrap(); if let Some(tab) = mux.get_tab(tab_id) {