Feature request: support more customization options for xterm.js

mewsf

Active Member
Nov 3, 2017
2
0
41
25
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!