make line padding adjustable (fixes #141)

This commit is contained in:
Eugene Pankov 2017-08-05 16:57:00 +02:00
parent 5999d169bc
commit 7885badbfd
3 changed files with 13 additions and 0 deletions

View File

@ -214,6 +214,13 @@ export class TerminalTabComponent extends BaseTabComponent {
return ret
}
}
const _measureCharacterSize = hterm.scrollPort_.measureCharacterSize.bind(hterm.scrollPort_)
hterm.scrollPort_.measureCharacterSize = () => {
let size = _measureCharacterSize()
size.height += this.config.store.terminal.linePadding
return size
}
}
attachIOHandlers (io: any) {

View File

@ -4,6 +4,7 @@ export class TerminalConfigProvider extends ConfigProvider {
defaults = {
terminal: {
fontSize: 14,
linePadding: 0,
bell: 'off',
bracketedPaste: false,
background: 'theme',

View File

@ -10,6 +10,11 @@ x-screen {
transition: 0.125s ease background;
}
x-row > span {
display: inline-block;
height: inherit;
}
@font-face {
font-family: "monospace-fallback";
src: url(fonts/Meslo.otf) format("opentype");