bubbles icon indicating copy to clipboard operation
bubbles copied to clipboard

Running on Windows 7 results in an error.

Open HoodyHuo opened this issue 1 year ago • 1 comments

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:

  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

HoodyHuo avatar May 28 '24 08:05 HoodyHuo

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.

Delta456 avatar May 28 '24 12:05 Delta456