mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
add support for cursor text colors
fix no tabs being selected when opening a 2nd session 💀
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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