charmbracelet / bubbles

TUI components for Bubble Tea 🫧
MIT License
5.66k stars 266 forks source link

Running on Windows 7 results in an error. #528

Open HoodyHuo opened 6 months ago

HoodyHuo commented 6 months ago

Describe the bug I have written a TCP simulation testing tool using Bubbletea and Lipgloss. The tool runs normally on Windows 10, but when I compile and run it on Windows 7, an error occurs with the following error message:

error creating cancelreader: prepare console: set console mode: The parameter is incorrect.

try to build spinner demo ,and run it ,same error. is it related to the ansi color escape codes in Windows 7?

Setup

To Reproduce Steps to reproduce the behavior:

  1. build spinner demo in windows 7
  2. run it on windows 7

Source Code spinner demo

Expected behavior run s normally on windos 7.

Screenshots 2024-05-28 160059

Delta456 commented 6 months ago

Hi, this program won't work with Windows 7 cmd and powershell because it is severely outdated and cannot print the needed ANSI escape codes. ConEmu should work here.