File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,17 @@ export function TerminalComponent(props: TerminalComponentProps) {
4040 const term = new Terminal ( {
4141 cursorBlink : true ,
4242 convertEol : true ,
43+ cursorStyle : "bar" ,
44+ theme : {
45+ // DaisyUIの変数を使用してテーマを設定している
46+ // TODO: ダークテーマ/ライトテーマを切り替えたときに再設定する?
47+ // TODO: red, green, blueなどの色も設定する
48+ background : window . getComputedStyle ( document . body ) . getPropertyValue ( "--color-base-300" ) ,
49+ foreground : window . getComputedStyle ( document . body ) . getPropertyValue ( "--color-base-content" ) ,
50+ cursor : window . getComputedStyle ( document . body ) . getPropertyValue ( "--color-base-content" ) ,
51+ selectionBackground : window . getComputedStyle ( document . body ) . getPropertyValue ( "--color-primary" ) ,
52+ selectionForeground : window . getComputedStyle ( document . body ) . getPropertyValue ( "--color-primary-content" ) ,
53+ } ,
4354 } ) ;
4455 terminalInstanceRef . current = term ;
4556 initDone . current = false ;
You can’t perform that action at this time.
0 commit comments