Running on Windows 7 results in an error.
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
-
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:
- build spinner demo in windows 7
- run it on windows 7
Source Code spinner demo
Expected behavior run s normally on windos 7.
Screenshots
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.