macOS: update title comments

This commit is contained in:
Lukas
2026-04-12 12:02:59 +02:00
parent 619e12dc75
commit 8b99c77bf7
2 changed files with 3 additions and 6 deletions

View File

@@ -8,10 +8,8 @@ import GhosttyKit
extension Ghostty {
/// The NSView implementation for a terminal surface.
class SurfaceView: OSSurfaceView, Codable, Identifiable {
// The current title of the surface as defined by the pty. This can be
// changed with escape codes. This is public because the callbacks go
// to the app level and it is set from there.
// changed with escape codes.
@Published private(set) var title: String = "" {
didSet {
if !title.isEmpty {

View File

@@ -5,9 +5,8 @@ extension Ghostty {
/// The UIView implementation for a terminal surface.
class SurfaceView: OSSurfaceView {
// The current title of the surface as defined by the pty. This can be
// 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 = "👻"
// changed with escape codes.
@Published private(set) var title: String = "👻"
// The progress report (if any)
@Published var progressReport: Action.ProgressReport?