Skip to content

Windows: "stty size" -> "stty is not recognized as an internal or external command" #1048

@mdmintz

Description

@mdmintz

Windows: stty size -> stty is not recognized as an internal or external command.

Looks like the stty size command, (which works great on Linux and Mac), does not exist in Windows command prompts, and therefore SeleniumBase will print a warning whenever someone uses the sbase print [FILE] command on Windows.

This is an easy fix. Just replace the first line with the second line here:

console_width = os.popen("stty size", "r").read().split()[1]

console_width = os.get_terminal_size()[0]

(The next line converts a text result to an integer.)

Some commands, (such as sbase mkrec [FILE.py]), use the sbase print [FILE] command to print out results.

Metadata

Metadata

Assignees

Labels

bugUh oh... Something needs to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions