jesseduffield / jesseduffield/lazygit
Color codes at the top/end of pager
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
**Describe the bug**
There are color codes printed at the top and end of the git show output.
**Note**: this does not happen in a regular terminal window (outside lazygit).

**Expected behavior**
No color codes / weird text.
Should be exactly like in a regular terminal window:
`git show`

**Version info:**
- _Run `lazygit --version` and paste the result here_: `commit=5e388e21c8ca6aa883dbcbe45c47f6fdd5116815, build date=2023-08-07T14:05:48Z, build source=binaryRelease, version=0.40.2, os=linux, arch=amd64, git version=2.34.1`
- _Run `git --version` and paste the result here_: `git version 2.34.1`
**Additional context**
- I use Kitty: `kitty 0.21.2`
- I use delta as a pager: `delta 0.16.5`
- I use bat: `bat 0.24.0`
- I use `Ubuntu 22.04 LTS`
See my configs:
- Lazygit: https://github.com/gruvw/.dotfiles/blob/main/lazygit/.config/lazygit/config.yml
- Kitty: https://github.com/gruvw/.dotfiles/blob/main/kitty/.config/kitty/kitty.conf
- Bat: https://github.com/gruvw/.dotfiles/tree/main/bat/.config/bat
- Git / Delta: https://github.com/gruvw/.dotfiles/blob/main/git/.gitconfig
Contributor guide
Assessment
This issue has not been assessed yet.