AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 349 forks source link

Fix redrawing prompts on Windows #474

Open mislav opened 1 year ago

mislav commented 1 year ago

Fixes redrawing prompts on Windows so that:

  1. The line before the 1st survey prompt isn't accidentally deleted,
  2. The survey prompt is properly redrawn after recording an answer.

For help with debugging Survey, this also adds logging support by setting SURVEY_LOG_FILE environment variable.

Fixes https://github.com/go-survey/survey/issues/368 Closes https://github.com/go-survey/survey/pull/458

TODO:

andyfeller commented 9 months ago

@mislav : thank you for working towards the root of this issue for Windows users ✨

What might you share about this work for someone else to pick it up and carry it to completion?