what about simplifying the code by import termios into get_terminal_size() ?

e.g.

```python
def get_terminal_size(fd=1):
    if sys.platform == 'win32':
        return 100
    import termios
    ...
```