tiffany352 / rink-rs

Unit conversion tool and library written in rust
https://rinkcalc.app/about
GNU General Public License v3.0
406 stars 28 forks source link

Strange output. v0.8.0 #186

Open ropucyka opened 1 week ago

ropucyka commented 1 week ago

2024-06-25_153439

tiffany352 commented 1 week ago

It seems that you're using a terminal that doesn't support ANSI escape codes. You can tell Rink to use plain text instead by adding this to the config file:

[colors]
enabled = false

Or by setting the NO_COLORS environment variable to 1 (which may affect other apps as well).

You might also want to add this to the config as well seeing how the currency fetching is failing (a machine with no internet?):

[currency]
enabled = false

What platform and terminal are you using? I might be able to change it so colors are disabled by default in this environment, or maybe it has some alternative way of setting colors I could add support for.

ropucyka commented 1 week ago

What platform and terminal are you using?

2024-06-26_140702

[colors]
enabled = false
[currency]
enabled = false

I don't need currency conversion, so I don't need the program to connect to the internet.

Now works well 2024-06-26_141117

Program path C:\Users\mo\rink\rink.exe
History path C:\Users\mo\AppData\Local\rink\history.txt
Config path  C:\Users\mo\AppData\Roaming\rink\config.toml

Can it just be portable?

2024-06-26_141731