Last active
November 21, 2020 00:58
-
-
Save jmeosbn/c579687ec1fbac42256474816de0dd09 to your computer and use it in GitHub Desktop.
Neue Adventures.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example color formats | |
// 'wheat', '#533300', 'rgba(100, 100, 10, 0.5)' | |
// black / pale black // title-bg | |
// pale red / red // zip pkgs | |
// green / bright green // shell +x | |
// yellow / gold // cfg xml | |
// blue / light blue // dir link | |
// orange / pinky purple // mp3 jpg | |
// teal / cyan // cpp py | |
// cream / steel grey // md epub | |
let theme = { | |
color: | |
{ | |
00: '#383838', 08: '#787880', // black | |
01: '#ff4545', 09: '#ff101a', // red | |
02: '#20cc90', 10: '#40e020', // green | |
03: '#fefe65', 11: '#ffdd22', // yellow | |
04: '#00b0ff', 12: '#70d0ff', // blue | |
05: '#ffaa00', 13: '#d0b0fe', // magenta | |
06: '#00ccd5', 14: '#00dfef', // cyan | |
07: '#eee8aa', 15: '#aaccff', // white | |
}, | |
/* terminal colours */ | |
background: '#010c1e', // dark blue | |
background: '#03060f', // blue-black | |
background: '#000', // full black | |
foreground: '#efffff', // off-white | |
cursor: '#c1d3e0a0', // 80 == 50% | |
cursor: '#fffa8080', // 80 == 50% | |
} | |
/* | |
load style: https://terminal.sexy | |
*/ | |
term_applySexyTheme(theme) | |
term_set('cursor-color', theme.cursor) | |
/* | |
hterm options not exposed in blink ui | |
*/ | |
term_set('scroll-on-output', true) | |
term_set('scroll-on-keystroke', true) | |
term_set('page-keys-scroll', true) | |
term_set('home-keys-scroll', true) | |
term_set('enable-clipboard-write', true) | |
term_set('enable-clipboard-notice', false); | |
// unsupported: BLOCK, BEAM, UNDERLINE | |
// term_set('cursor-shape', 'BEAM') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment