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

undesired xterm terminal font change from ansiEscapes.iTerm.setCwd() #60

Closed
WillForan opened this issue Jan 1, 2024 · 0 comments
Closed

Comments

@WillForan
Copy link
Contributor

Running pretty formatter changes the terminal font in xterm.

image
image

I think the offending line is
https://github.com/sindresorhus/eslint-formatter-pretty/blob/main/index.js#L108

I can confirm running this also mucks with xterm's font:

#!/usr/bin/env node
import ansiEscapes from 'ansi-escapes';
console.log(ansiEscapes.iTerm.setCwd());

Neither wezterm nor alacritty have the same font issue -- both support hyperlinks. xterm does not currently. A supportsHyperlink(process.stdout) check (like elsewhere) before iTerm.setCwd() might suffice.

image

WillForan added a commit to WillForan/eslint-formatter-pretty that referenced this issue Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants