add some debugging around reading console output

This commit is contained in:
Wez Furlong committed 2019-11-02 16:53:51 -07:00
1 parent 047a58a6e9
commit f882e01ed4
1 file changed
+11
+11
View File
@@ -68,6 +68,17 @@ fn read_from_tab_pty(config: Arc<Config>, tab_id: TabId, mut reader: Box<dyn std
Ok(size) => {
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<u32> = 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) {