Skip to content

Instantly share code, notes, and snippets.

@jmeosbn
Last active December 6, 2020 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmeosbn/7204b2afbc61a0623c317eb0847eef12 to your computer and use it in GitHub Desktop.
Save jmeosbn/7204b2afbc61a0623c317eb0847eef12 to your computer and use it in GitHub Desktop.
Adaptation of default terminal theme
// example color formats
// 'wheat', '#533300', 'rgba(100, 100, 10, 0.5)'
let theme = {
name: 'Chromium',
author: 'github.com/jmeosbn',
color:
{
// regular "light"
00: '#3C4043', 08: '#9AA0A6', // black
01: '#F28B82', 09: '#F6AEA9', // red
02: '#137356', 10: '#87FFC5', // green
03: '#E37400', 11: '#FDD663', // yellow
04: '#8AB4F8', 12: '#AECBFA', // blue
05: '#EE5FFA', 13: '#F4B5FB', // magenta
06: '#03BFC8', 14: '#80F9F9', // cyan
07: '#FFFFFF', 15: '#F8F9FA', // white
02: '#63D3A6', // lighter green
// edited for contrast
00: '#202124', 08: '#8A9096', // black
01: '#F27F76', 09: '#F6AEA9', // red
02: '#63D3A6', 10: '#87FFC5', // green
03: '#F39400', 11: '#FDD663', // yellow
04: '#76ADFF', 12: '#9ACBFF', // blue
05: '#E36FEA', 13: '#F4B5FB', // magenta
06: '#03CFD8', 14: '#80F9F9', // cyan
07: '#D0F0FF', 15: '#E8F9FA', // white
07: '#D3D7CF', 15: '#EEEEEC', // white
},
/* terminal colours */
background: '#000', // full black
foreground: '#e8faff', // off-white
//background: '#202124', // dark grey
//foreground: '#FFFFFF', // full white
cursor: '#669DF680', // with alpha
}
/*
load style: https://terminal.sexy
*/
term_applySexyTheme(theme)
term_set('cursor-color', theme.cursor)
/*
force bold/bright style options
*/
term_set('enable-bold', true)
term_set('enable-bold-as-bright', false)
/*
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