File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ use crossterm::event::PopKeyboardEnhancementFlags;
11
11
use crossterm:: event:: PushKeyboardEnhancementFlags ;
12
12
use crossterm:: terminal:: Clear ;
13
13
use crossterm:: terminal:: ClearType ;
14
+ use crossterm:: terminal:: SetTitle ;
14
15
use ratatui:: backend:: CrosstermBackend ;
15
16
use ratatui:: crossterm:: execute;
16
17
use ratatui:: crossterm:: terminal:: disable_raw_mode;
@@ -42,8 +43,13 @@ pub fn init(_config: &Config) -> Result<Tui> {
42
43
) ;
43
44
set_panic_hook ( ) ;
44
45
45
- // Clear screen and move cursor to top-left before drawing UI
46
- execute ! ( stdout( ) , Clear ( ClearType :: All ) , MoveTo ( 0 , 0 ) ) ?;
46
+ // Set terminal title and clear screen and move cursor to top-left before drawing UI
47
+ execute ! (
48
+ stdout( ) ,
49
+ SetTitle ( "Codex CLI" ) ,
50
+ Clear ( ClearType :: All ) ,
51
+ MoveTo ( 0 , 0 )
52
+ ) ?;
47
53
48
54
let backend = CrosstermBackend :: new ( stdout ( ) ) ;
49
55
let tui = Terminal :: with_options ( backend) ?;
You can’t perform that action at this time.
0 commit comments