(title: &str)
| 3 | use crate::branding::{APP_NAME, APP_SHORT_NAME}; |
| 4 | |
| 5 | pub fn set_title(title: &str) -> io::Result<()> { |
| 6 | crossterm::execute!(io::stdout(), crossterm::terminal::SetTitle(title)) |
| 7 | } |
| 8 | |
| 9 | pub fn set_session_title(session_title: &str) -> io::Result<()> { |
| 10 | set_title(&format!("{} ({}) - {}", APP_NAME, APP_SHORT_NAME, session_title)) |
no outgoing calls
no test coverage detected