add some debugging around reading console output
This commit is contained in:
1 parent
047a58a6e9
commit
f882e01ed4
1 file changed
+11
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user