1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-10 15:04:32 +03:00

pretty print output in the debug overlay

This commit is contained in:
Wez Furlong 2022-03-18 07:34:41 -07:00
parent 27088fab28
commit 9db419a3f8

View File

@ -143,7 +143,7 @@ pub fn show_debug_overlay(mut term: TermWizTerminal, gui_win: GuiWin) -> anyhow:
let chunk = host.lua.load(&expr);
match smol::block_on(chunk.eval_async::<Value>()) {
Ok(result) => {
let text = format!("{:?}", ValueWrapper(result));
let text = format!("{:#?}", ValueWrapper(result));
term.render(&[Change::Text(format!("{}\r\n", text.replace("\n", "\r\n")))])?;
}
Err(err) => {