mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 05:19:13 +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().foregroundColor = theme.foreground
|
||||||
getTerminal().backgroundColor = theme.background
|
getTerminal().backgroundColor = theme.background
|
||||||
|
|
||||||
caretColor = theme.cursor.uiColor
|
setCursorColor(source: getTerminal(), color: theme.cursor, textColor: theme.cursorText)
|
||||||
selectedTextBackgroundColor = theme.selection.uiColor
|
selectedTextBackgroundColor = theme.selection.uiColor
|
||||||
|
// TODO: selectedtext color
|
||||||
// TODO: selectedtext and cursor colors
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func applyScrollbackLength() {
|
func applyScrollbackLength() {
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ struct ShellTabView: View {
|
|||||||
let oneTabWidth: CGFloat = max(100, (UIScreen.main.bounds.width)/CGFloat(container.sessionIDs.count))
|
let oneTabWidth: CGFloat = max(100, (UIScreen.main.bounds.width)/CGFloat(container.sessionIDs.count))
|
||||||
HStack(spacing: 0) {
|
HStack(spacing: 0) {
|
||||||
ForEach(container.sessionIDs, id: \.self) { id in
|
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
|
let thisHandler: SSHHandler = container.sessions[id]!.handler
|
||||||
ZStack {
|
ZStack {
|
||||||
Rectangle()
|
Rectangle()
|
||||||
|
|||||||
Reference in New Issue
Block a user