diff --git a/src/app/line/linecomps.tsx b/src/app/line/linecomps.tsx index 648855c3..87ce0216 100644 --- a/src/app/line/linecomps.tsx +++ b/src/app/line/linecomps.tsx @@ -371,10 +371,10 @@ class LineCmd extends React.Component< getTerminalRendererHeight(cmd: Cmd): number { let { screen, line, width, renderMode } = this.props; - let height = 36 + 6; // height of zero height terminal + let height = 45 + 24; // height of zero height terminal let usedRows = screen.getUsedRows(lineutil.getRendererContext(line), line, cmd, width); if (usedRows > 0) { - height = 36 + 6 + 11 + termHeightFromRows(usedRows, GlobalModel.termFontSize.get()); + height = 48 + 24 + termHeightFromRows(usedRows, GlobalModel.termFontSize.get()); } return height; } diff --git a/src/app/workspace/screen/screenview.less b/src/app/workspace/screen/screenview.less index e6a496e5..87e9575c 100644 --- a/src/app/workspace/screen/screenview.less +++ b/src/app/workspace/screen/screenview.less @@ -89,8 +89,8 @@ color: @term-white; code { - background-color: @term-black; - color: #4e9a06; + color: @prompt-green; + background-color: transparent; } &.should-fade { diff --git a/src/plugins/terminal/terminal.tsx b/src/plugins/terminal/terminal.tsx index 7def95f1..d4185886 100644 --- a/src/plugins/terminal/terminal.tsx +++ b/src/plugins/terminal/terminal.tsx @@ -152,6 +152,9 @@ class TerminalRenderer extends React.Component< let usedRows = screen.getUsedRows(lineutil.getRendererContext(line), line, cmd, width); // TODO: replace the +2 with some calculation based on termFontSize. the +2 is for descenders, which get cut off without this. let termHeight = termHeightFromRows(usedRows, GlobalModel.termFontSize.get()) + 2; + if (usedRows === 0) { + termHeight = 0; + } let termLoaded = this.termLoaded.get(); return (