/** * Single-cell symbols, with ASCII stand-ins for terminals that cannot draw them. * * A glyph a font lacks is not a small cosmetic problem: the Windows console renders U+A7B0 (the * turned K in KONECK's mark) and U+276F (the prompt caret) as replacement boxes, so the brand read * as "⊡K" and every prompt line began with a box. Box-drawing characters are fine there, which is * why the panels looked right and only these did not. * * Detection is by platform rather than by probing the font, because there is no reliable way to * ask a terminal what it can draw — and guessing wrong in the optimistic direction is what produced * the boxes. Windows Terminal with a modern font would manage the originals, but it cannot be told * apart from the legacy console, so Windows gets the safe set and anyone who wants the originals * can say so. */ export interface GlyphSet { /** * The two-character brand mark: the logo at one line's height. * * U+A4D8 is a mirrored K, which is what the right-hand half of the mark is. It lives in the * Lisu block, so a font may lack it — the same failure U+A7B0 had on the Windows console, which * is what the ASCII set below exists for. */ brand: string; /** Prompt and selection caret. */ caret: string; /** A step that succeeded, and one that failed. */ ok: string; fail: string; /** Truncation marker. Three ASCII dots are wider but always legible. */ ellipsis: string; /** Marks a search field. */ search: string; /** Tab hints. */ left: string; right: string; /** The working animation, in order. */ spinner: readonly string[]; /** True for the fallback set, so callers can pick a matching form of anything larger. */ ascii: boolean; } /** * Which set to use. * * `KONECK_GLYPHS=unicode` forces the originals for anyone on a Windows terminal with a font that * has them; `KONECK_GLYPHS=ascii` forces the fallbacks anywhere, which is also what a pipe or a * dumb terminal wants. */ export declare function pickGlyphs(platform?: string, override?: string | undefined, term?: string | undefined): GlyphSet; export declare const G: GlyphSet; //# sourceMappingURL=glyphs.d.ts.map