Skip to content

Conversation

@pi0
Copy link

@pi0 pi0 commented Oct 7, 2016

This will ensure we are in a TTY (on none tty environments, getWindowSize is not available)

This will ensure we are in a TTY (on none tty environments, `getWindowSize` is not available)
@stevenvachon
Copy link
Owner

Why set to 3 when not a TTY? Also, there's window-size.

@pi0
Copy link
Author

pi0 commented Aug 11, 2017

Hey :)) Actually I don't remind as this is a pretty old PR :D But I think it was because of windows terminal compatibility which TTY is not available. Feel free closing if not appreciate.
Ah, maybe it was because we don't know how many lines that terminal has without access to TTY so 3 just is a fallback to simulate a soft cls.

@stevenvachon
Copy link
Owner

I wonder if it should do anything in a non-TTY on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants