Manages terminal themes and visual appearance.
// In command
this.themeManager.setTheme('matrix');
// Via terminal command
theme matrix
{
name: 'matrix',
background: '#0d0d0d',
foreground: '#00ff41',
cursor: '#00ff41',
selection: '#003b00',
// ... xterm.js theme colors
}
Themes are saved to localStorage:
localStorage.setItem('term-theme', 'matrix');
const savedTheme = localStorage.getItem('term-theme') || 'matrix';
Themes update CSS variables:
:root {
--term-color: #00ff41;
--term-bg: #0d0d0d;
}
themes.js