-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
I am on Windows XP.
When I type:
require "ansi"
ANSI::Terminal.terminal_widthI have the message: No such file or directory - stty size
In https://github.com/rubyworks/ansi/blob/master/lib/ansi/terminal.rb, the code seems to require successively ansi/terminal/stty, ansi/terminal/curses, ansi/terminal/termios and ansi/terminal/win32 until one of these require does not raises.
I guess that stty is supposed to raise on Windows, to avoid using this library. However when I require manually ansi/terminal/stty, it does not raises.
In fact, when I read the code of ansi/terminal/stty I do not see anything that can raise on Windows (or on any platform).
Metadata
Metadata
Assignees
Labels
No labels