Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method size returns [1,1] on Windows (mingw) when no TTY is present #15

Closed
victor-varjo opened this issue Nov 16, 2022 · 2 comments
Closed
Labels

Comments

@victor-varjo
Copy link

Describe the problem

Method size returns [1,1] on Windows (mingw) when no TTY is present. Caused by Readline.get_screen_size returning [1,1]

Steps to reproduce the problem

ssh my-windows-server 'ruby -e \"require \\\"tty-screen\\\"; puts TTY::Screen.size\"'

Actual behaviour

returns [1,1]

Expected behaviour

returns DEFAULT_SIZE

Describe your environment

  • OS version: Window 2019, SSH enabled, and the default shell is git-bash
  • Ruby version: 3.1.2p20 (2022-04-12 revision 4491bb740a)
  • TTY::Screen version: 0.8.1
@IAmJulianAcosta
Copy link

I wonder if this is causing fastlane/fastlane#20906 as I'm having this issue in ADO in a container that I guess it has a Windows host

@piotrmurach
Copy link
Owner

Thank you for reporting this issue!

This is now fixed in e342f8f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants