Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual glitches on Windows terminals #1748

Open
w1kman opened this issue Nov 30, 2020 · 11 comments
Open

Visual glitches on Windows terminals #1748

w1kman opened this issue Nov 30, 2020 · 11 comments
Assignees
Labels
bug evaluation needed proposal needs to be validated or tested before fully implementing it in k6

Comments

@w1kman
Copy link

w1kman commented Nov 30, 2020

When running k6 (that exact command) in Command Prompt (CMD.exe), coloring breaks. There are no problems when running an actuall test (eg k6 run ...)

Checkmark displayed for passed tests, is also "broken"

Running Command Prompt via Windows Terminal seems to negate both problems.

Environment

  • k6 version: k6 v0.29.0 (2020-11-11T13:27:19+0000/d9bced3, go1.15.3, windows/amd64)
  • OS and version: Microsoft Windows 10 Pro (10.0.19042 Build 19042)
  • Docker version and image, if applicable: N/A

Expected Behavior

Colored k6 logo (as when running Command Prompt via Windows Terminal)
image

Checkmark in test result:
image

Actual Behavior

Characters intended to color output are visible(ish)
image

Boxed ? instead of checkmark in test result:
image

Steps to Reproduce the Problem

  1. WIN+R
  2. Type cmd, click "Ok" (or press Enter)
  3. Type k6, Enter
@jmk0317
Copy link

jmk0317 commented Jan 19, 2021

k6 javascript API check(val, sets, [tags]) - CLI - Windows 10 - from both the command prompt and PowerShell - returns this for the check mark
Screen Shot 2021-01-19 at 7 31 14 AM
Screen Shot 2021-01-19 at 7 32 58 AM

@na--
Copy link
Member

na-- commented Jan 26, 2021

#957 shows that the k6 output in PowerShell has some artifacts, like µs instead of µs and some glitches in the logo.

@na--
Copy link
Member

na-- commented Jan 27, 2021

Seems like Jenkins might have some of the same issues: #1294

I'll rename this issue to be a more generic catch-all for all such visual glitches and UI problems in k6, so we don't have a bunch of related issues on the topic. And I guess the only "fix" for these would be to give users a way to disable them and use a simplified ASCII interface, e.g. via the proposed --ui-mode composite option (#1376).

@na-- na-- changed the title Strange characters in "Command Prompt" when running "k6.exe" Strange characters, broken unicode and visual glitches in the k6 terminal UI and output Jan 27, 2021
@victorinho
Copy link

I have the same problem that has been reported, I do not understand how I can solve it ... my version of k6 is:
k6 v0.31.1

Can you help me how to solve it?

@na--
Copy link
Member

na-- commented May 10, 2021

@victorinho, which of the multiple minor issues described here do you experience? Can you give a screenshot and some more details about your environment, like for example the terminal you use and the OS type and version?

@victorinho
Copy link

victorinho commented May 13, 2021

@victorinho, which of the multiple minor issues described here do you experience? Can you give a screenshot and some more details about your environment, like for example the terminal you use and the OS type and version?

Hello @na-- !

My problem is that some characters appear wrong as seen in the image.
Attached image

My operating system is a windows 10 and the version of k6 is: v0.31.1
Screenshot_2

Thanks!

@na-- na-- added this to the v0.33.0 milestone May 13, 2021
@na--
Copy link
Member

na-- commented May 13, 2021

We'll try to fix this in the next k6 version, but I'm not giving any promises...

@victorinho, what terminal are you using to run k6? It seems like it doesn't support utf-8

@victorinho
Copy link

@na-- I am using windows command console (cmd)

Where can I run it from instead?

Regards

@na--
Copy link
Member

na-- commented May 13, 2021

A more modern terminal like https://github.com/microsoft/terminal or https://cmder.net/ should work better.

@na-- na-- modified the milestones: v0.33.0, v0.34.0 Jun 16, 2021
@mstoykov mstoykov modified the milestones: v0.34.0, v0.35.0 Sep 1, 2021
@na-- na-- removed this from the v0.35.0 milestone Nov 2, 2021
@na-- na-- added the evaluation needed proposal needs to be validated or tested before fully implementing it in k6 label Nov 2, 2021
@immavalls
Copy link

@na-- The user in https://community.k6.io/t/exporting-rate-to-json-looks-faulty/5707/14 mentions they can't use a more modern terminal and shares more details of what they see with powershell / command prompt and AzureDevOps.

@imiric imiric changed the title Strange characters, broken unicode and visual glitches in the k6 terminal UI and output Visual glitches on Windows terminals Feb 22, 2023
@RafaMalicia
Copy link

Hi, does anyone know how to solve this? I'm getting these odd characters, I'm running k6 on Azure DevOps Release Job

Run Info:

2023-10-03T20:01:35.0002052Z Task : Command line
2023-10-03T20:01:35.0002115Z Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2023-10-03T20:01:35.0002256Z Version : 2.212.0
2023-10-03T20:01:35.0002318Z Author : Microsoft Corporation
2023-10-03T20:01:35.0002393Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug evaluation needed proposal needs to be validated or tested before fully implementing it in k6
Projects
None yet
Development

No branches or pull requests

8 participants