Skip to content

Commit

Permalink
raw ansi regex
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Jan 29, 2024
1 parent 0ecba96 commit 2897162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cat_win/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@

on_windows_os = platform.system() == 'Windows'
file_uri_prefix = 'file://' + '/' * on_windows_os
ANSI_CSI_RE = re.compile('\001?\033\\[((?:\\d|;)*)([a-zA-Z])\002?')
ANSI_CSI_RE = re.compile(r'\001?\033\[(?:\d|;)*[a-zA-Z]\002?') # Control Sequence Introducer
# ANSI_OSC_RE = re.compile(r'\001?\033\]([^\a]*)(\a)\002?') # Operating System Command

def err_print(*args, **kwargs):
"""
Expand Down

0 comments on commit 2897162

Please sign in to comment.