Skip to content
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

GHDL should respect TERM=dumb #1950

Closed
DanielG opened this issue Jan 17, 2022 · 0 comments
Closed

GHDL should respect TERM=dumb #1950

DanielG opened this issue Jan 17, 2022 · 0 comments
Milestone

Comments

@DanielG
Copy link
Contributor

DanielG commented Jan 17, 2022

Description
When running ghdl from within Emacs compilation-mode it is connected to a PTY but TERM=dumb is set to prevent output of escape sequences. GHDL ignores this and so we get garbage displayed. See also #329 which was about essentially the same issue.

Expected behaviour
GHDL should interpret $TERM and output terminal escape sequences appropriate for the specified terminal type. Ideally a system library such as terminfo or perhaps unibilium should be used but simply disabling colors for TERM=dumb should be an easy fix.

How to reproduce?

This prints the error line (and exits with fail) if ghdl output includes an ESC [ sequence despite TERM=dumb.

TERM=dumb script -q -c ghdl >/dev/null 2>&1; ! grep -P '\e\[' typescript

--Daniel

@umarcor umarcor added this to the v2.0 milestone Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants