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
// Disable bold. | |
term_.prefs_.set('enable-bold', false); | |
// Use this for base16-default. | |
term_.prefs_.set('background-color', "#151515"); | |
term_.prefs_.set('foreground-color', "rgba(255, 255, 255, 0.8)"); | |
term_.prefs_.set('cursor-color', 'rgba(255, 255, 255, 0.5)'); | |
term_.prefs_.set('color-palette-overrides', [ | |
'#151515', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class RowDict(dict): | |
""" | |
Subclass of dict that joins sequences and encodes to utf-8 on get. | |
Encoding to utf-8 is necessary for Python's csv library because it | |
can't handle unicode. | |
>>> row = RowDict() | |
>>> row['bob'] = ['Montalb\\xe2an, Ricardo', 'Roddenberry, Gene'] | |
>>> row.get('bob') | |
'Montalb\\xc3\\xa1n, Ricardo|Roddenberry, Gene' | |
>>> print row.get('bob') |