Fix ghostty performance. Improve keyboard and input mode handling

This commit is contained in:
2026-05-04 14:16:02 +10:00
parent 8aa57ee3d7
commit 616489c69e
532 changed files with 18709 additions and 347 deletions

View File

@@ -306,7 +306,14 @@ private final class TestAppSettingsStore: AppSettingsStoreType {
}
private final class ScreenRegistryTestSettingsProvider: TerminalSessionConfigurationProviding {
let terminalSessionConfiguration = TerminalSessionConfiguration(fontSize: 13, theme: .terminalApp, shellPath: "", scrollbackLines: 500)
let terminalSessionConfiguration = TerminalSessionConfiguration(
fontSize: 13,
theme: .terminalApp,
shellPath: "",
scrollbackLines: 500,
backendPreference: .ghostty,
termTypePreference: .automatic
)
let hotkeySettings = AppSettings.default.hotkeys
let terminalSizePresets = TerminalSizePresetStore.loadDefaults()
}
@@ -318,8 +325,17 @@ private struct ScreenRegistryUnusedTerminalSessionFactory: TerminalSessionFactor
theme: TerminalTheme,
shellPath: String,
scrollbackLines: Int,
backendPreference: TerminalBackendPreference,
termTypePreference: TerminalTermTypePreference,
initialDirectory: String?
) -> TerminalSession {
_ = fontSize
_ = theme
_ = shellPath
_ = scrollbackLines
_ = backendPreference
_ = termTypePreference
_ = initialDirectory
fatalError("ScreenRegistryTests should not create live terminal sessions.")
}
}