achannarasappa / ticker

Terminal stock ticker with live updates and position tracking
GNU General Public License v3.0
5.02k stars 273 forks source link

Quantity showing up screwy #143

Closed dtcooper closed 3 years ago

dtcooper commented 3 years ago

Describe the bug

As pictured below, the quantity is showing up screwy for large amounts for symbol EB.

To Reproduce Set this in lots in ~/.ticker.yaml,

lots:
  - symbol: EB
    quantity: 100000
    unit_cost: 2.27

Expected behavior Quantity shows up as 38;5;27m2274000.00 instead of 100000

Screenshots Screenshot of bug

Environment (please complete the following information):

Additional context When I unset TERM, ie TERM="" ticker it works fine without colours.

Thanks!

achannarasappa commented 3 years ago

Fixed in latest release - added 3 additional digits of space