File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ pub enum TerminalEmulator {
1515 Mlterm ,
1616 St ,
1717 Xterm ,
18+ Ghostty ,
1819 Unknown ,
1920}
2021
@@ -64,13 +65,14 @@ impl TerminalEmulator {
6465 TerminalEmulator :: Mlterm => term == "mlterm" ,
6566 TerminalEmulator :: St => term == "st-256color" ,
6667 TerminalEmulator :: Xterm => [ "xterm" , "xterm-256color" ] . contains ( & term) ,
68+ TerminalEmulator :: Ghostty => term_program. contains ( "ghostty" ) ,
6769 TerminalEmulator :: Unknown => true ,
6870 }
6971 }
7072
7173 fn supports_graphics_mode ( & self , mode : & GraphicsMode ) -> bool {
7274 match ( mode, self ) {
73- ( GraphicsMode :: Kitty { mode, inside_tmux } , Self :: Kitty | Self :: WezTerm ) => match mode {
75+ ( GraphicsMode :: Kitty { mode, inside_tmux } , Self :: Kitty | Self :: WezTerm | Self :: Ghostty ) => match mode {
7476 KittyMode :: Local => local_mode_supported ( * inside_tmux) . unwrap_or_default ( ) ,
7577 KittyMode :: Remote => true ,
7678 } ,
You can’t perform that action at this time.
0 commit comments