gavinhoward / bc

An implementation of the POSIX bc calculator with GNU extensions and dc, moved away from GitHub. Finished, but well-maintained.
https://git.gavinhoward.com/gavin/bc
Other
145 stars 29 forks source link

Incorrect behavior in Windows console #39

Closed depler closed 2 years ago

depler commented 2 years ago

Steps to reproduce:

  1. Run bc.exe
  2. Type any test
  3. Click any arrow button

The result (text is mixed with random chars): image

The problem is gone if compiled with BC_ENABLE_HISTORY=0

gavinhoward commented 2 years ago

Oof. I'll investigate this.

gavinhoward commented 2 years ago

After investigation, I think Windows still does not have VT escape sequences right. I disabled history on Windows in commit ba792e05c9025ea994da24412e07b733aaf5a497.

Can you pull and test for me, please?

depler commented 2 years ago

Working fine now