-
-
Notifications
You must be signed in to change notification settings - Fork 821
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
Unescaped color output when running? #533
Comments
I have the same issue. |
Yep, same. Everything is fine on my Mac, but on Linux I have this problem. |
same here |
It seems that problem is with using github.com/creack/pty in util_linux.go. And it's not caused by ie.: logging via log or slog. But after adding github.com/charmbracelet/wish I've got that strange effect. Because by definition most program run by air are not pty programs ,but rather services/servers - I suggest adding no_pty optoin in such cases. So if you have problems with strage output like this:
Set such option in .air.toml: [screen]
no_pty = true That fixes problem. |
For what it's worth, another binary recently fixed this: https://github.com/evilmartians/lefthook/releases/tag/v1.6.3 Specifically: evilmartians/lefthook@4c9e0e1 This is what it looks like:
vs
Although, in my case, it may be related to the log package I'm using: charmbracelet/log#90 |
Adding I'm using linux, zsh, kitty terminal my air toml root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
args_bin = []
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ./server/main.go"
delay = 1000
exclude_dir = ["bruno","bin"]
exclude_file = []
exclude_regex = ["_test.go"]
exclude_unchanged = false
follow_symlink = false
full_bin = ""
include_dir = []
include_ext = ["go", "tpl", "tmpl", "html"]
include_file = []
kill_delay = "0s"
log = "build-errors.log"
poll = false
poll_interval = 0
post_cmd = []
pre_cmd = []
rerun = false
rerun_delay = 500
send_interrupt = false
stop_on_error = false
[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"
[log]
main_only = false
time = false
[misc]
clean_on_exit = false
[proxy]
app_port = 0
enabled = false
proxy_port = 0
[screen]
no_pty = true
output
|
Getting this output
^[]10;rgb:cdcd/d6d6/f4f4^[\^[[32;1R^[]11;rgb:1e1e/1e1e/2e2e^[\^[[32;36R
when running.Tried on multiple terminal emulators.
EDIT: This only happens on Linux. On Mac, with the same terminal emulator, and same settings, this doesn't happen.
The text was updated successfully, but these errors were encountered: