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

@@ -8,12 +8,16 @@ final class AppSettingsControllerTests: XCTestCase {
var settings = AppSettings.default
settings.terminal.shellPath = "/opt/homebrew/bin/fish"
settings.terminal.scrollbackLines = 12_000
settings.terminal.backendRawValue = TerminalBackendPreference.swiftTerm.rawValue
settings.terminal.termTypeRawValue = TerminalTermTypePreference.xterm256color.rawValue
store.storedSettings = settings
let controller = AppSettingsController(store: store)
XCTAssertEqual(controller.terminalSessionConfiguration.shellPath, "/opt/homebrew/bin/fish")
XCTAssertEqual(controller.terminalSessionConfiguration.scrollbackLines, 12_000)
XCTAssertEqual(controller.terminalSessionConfiguration.backendPreference, .swiftTerm)
XCTAssertEqual(controller.terminalSessionConfiguration.termTypePreference, .xterm256color)
}
func testTerminalSizePresetsDecodeFromTypedSettings() {