1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00

gui: add target triple to debug overlay

This helps to understand the OS in user reports
This commit is contained in:
Wez Furlong 2023-01-09 15:52:16 -07:00
parent 4ec428ff75
commit f268964a65
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -195,13 +195,15 @@ pub fn show_debug_overlay(
term.render(&changes)
}
let version = config::wezterm_version();
let triple = config::wezterm_target_triple();
term.render(&[Change::Text(format!(
"Debug Overlay\r\n\
wezterm version: {}\r\n\
wezterm version: {version} {triple}\r\n\
OpenGL version: {opengl_info}\r\n\
Enter lua statements or expressions and hit Enter.\r\n\
Press ESC or CTRL-D to exit\r\n",
config::wezterm_version()
))])?;
loop {