restcli icon indicating copy to clipboard operation
restcli copied to clipboard

Incorrect special/table characters in Windows Terminal

Open gcbartlett opened this issue 3 years ago • 1 comments

Using Windows Terminal the output of restcli contained question mark characters (when using Command Prompt) or visible escape sequences (when using Bash Shell) instead of check marks and table drawing characters, e.g.

TESTS:
? OK Test
Content-Type header: application/json;charset=UTF-8
? Content Type (JSON) Test

__________________________________________________

[START] Creating test report: session-tests
[FINISHED]
????????????????????
?TOTAL REQUESTS: 42?
????????????????????
?????????????
?TEST RESULT?
?????????????
?Total: 41  ?
?Passed: 41 ?
?Failed: 0  ?
?????????????

or

TESTS:
←[32m? OK Test←[0m
Content-Type header: application/json;charset=UTF-8
←[32m? Content Type (JSON) Test←[0m

Additionally, Command Prompt (inside Windows Terminal) was able to display the green/red colors, but Bash Shell wasn't.

It appears that the standard Command Prompt application also has difficultly with these characters.

This is undoubtedly a terminal-related problem, but are there any options to disable special characters/colors? Or do you have any suggestions for setting TERM to an appropriate value?

gcbartlett avatar Aug 06 '21 22:08 gcbartlett

Hi @gcbartlett, Sorry for the late reply.

I don't have much experiences for TERM setting. So I will keep this issues open if someone can help.

The restcli is designed for run on the CI system. I mostly test on linux. If you are running on the windows, you may want to you the intellij idea dirrectly to run the test.

quangson91 avatar Oct 12 '21 03:10 quangson91