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

Add ConEmu-specific escape codes #7

Open
DRSDavidSoft opened this issue Feb 16, 2019 · 2 comments
Open

Add ConEmu-specific escape codes #7

DRSDavidSoft opened this issue Feb 16, 2019 · 2 comments

Comments

@DRSDavidSoft
Copy link

DRSDavidSoft commented Feb 16, 2019

ConEmu

I'd like to add some of the ConEmu-specific escape codes via a PR if it's okay with you.

documentation:
https://conemu.github.io/en/AnsiEscapeCodes.html#ConEmu_specific_OSC

For example, the equivalent to this iTerm 2 sequence:

x.iTerm.setCwd = (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`;

Would be this for ConEmu:

x.ConEmu.setCwd = (cwd = process.cwd()) => `${OSC}9;9;${cwd}${BEL}`; 

per the documentation:

Sequence Description
ESC ] 9 ; 9 ; “cwd” ST Inform ConEmu about shell current working directory.
@sindresorhus
Copy link
Owner

Sure, PR welcome :)

@sindresorhus
Copy link
Owner

We could then also add a general setCwd method which uses iTerm.setCwd on iTerm and ConEmu.setCwd on ConEmu.

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