charmbracelet / charmbracelet/bubbles

Running on Windows 7 results in an error.

Open
#528 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
8.9k
Forks
457
Avg merge
1d 18h
Merged PRs (30d)
5

Description

**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 ](https://github.com/charmbracelet/bubbletea/blob/master/examples/spinner/main.go) ,and run it ,same error.
is it related to the ansi color escape codes in Windows 7?

**Setup**
- OS Windows 7
- Shell [cmd,powershell]
- Terminal Emulator [none]
- Terminal Multiplexer [none]
- Locale [zh_CN.UTF-8]

- GO version : 1.20.14
- bubbles v0.18.0
- bubblestea v0.25.0
- lipgloss v.10.0

**To Reproduce**
Steps to reproduce the behavior:
1. build [spinner demo ](https://github.com/charmbracelet/bubbletea/blob/master/examples/spinner/main.go) in windows 7
2. run it on windows 7

**Source Code**
[spinner demo ](https://github.com/charmbracelet/bubbletea/blob/master/examples/spinner/main.go)

**Expected behavior**
run s normally on windos 7.

**Screenshots**
![2024-05-28 160059](https://github.com/charmbracelet/bubbles/assets/35290158/2bde4548-f8b3-459d-9b27-d018c3c8d6ad)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.