@opentui/core 0.1.39 → 0.1.41

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/text-buffer.d.ts CHANGED
@@ -21,10 +21,12 @@ export declare class TextBuffer {
21
21
  private _syntaxStyle?;
22
22
  private _textBytes?;
23
23
  private _memId?;
24
+ private _appendedChunks;
24
25
  constructor(lib: RenderLib, ptr: Pointer);
25
26
  static create(widthMethod: WidthMethod): TextBuffer;
26
27
  private guard;
27
28
  setText(text: string): void;
29
+ append(text: string): void;
28
30
  loadFile(path: string): void;
29
31
  setStyledText(text: StyledText): void;
30
32
  setDefaultFg(fg: RGBA | null): void;
package/zig-structs.d.ts CHANGED
@@ -20,3 +20,11 @@ export declare const HighlightStruct: import("bun-ffi-structs").DefineStructRetu
20
20
  }]], {}>;
21
21
  export declare const LogicalCursorStruct: import("bun-ffi-structs").DefineStructReturnType<[readonly ["row", "u32"], readonly ["col", "u32"], readonly ["offset", "u32"]], {}>;
22
22
  export declare const VisualCursorStruct: import("bun-ffi-structs").DefineStructReturnType<[readonly ["visualRow", "u32"], readonly ["visualCol", "u32"], readonly ["logicalRow", "u32"], readonly ["logicalCol", "u32"], readonly ["offset", "u32"]], {}>;
23
+ export declare const TerminalCapabilitiesStruct: import("bun-ffi-structs").DefineStructReturnType<[readonly ["kitty_keyboard", "bool_u8"], readonly ["kitty_graphics", "bool_u8"], readonly ["rgb", "bool_u8"], readonly ["unicode", import("bun-ffi-structs").EnumDef<{
24
+ wcwidth: number;
25
+ unicode: number;
26
+ }>], readonly ["sgr_pixels", "bool_u8"], readonly ["color_scheme_updates", "bool_u8"], readonly ["explicit_width", "bool_u8"], readonly ["scaled_text", "bool_u8"], readonly ["sixel", "bool_u8"], readonly ["focus_tracking", "bool_u8"], readonly ["sync", "bool_u8"], readonly ["bracketed_paste", "bool_u8"], readonly ["hyperlinks", "bool_u8"], readonly ["term_name", "char*"], readonly ["term_name_len", "u64", {
27
+ readonly lengthOf: "term_name";
28
+ }], readonly ["term_version", "char*"], readonly ["term_version_len", "u64", {
29
+ readonly lengthOf: "term_version";
30
+ }], readonly ["term_from_xtversion", "bool_u8"]], {}>;
package/zig.d.ts CHANGED
@@ -98,6 +98,8 @@ export interface RenderLib {
98
98
  textBufferReplaceMemBuffer: (buffer: Pointer, memId: number, bytes: Uint8Array, owned?: boolean) => boolean;
99
99
  textBufferClearMemRegistry: (buffer: Pointer) => void;
100
100
  textBufferSetTextFromMem: (buffer: Pointer, memId: number) => void;
101
+ textBufferAppend: (buffer: Pointer, bytes: Uint8Array) => void;
102
+ textBufferAppendFromMemId: (buffer: Pointer, memId: number) => void;
101
103
  textBufferLoadFile: (buffer: Pointer, path: string) => boolean;
102
104
  textBufferSetStyledText: (buffer: Pointer, chunks: Array<{
103
105
  text: string;