11import * as fs from "node:fs" ;
22import { REPLServer } from "node:repl" ;
3+ import { stripVTControlCharacters } from "node:util" ;
34import { Context , createContext } from "node:vm" ;
45
56import { delay } from "@esfx/async-delay" ;
@@ -8,7 +9,6 @@ import { Range, TimeSpan } from "@ts-perf/api";
89import chalk from "chalk" ;
910import { fn , from , Query } from "iterable-query" ;
1011import { parseAndExecuteQuery , startLinqRepl } from "iterable-query-linq" ;
11- import stripColor from "strip-ansi" ;
1212
1313import { formatValues } from "../decorators" ;
1414
@@ -107,7 +107,7 @@ export class Analyzer {
107107
108108 getTypeHelp ( name = "" , useColors = true ) {
109109 const help = getHelp ( this . getTypeAndTableNames ( ) , "type" , this . types , this . _formattedTypes , name , formatType ) ;
110- return useColors ? help : stripColor ( help ) ;
110+ return useColors ? help : stripVTControlCharacters ( help ) ;
111111 }
112112
113113 getTableHelp ( name = "" , useColors = true ) {
@@ -119,13 +119,13 @@ export class Analyzer {
119119 name ,
120120 formatTable ,
121121 ) ;
122- return useColors ? help : stripColor ( help ) ;
122+ return useColors ? help : stripVTControlCharacters ( help ) ;
123123 }
124124
125125 getUsageHelp ( useColors = true ) {
126126 const help = this . _formattedUsage
127127 || ( this . _formattedUsage = formatUsage ( this . getTypeAndTableNames ( ) , this . examples ) ) ;
128- return useColors ? help : stripColor ( help ) ;
128+ return useColors ? help : stripVTControlCharacters ( help ) ;
129129 }
130130
131131 private getTypeAndTableNames ( ) {
0 commit comments