mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
xterm.js doesn't use `this.term.charMeasure.width` when rendering. It actually uses: `Math.floor(this._terminal.charMeasure.width * window.devicePixelRatio)` This is important, because character widths may be non-integer values, which means that we can end up with an empty space on the right side of the terminal window. Instead of trying to match xterm's behavior, it's probably better if we just use xterm's `fit` addon. This seems to behave better for me. We might not want to land this as-is, becuase this addon forces an annoying hard-coded 17px margin on the right side to compensate for a scrollbar (see xtermjs/xterm.js#400), but at least for my use-cases, this is still better than it was. |
||
|---|---|---|
| .. | ||
| header.js | ||
| notification.js | ||
| notifications.js | ||
| split-pane.js | ||
| style-sheet.js | ||
| tab.js | ||
| tabs.js | ||
| term-group.js | ||
| term.js | ||
| terms.js | ||