@@ -180,13 +180,12 @@ struct TerminalEmulatorView: NSViewRepresentable {
180180 terminal. appearance = colorAppearance
181181 scroller ( terminal) ? . isHidden = true
182182 terminal. font = font
183- terminal. configureNativeColors ( )
184183 terminal. installColors ( self . colors)
185184 terminal. caretColor = cursorColor. withAlphaComponent ( 0.5 )
186185 terminal. caretTextColor = cursorColor. withAlphaComponent ( 0.5 )
187186 terminal. selectedTextBackgroundColor = selectionColor
188- // terminal.nativeForegroundColor = textColor
189- // terminal.nativeBackgroundColor = terminalSettings.useThemeBackground ? backgroundColor : .clear
187+ terminal. nativeForegroundColor = textColor
188+ terminal. nativeBackgroundColor = terminalSettings. useThemeBackground ? backgroundColor : . clear
190189 terminal. cursorStyleChanged ( source: terminal. getTerminal ( ) , newStyle: getTerminalCursor ( ) )
191190 terminal. layer? . backgroundColor = CGColor . clear
192191 terminal. optionAsMetaKey = optionAsMeta
@@ -202,13 +201,12 @@ struct TerminalEmulatorView: NSViewRepresentable {
202201 }
203202
204203 func updateNSView( _ view: CELocalShellTerminalView , context: Context ) {
205- view. configureNativeColors ( )
206204 view. installColors ( self . colors)
207205 view. caretColor = cursorColor. withAlphaComponent ( 0.5 )
208206 view. caretTextColor = cursorColor. withAlphaComponent ( 0.5 )
209207 view. selectedTextBackgroundColor = selectionColor
210- // view.nativeForegroundColor = textColor
211- // view.nativeBackgroundColor = terminalSettings.useThemeBackground ? backgroundColor : .clear
208+ view. nativeForegroundColor = textColor
209+ view. nativeBackgroundColor = terminalSettings. useThemeBackground ? backgroundColor : . clear
212210 view. layer? . backgroundColor = . clear
213211 view. optionAsMetaKey = optionAsMeta
214212 view. cursorStyleChanged ( source: view. getTerminal ( ) , newStyle: getTerminalCursor ( ) )
0 commit comments