@@ -20,7 +20,7 @@ import * as jotai from "jotai";
2020import * as React from "react" ;
2121import { TermStickers } from "./termsticker" ;
2222import { TermThemeUpdater } from "./termtheme" ;
23- import { computeTheme } from "./termutil" ;
23+ import { computeTheme , normalizeCursorStyle } from "./termutil" ;
2424import { TermWrap } from "./termwrap" ;
2525import "./xterm.css" ;
2626
@@ -275,6 +275,8 @@ const TerminalView = ({ blockId, model }: ViewComponentProps<TermViewModel>) =>
275275 }
276276 const termAllowBPM = globalStore . get ( model . termBPMAtom ) ?? true ;
277277 const termMacOptionIsMeta = globalStore . get ( termMacOptionIsMetaAtom ) ?? false ;
278+ const termCursorStyle = normalizeCursorStyle ( globalStore . get ( getOverrideConfigAtom ( blockId , "term:cursor" ) ) ) ;
279+ const termCursorBlink = globalStore . get ( getOverrideConfigAtom ( blockId , "term:cursorblink" ) ) ?? false ;
278280 const wasFocused = model . termRef . current != null && globalStore . get ( model . nodeModel . isFocused ) ;
279281 const termWrap = new TermWrap (
280282 tabModel . tabId ,
@@ -292,6 +294,8 @@ const TerminalView = ({ blockId, model }: ViewComponentProps<TermViewModel>) =>
292294 allowProposedApi : true , // Required by @xterm /addon-search to enable search functionality and decorations
293295 ignoreBracketedPasteMode : ! termAllowBPM ,
294296 macOptionIsMeta : termMacOptionIsMeta ,
297+ cursorStyle : termCursorStyle ,
298+ cursorBlink : termCursorBlink ,
295299 } ,
296300 {
297301 keydownHandler : model . handleTerminalKeydown . bind ( model ) ,
0 commit comments