Feature request: support more customization options for xterm.js

mewsf

Active Member
Nov 3, 2017
2
0
41
26
Hi, today I used xterm.js console and was a bit uncomfortable staring at the black background. I searched and found that xterm.js supports using api to change its options, so I tried to change the color by inputing this in web browser's console : (it's Selenized Light theme, I used it on other editors for a while)

Proxmox VE's web interface has already supported customizing fonts, it will be better to have more options.

JavaScript:
term.options.theme={
    "foreground": "#53676d",
    "background": "#fbf3db",
    "cursorColor": "#3a4d53",       
    "selectionBackground": "#cfcebe",
    "black": "#e9e4d0",
    "red": "#d2212d",
    "green": "#489100",
    "yellow": "#ad8900",
    "blue": "#0072d4",
    "purple": "#ca4898",
    "cyan": "#009c8f",
    "white": "#909995",
    "brightBlack": "#cfcebe",
    "brightRed": "#cc1729",
    "brightGreen": "#428b00",
    "brightYellow": "#a78300",
    "brightBlue": "#006dce",
    "brightPurple": "#c44392",
    "brightCyan": "#00978a",
    "brightWhite": "#3a4d53",
    "cursor": "#3a4d53"
}

The effect:

xtermjs.png