colorInput() function
Home > strepl > colorInput
colorInput() function
Section titled “colorInput() function”Tokenizes, checks syntax paths, and colorizes input lines with full ANSI tags.
Signature:
export declare function colorInput(input: string, registry: Registry, jsMode: boolean, context: any, globals: any): string;Parameters
Section titled “Parameters”|
Parameter |
Type |
Description |
|---|---|---|
|
input |
string |
The plain string line contents. |
|
registry |
Active hierarchical navigation dictionary mappings. | |
|
jsMode |
boolean |
Flags if JavaScript lexical rules overwrite normal arguments tokens. |
|
context |
any |
Stateful parameter variables map. |
|
globals |
any |
Embedded application environmental global tools. |
Returns:
string
Complete colorized text safe for active terminal standard output writers. *