Skip to content

Commit

Permalink
feat: raise importerror to avoid running non-functional code
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Apr 14, 2024
1 parent 1650de6 commit 93067a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/acurses.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""An ANSI interface that feels like programming with curses"""

# TODO: Windows support, see the following link
# https://github.com/python/cpython/blob/3.12/Lib/getpass.py
from os import name

if name == "nt":
# TODO: Windows support, see the following link
# https://github.com/python/cpython/blob/3.12/Lib/getpass.py
raise ImportError("Windows isn't currently supported")

# TODO: continue implementation with inspiration from following
# https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html
Expand Down

0 comments on commit 93067a3

Please sign in to comment.