bytecodealliance / bytecodealliance/wasmtime

ANSI escape sequences to display colored output not handled correctly

Open
#1,380 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

I experienced this bug when trying to run the [QuickJS wasm] file. I have created a repo to reproduce the issue.

- What are the steps to reproduce the issue?
1. Clone https://github.com/samrat/wasmtime-colored-output
2. Build the wasm file: `cargo build --target wasm32-wasi`
3. Run the file with wasmtime: `wasmtime target/wasm32-wasi/debug/wasmtime-colored-output.wasm`

- What do you expect to happen? What does actually happen? Does it panic, and
if so, with which assertion?
I expected to see colored output, the ASCII escape codes are displayed instead.

- Which Wasmtime version / commit hash / branch are you using?
`c202a8eea`

- If relevant, can you include some extra information about your environment?
(Rust version, operating system, architecture...)
```
rustc 1.43.0-nightly (564758c4c 2020-03-08)

> uname -r
5.5.9-arch1-2
```

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.