add support for cursor text colors

fix no tabs being selected when opening a 2nd session 💀
This commit is contained in:
neon443 committed 2025-09-01 22:04:23 +01:00
1 parent 8cc1340f3f
commit b981cc3f54
2 files changed
+3 -4

No files matched your search

+2 -3
View File
@@ -135,10 +135,9 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
getTerminal().foregroundColor = theme.foreground
getTerminal().backgroundColor = theme.background
caretColor = theme.cursor.uiColor
setCursorColor(source: getTerminal(), color: theme.cursor, textColor: theme.cursorText)
selectedTextBackgroundColor = theme.selection.uiColor
// TODO: selectedtext and cursor colors
// TODO: selectedtext color
}
func applyScrollbackLength() {
+1 -1
View File
@@ -124,7 +124,7 @@ struct ShellTabView: View {
let oneTabWidth: CGFloat = max(100, (UIScreen.main.bounds.width)/CGFloat(container.sessionIDs.count))
HStack(spacing: 0) {
ForEach(container.sessionIDs, id: \.self) { id in
let selected: Bool = selectedID == id
let selected: Bool = selectedID == id || (selectedID == nil && handler.sessionID == id)
let thisHandler: SSHHandler = container.sessions[id]!.handler
ZStack {
Rectangle()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.