jesseduffield / jesseduffield/lazydocker
Escape sequences printed in logs
- Dominant language
- Go
- Stars
- 52.8k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Sometimes, escape sequences are printed in lazydocker. I'm not sure exactly which escape sequences this happens for, but as you can see below it does happens for `[2;K[1;G`. `[2;K` seems to be for erasing the current line.
This log is from running `yarn install` inside a `node` image with `tty: true`:
```
[2;K[1;Gyarn install v1.22.5
[2;K[1;Gwarning package-lock.json found. Your project contains lock
[2;K[1;G[1/4] Resolving packages...
[1;G[0;K[2;K[1;G[2;K[1;Gsuccess Already up-to-date.
[2;K[1;GDone in 0.36s.
```
When running `docker-compose logs`, this is the output:
```
yarn install v1.22.5
warning package-lock.json found. Your project contains lock
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.36s.
```
In addition to [yarn](https://yarnpkg.com/), I've noticed it happening in [parcel bundler](https://parceljs.org/).
## To Reproduce
Steps to reproduce the behavior:
1. Create a `node` docker-compose service with `tty: true`
2. Make sure the container runs `yarn install`
## Desktop
- OS: macOS 10.14.6
- Lazydocker 0.9
Contributor guide
Assessment
This issue has not been assessed yet.