mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-02 16:08:39 +00:00
Move title change timer to SurfaceView and call it from Ghostty.App instead of terminal controllers
This commit is contained in:
@@ -13,6 +13,10 @@ extension Ghostty {
|
||||
// changed with escape codes. This is public because the callbacks go
|
||||
// to the app level and it is set from there.
|
||||
@Published var title: String = "👻"
|
||||
|
||||
// A small delay that is introduced before a title change to avoid flickers
|
||||
var titleChangeDelay: TimeInterval = 0.075
|
||||
var titleChangeTimer: Timer?
|
||||
|
||||
// The current pwd of the surface as defined by the pty. This can be
|
||||
// changed with escape codes.
|
||||
|
Reference in New Issue
Block a user