-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathansi-regex.node.txt
29 lines (24 loc) · 1.65 KB
/
ansi-regex.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
┏━━━━━━━━━━━━━━━━┓
┃ ANSI-REGEX ┃
┗━━━━━━━━━━━━━━━━┛
VERSION ==> #6.1.0
SUPPORT ==> #Matches: control sequence, OSC sequence
#Partial|accidental: Fe, Fp, Fs, nF
#Does not match:
# - caret notation, backlash sequence
# - device control string, control string, application program command, privacy message
#Limited support:
# - intermediate bytes only #()
# - parameters only ;-separated digits not :<=>?
# - parameters (OSC sequences) not SPC!"$'()*+,[]^`{|}
# - terminating byte only \a not \e\
# - final byte only A-Za-z~ not @[\]^_`{|}
# - and not QUvVwWxXYabdeopz
ANSI-REGEX([OPTS])->REGEXP #REGEXP for CSI sequences
#No REGEXP groups available.
#OPTS:
# - onlyFirst BOOL: if false (def), use 'g' flag
HAS-ANSI(STR)->BOOL #Detects ANSI sequences, using ANSI-REGEX
#Package has-ansi (6.0.0)
has-ansi [STR] #Same as CLI. Def: stdin
#Package has-ansi-cli (4.1.1)