ncols: support FreeBSD

- fixes https://github.com/casperdcl/git-fame/issues/98
This commit is contained in:
Casper da Costa-Luis 2024-08-03 22:19:28 +01:00
parent 4f662763e6
commit d8ac65641d
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ from weakref import proxy
_range, _unich, _unicode, _basestring = range, chr, str, str
CUR_OS = sys.platform
IS_WIN = any(CUR_OS.startswith(i) for i in ['win32', 'cygwin'])
IS_NIX = any(CUR_OS.startswith(i) for i in ['aix', 'linux', 'darwin'])
IS_NIX = any(CUR_OS.startswith(i) for i in ['aix', 'linux', 'darwin', 'freebsd'])
RE_ANSI = re.compile(r"\x1b\[[;\d]*[A-Za-z]")
try: