brsh 2.5.2 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/terminal.es.js +1 -1
- package/dist/terminal.es.js.map +1 -1
- package/dist/terminal.min.js +1 -1
- package/dist/terminal.min.js.map +1 -1
- package/lib/Terminal.js +10 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.5.3](https://github.com/eliotstocker/Brsh-JS/compare/v2.5.2...v2.5.3) (2026-05-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* terminal column sizing ([555ba7f](https://github.com/eliotstocker/Brsh-JS/commit/555ba7f4a961a2db227d844c33039c1a9c3e2f3b))
|
|
7
|
+
|
|
1
8
|
## [2.5.2](https://github.com/eliotstocker/Brsh-JS/compare/v2.5.1...v2.5.2) (2026-05-25)
|
|
2
9
|
|
|
3
10
|
|
package/dist/terminal.es.js
CHANGED
|
@@ -7029,7 +7029,7 @@ var ee, P, F, I, L, R, z, te, B, V, ne = e((() => {
|
|
|
7029
7029
|
}
|
|
7030
7030
|
_setupDom(e, t = "Roboto Mono") {
|
|
7031
7031
|
let n = document.createElement("link");
|
|
7032
|
-
n.href = `https://fonts.googleapis.com/css?family=${encodeURIComponent(t)}:ital,wght@0,400;0,700;1,400;1,700&display=swap`, n.rel = "stylesheet", document.head.appendChild(n), this._cmdList = document.createElement("ul"), this._cmdList.style.fontFamily = `'${t}', monospace`, this._cmdList.style.listStyle = "none", this._cmdList.style.padding = "0", this._lineWrap && this._cmdList.classList.add("terminal--wrap"), e.appendChild(this._cmdList), this._screen = document.createElement("pre"), this._screen.className = "terminal__screen", this._screen.style.fontFamily = `'${t}', monospace`, e.appendChild(this._screen), this._charMeasure = document.createElement("span"), this._charMeasure.className = "terminal__char-measure", this._charMeasure.textContent = "X", this._charMeasure.setAttribute("aria-hidden", "true"), e.appendChild(this._charMeasure), setTimeout(() => this._measureAndSetSize(), 0), typeof ResizeObserver < "u" && new ResizeObserver(() => this._measureAndSetSize()).observe(e);
|
|
7032
|
+
n.href = `https://fonts.googleapis.com/css?family=${encodeURIComponent(t)}:ital,wght@0,400;0,700;1,400;1,700&display=swap`, n.rel = "stylesheet", document.head.appendChild(n), this._cmdList = document.createElement("ul"), this._cmdList.style.fontFamily = `'${t}', monospace`, this._cmdList.style.listStyle = "none", this._cmdList.style.padding = "0", this._lineWrap && this._cmdList.classList.add("terminal--wrap"), e.appendChild(this._cmdList), this._screen = document.createElement("pre"), this._screen.className = "terminal__screen", this._screen.style.fontFamily = `'${t}', monospace`, e.appendChild(this._screen), this._charMeasure = document.createElement("span"), this._charMeasure.className = "terminal__char-measure", this._charMeasure.style.fontFamily = `'${t}', monospace`, this._charMeasure.textContent = "X", this._charMeasure.setAttribute("aria-hidden", "true"), e.appendChild(this._charMeasure), setTimeout(() => this._measureAndSetSize(), 0), document.fonts && document.fonts.ready.then(() => this._measureAndSetSize()), typeof ResizeObserver < "u" && new ResizeObserver(() => this._measureAndSetSize()).observe(e);
|
|
7033
7033
|
}
|
|
7034
7034
|
_newPrompt(e) {
|
|
7035
7035
|
this._clearCursor(), this._currentLine = document.createElement("li"), this._cmdList.appendChild(this._currentLine), e && e(), this._autoScroll();
|