Skip to content

Instantly share code, notes, and snippets.

@BenGardiner
Forked from russelldavies/hterm_solarized.js
Last active August 29, 2015 14:06
Show Gist options
  • Save BenGardiner/a466421d1bb43decd93a to your computer and use it in GitHub Desktop.
Save BenGardiner/a466421d1bb43decd93a to your computer and use it in GitHub Desktop.
// Run in the JavaScript console of the hterm browser window
// Clear all existing settings - you probably don't want to do this.
// Preferences are now stored in "chrome.storage.sync" instead of
// "window.localStorage" so if you clear your preferences the changes
// will be propagated to other devices.
//mosh_client_.io.terminal_.prefs_storage.clear();
mosh_client_.io.terminal_.prefs_.resetAll();
mosh_client_.io.terminal_.prefs_.set('enable-bold', true);
mosh_client_.io.terminal_.prefs_.set('enable-bold-as-bright', false);
mosh_client_.io.terminal_.prefs_.set('background-color', '#002b36');
mosh_client_.io.terminal_.prefs_.set('background-image', '-webkit-linear-gradient(black, rgba(0, 43, 54, 1))');
mosh_client_.io.terminal_.prefs_.set('foreground-color', '#839496');
mosh_client_.io.terminal_.prefs_.set('cursor-color', 'rgba(131, 148, 150, 0.5)');
mosh_client_.io.terminal_.prefs_.set('color-palette-overrides', ['#073642', '#dc322f',
'#859900', '#b58900', '#268bd2', '#d33682', '#2aa198', '#eee8d5',
'#002b36', '#cb4b16', '#586e75', '#657b83', '#839496', '#6c71c4',
'#93a1a1', '#fdf6e3']);
mosh_client_.io.terminal_.prefs_.set('font-family', ('"Source Code Pro", ' +
'"DejaVu Sans Mono", "Everson Mono", ' +
'"FreeMono", "Menlo", "Terminal", ' +
'monospace'));
mosh_client_.io.terminal_.prefs_.set('font-size', 12);
mosh_client_.io.terminal_.prefs_.set('font-smoothing', 'subpixel-antialiased');
mosh_client_.io.terminal_.prefs_.set('cursor-blink', true);
mosh_client_.io.terminal_.prefs_.set('scrollbar-visible', false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment