You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user enters the command npx bittricky --no-color the layout of the output should have the same dimensions as the layout when color is applied.
Current Behavior
When the user enters the command npx bittricky --no-color into a terminal, the output should have the same dimensions as the output with color.
Steps to Reproduce
Open Terminal
Enter the command npx bittricky --no-color
View business card in the terminal
Detailed Description
The box function in layout.ts formats a given string content into a boxed layout with customizable options. It splits the content into lines, adds top and bottom margins, and surrounds each line with a border. The remove_ansi function uses regular expression to replace sequences in the terminal output. A possible solution might be to is to improve the way ANSI colors handled to calculate the padding applied correctly.
The text was updated successfully, but these errors were encountered:
Expected Behavior
When the user enters the command
npx bittricky --no-color
the layout of the output should have the same dimensions as the layout when color is applied.Current Behavior
When the user enters the command
npx bittricky --no-color
into a terminal, the output should have the same dimensions as the output with color.Steps to Reproduce
npx bittricky --no-color
Detailed Description
The
box
function inlayout.ts
formats a given string content into a boxed layout with customizable options. It splits the content into lines, adds top and bottom margins, and surrounds each line with a border. Theremove_ansi
function uses regular expression to replace sequences in the terminal output. A possible solution might be to is to improve the way ANSI colors handled to calculate the padding applied correctly.The text was updated successfully, but these errors were encountered: