posita / dyce

Simple Python tools for exploring dice outcomes and other finite discrete probabilities
https://posita.github.io/dyce/
Other
33 stars 2 forks source link

Get rid of trying to access terminal nonsense #6

Closed posita closed 2 years ago

posita commented 2 years ago
  1. H.format is intended to be a convenience for those casually encountering dyce with no other visualization mechanism. The fact that it has led to the inconvenience of some means that it has utterly failed to achieve its purpose, but instead unleashed pain on the very people intended to be served. This cannot stand.
  2. Looking at the terminal get a value for COLUMNS is excessive. This might be important if we were building a full curses interface to dyce, but we're not (and that would belong in a separate library anyway).

Fixes #5, makes 65 the default width where COLUMNS is unset and is deserving of immediate release.

posita commented 2 years ago

For the record, I tried—but failed—to think of a good way to test this. I might follow up with that later, but I wanted to get this landed and a new release out tout de suite.