[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

fix: use fast-wrap-ansi in box prompt (#370)

authored by

James Garbutt and committed by
GitHub
(Aug 11, 2025, 10:17 AM +0100) ff286ef4 1a45f93c

+2 -2
+2 -2
packages/prompts/src/box.ts
··· 1 1 import type { Writable } from 'node:stream'; 2 2 import { getColumns } from '@clack/core'; 3 - import wrap from 'wrap-ansi'; 3 + import {wrapAnsi} from 'fast-wrap-ansi'; 4 4 import { 5 5 type CommonOptions, 6 6 S_BAR, ··· 105 105 titlePadding, 106 106 opts?.titleAlign 107 107 ); 108 - const wrappedMessage = wrap(message, innerWidth - contentPadding * 2, { 108 + const wrappedMessage = wrapAnsi(message, innerWidth - contentPadding * 2, { 109 109 hard: true, 110 110 trim: false, 111 111 });