unt-libraries / pycallnumber

Parse, model, and manipulate any type of call number string.
BSD 3-Clause "New" or "Revised" License
63 stars 9 forks source link

Better Windows support #22

Closed pybrarian closed 6 years ago

pybrarian commented 6 years ago

Use of fcntl and termios imports in utils.py was causing ImportErrors on my Windows system. Moved them inside a function, and that function inside a try except block. Added a function to find terminal size in Windows. All tests passing, but might want to do visual inspection in other systems prior to merging to ensure everything is as it was.