@opentui/core 0.3.0 → 0.3.1

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/ansi.d.ts CHANGED
@@ -2,6 +2,10 @@ export declare const ANSI: {
2
2
  switchToAlternateScreen: string;
3
3
  switchToMainScreen: string;
4
4
  reset: string;
5
+ resetScrollRegion: string;
6
+ home: string;
7
+ clearScreen: string;
8
+ clearSavedLines: string;
5
9
  scrollDown: (lines: number) => string;
6
10
  scrollUp: (lines: number) => string;
7
11
  moveCursor: (row: number, col: number) => string;
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  exports_src
4
- } from "./index-sq86yyfz.js";
4
+ } from "./index-zv319bjp.js";
5
5
  import {
6
6
  __require
7
- } from "./index-081xws23.js";
7
+ } from "./index-jx0p1c2f.js";
8
8
 
9
9
  // src/runtime-plugin.ts
10
10
  import { existsSync, readFileSync, realpathSync } from "fs";
@@ -418,4 +418,4 @@ function createRuntimePlugin(input = {}) {
418
418
  export { isCoreRuntimeModuleSpecifier, runtimeModuleIdForSpecifier, createRuntimePlugin };
419
419
 
420
420
  //# debugId=4F4ECA92927B118964756E2164756E21
421
- //# sourceMappingURL=index-qwem5zxy.js.map
421
+ //# sourceMappingURL=index-2wycxnwx.js.map
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  createRuntimePlugin
4
- } from "./index-qwem5zxy.js";
4
+ } from "./index-2wycxnwx.js";
5
5
 
6
6
  // src/runtime-plugin-support-configure.ts
7
7
  var {plugin: registerBunPlugin } = globalThis.Bun;
@@ -41,4 +41,4 @@ function ensureRuntimePluginSupport(options = {}) {
41
41
  export { ensureRuntimePluginSupport };
42
42
 
43
43
  //# debugId=09C0597CB92E654F64756E2164756E21
44
- //# sourceMappingURL=index-dhbwkghw.js.map
44
+ //# sourceMappingURL=index-gnh42qx3.js.map
@@ -21523,6 +21523,10 @@ var ANSI = {
21523
21523
  switchToAlternateScreen: "\x1B[?1049h",
21524
21524
  switchToMainScreen: "\x1B[?1049l",
21525
21525
  reset: "\x1B[0m",
21526
+ resetScrollRegion: "\x1B[r",
21527
+ home: "\x1B[H",
21528
+ clearScreen: "\x1B[2J",
21529
+ clearSavedLines: "\x1B[3J",
21526
21530
  scrollDown: (lines) => `\x1B[${lines}T`,
21527
21531
  scrollUp: (lines) => `\x1B[${lines}S`,
21528
21532
  moveCursor: (row, col) => `\x1B[${row};${col}H`,
@@ -23339,6 +23343,26 @@ Captured external output:
23339
23343
  }
23340
23344
  }
23341
23345
  }
23346
+ resetSplitFooterForReplay(options = {}) {
23347
+ if (this._isDestroyed)
23348
+ return;
23349
+ if (this._screenMode !== "split-footer" || this._externalOutputMode !== "capture-stdout") {
23350
+ throw new Error('resetSplitFooterForReplay requires screenMode "split-footer" and externalOutputMode "capture-stdout"');
23351
+ }
23352
+ if (!this._terminalIsSetup || this._controlState === "explicit_suspended" /* EXPLICIT_SUSPENDED */) {
23353
+ throw new Error("resetSplitFooterForReplay requires an active terminal");
23354
+ }
23355
+ this.flushPendingSplitOutputBeforeTransition(true);
23356
+ this.externalOutputQueue.clear();
23357
+ this.abortSplitStartupCursorSeed();
23358
+ this.clearPendingSplitFooterTransition();
23359
+ this.resetSplitScrollback();
23360
+ this.currentRenderBuffer.clear(this.backgroundColor);
23361
+ this.nextRenderBuffer.clear(this.backgroundColor);
23362
+ this.forceFullRepaintRequested = true;
23363
+ this.writeOut(ANSI.resetScrollRegion + ANSI.reset + ANSI.home + ANSI.clearScreen + (options.clearSavedLines ? ANSI.clearSavedLines : "") + ANSI.home);
23364
+ this.requestRender();
23365
+ }
23342
23366
  getSnapshotWidth(value, fallback) {
23343
23367
  const rawValue = value ?? fallback;
23344
23368
  if (!Number.isFinite(rawValue)) {
@@ -25231,5 +25255,5 @@ Captured external output:
25231
25255
 
25232
25256
  export { __export, __require, MeasureMode, exports_src, isValidBorderStyle, parseBorderStyle, BorderChars, getBorderFromSides, getBorderSides, borderCharsToArray, BorderCharArrays, KeyEvent, PasteEvent, KeyHandler, InternalKeyHandler, DEFAULT_FOREGROUND_RGB, DEFAULT_BACKGROUND_RGB, normalizeIndexedColorIndex, ansi256IndexToRgb, RGBA, normalizeColorValue, hexToRgb, rgbToHex, hsvToRgb, parseColor, fonts, measureText, getCharacterPositions, coordinateToCharacterIndex, renderFontToFrameBuffer, TextAttributes, ATTRIBUTE_BASE_BITS, ATTRIBUTE_BASE_MASK, getBaseAttributes, DebugOverlayCorner, TargetChannel, createTextAttributes, attributesWithLink, getLinkId, visualizeRenderableTree, isStyledText, StyledText, stringToStyledText, black, red, green, yellow, blue, magenta, cyan, white, brightBlack, brightRed, brightGreen, brightYellow, brightBlue, brightMagenta, brightCyan, brightWhite, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bold, italic, underline, strikethrough, dim, reverse, blink, fg, bg, link, t, hastToStyledText, SystemClock, nonAlphanumericKeys, terminalNamedSingleStrokeKeys, parseKeypress, LinearScrollAccel, MacOSScrollAccel, parseAlign, parseAlignItems, parseBoxSizing, parseDimension, parseDirection, parseDisplay, parseEdge, parseFlexDirection, parseGutter, parseJustify, parseLogLevel, parseMeasureMode, parseOverflow, parsePositionType, parseUnit, parseWrap, MouseParser, Selection, convertGlobalToLocalSelection, ASCIIFontSelectionHelper, envRegistry, registerEnvVar, clearEnvCache, generateEnvMarkdown, generateEnvColored, env, StdinParser, treeSitterToTextChunks, treeSitterToStyledText, stringWidth2 as stringWidth, addDefaultParsers, TreeSitterClient, DataPathsManager, getDataPaths, extensionToFiletype, basenameToFiletype, extToFiletype, pathToFiletype, infoStringToFiletype, getTreeSitterClient, ExtmarksController, createExtmarksController, TerminalPalette, createTerminalPalette, normalizeTerminalPalette, buildTerminalPaletteSignature, decodePasteBytes, stripAnsiSequences, detectLinks, TextBuffer, LogLevel2 as LogLevel, setRenderLibPath, resolveRenderLib, OptimizedBuffer, h, isVNode, maybeMakeRenderable, wrapWithDelegates, instantiate, delegate, LayoutEvents, RenderableEvents, isRenderable, BaseRenderable, Renderable, RootRenderable, TextBufferView, EditBuffer, EditorView, convertThemeToStyles, SyntaxStyle, ANSI, BoxRenderable, TextBufferRenderable, CodeRenderable, isTextNodeRenderable, TextNodeRenderable, RootTextNodeRenderable, TextRenderable, NativeSpanFeed, defaultKeyAliases, mergeKeyAliases, mergeKeyBindings, getKeyBindingAction, buildKeyBindingsMap, capture, ConsolePosition, TerminalConsole, getObjectsInViewport, EditBufferRenderableEvents, isEditBufferRenderable, EditBufferRenderable, buildKittyKeyboardFlags, MouseEvent, MouseButton, createCliRenderer, CliRenderEvents, RendererControlState, CliRenderer };
25233
25257
 
25234
- //# debugId=F97AFCBE61BE955464756E2164756E21
25235
- //# sourceMappingURL=index-081xws23.js.map
25258
+ //# debugId=98141239160B854E64756E2164756E21
25259
+ //# sourceMappingURL=index-jx0p1c2f.js.map