Skip to content

Conversation

@komh
Copy link
Contributor

@komh komh commented Jan 6, 2026

os.get_terminal_size is not defined on OS/2.

os.get_terminal_size is not defined on OS/2.
@bonzini bonzini added this to the 1.11 milestone Jan 6, 2026
except OSError:
except (OSError, AttributeError):
self.cols = 80
self.is_tty = False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it indeed accurate to say that OS/2 doesn't (cannot ever) have a tty?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error says that os does not have get_terminal_size attr. I know, os.get_terminal_size() has not been implemented on OS/2.

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.

3 participants