MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / set_title

Function set_title

crates/opencode-tui/src/terminal.rs:5–7  ·  view source on GitHub ↗
(title: &str)

Source from the content-addressed store, hash-verified

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

Callers 2

set_session_titleFunction · 0.85
reset_titleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected