import { ConfigProvider, Platform } from 'terminus-core' export class TerminalConfigProvider extends ConfigProvider { defaults = { terminal: { fontSize: 14, bell: 'off', bracketedPaste: false, background: 'theme', colorScheme: { __nonStructural: true, name: 'Material', foreground: '#eceff1', background: 'rgba(38, 50, 56, 1)', cursor: '#FFCC00', colors: [ '#000000', '#D62341', '#9ECE58', '#FAED70', '#396FE2', '#BB80B3', '#2DDAFD', '#d0d0d0', 'rgba(255, 255, 255, 0.2)', '#FF5370', '#C3E88D', '#FFCB6B', '#82AAFF', '#C792EA', '#89DDFF', '#ffffff', ] }, customColorSchemes: [] }, } platformDefaults = { [Platform.macOS]: { terminal: { font: 'Menlo', shell: '/bin/zsh', }, hotkeys: { 'new-tab': [ ['Ctrl-A', 'C'], ['Ctrl-A', 'Ctrl-C'], '⌘-T', '⌘-N', ] }, }, [Platform.Windows]: { terminal: { font: 'Consolas', shell: '~clink~', }, hotkeys: { 'new-tab': [ ['Ctrl-A', 'C'], ['Ctrl-A', 'Ctrl-C'], 'Ctrl-Shift-T', ] }, }, [Platform.Linux]: { terminal: { font: 'Liberation Mono', shell: '/bin/bash', }, hotkeys: { 'new-tab': [ ['Ctrl-A', 'C'], ['Ctrl-A', 'Ctrl-C'], 'Ctrl-Shift-T', ] }, }, } }