@averagejoeslab/puppuccino-tui 0.1.2 → 0.1.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/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -253,7 +253,7 @@ function getPrompt() {
|
|
|
253
253
|
|
|
254
254
|
// src/app.ts
|
|
255
255
|
function init(options) {
|
|
256
|
-
const { width, height } = (0, import_term.
|
|
256
|
+
const { width, height } = (0, import_term.getSize)();
|
|
257
257
|
const theme = getTheme(options?.theme || "kaldi");
|
|
258
258
|
const model = {
|
|
259
259
|
input: import_widgets.TextInput.init({
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Program } from "@averagejoeslab/tui";
|
|
3
3
|
import { Spinner, TextInput, Viewport } from "@averagejoeslab/widgets";
|
|
4
4
|
import { render as renderMarkdown } from "@averagejoeslab/markdown";
|
|
5
|
-
import {
|
|
5
|
+
import { getSize } from "@averagejoeslab/term";
|
|
6
6
|
|
|
7
7
|
// src/themes/index.ts
|
|
8
8
|
import { Style } from "@averagejoeslab/style";
|
|
@@ -209,7 +209,7 @@ function getPrompt() {
|
|
|
209
209
|
|
|
210
210
|
// src/app.ts
|
|
211
211
|
function init(options) {
|
|
212
|
-
const { width, height } =
|
|
212
|
+
const { width, height } = getSize();
|
|
213
213
|
const theme = getTheme(options?.theme || "kaldi");
|
|
214
214
|
const model = {
|
|
215
215
|
input: TextInput.init({
|