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

How to disable rotating? #16

Open
kke opened this issue Jun 14, 2017 · 1 comment
Open

How to disable rotating? #16

kke opened this issue Jun 14, 2017 · 1 comment

Comments

@kke
Copy link

kke commented Jun 14, 2017

I'd like that to be a simple render option.

@SpComb
Copy link

SpComb commented Mar 16, 2018

The automatic rotation is a little crazy because it also happens when testing code via rspec... specs might pass on your dev machine, but fail if they're run by a dev that uses a narrower terminal, or in travis (https://travis-ci.org/kontena/kontena/jobs/353727211#L861)

Workaround is to fake the screen size...

  before do
    allow(TTY::Screen).to receive(:width).and_return(1000)
  end

The table.render resize: true behavior does not help, and it's actually buggy as well (exceptions in the alignment/truncation operations if the terminal is narrower than some column).

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

No branches or pull requests

3 participants