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

Function set_session_title

crates/opencode-tui/src/terminal.rs:9–11  ·  view source on GitHub ↗
(session_title: &str)

Source from the content-addressed store, hash-verified

7}
8
9pub fn set_session_title(session_title: &str) -> io::Result<()> {
10 set_title(&format!("{} ({}) - {}", APP_NAME, APP_SHORT_NAME, session_title))
11}
12
13pub fn reset_title() -> io::Result<()> {
14 set_title(&format!("{} ({})", APP_NAME, APP_SHORT_NAME))

Callers

nothing calls this directly

Calls 1

set_titleFunction · 0.85

Tested by

no test coverage detected