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

Control Windows Terminal with Xterm Control Sequences? #7623

Closed
wnpaul opened this issue Sep 14, 2020 · 5 comments
Closed

Control Windows Terminal with Xterm Control Sequences? #7623

wnpaul opened this issue Sep 14, 2020 · 5 comments
Labels
Needs-Attention The core contributors need to come back around and look at this ASAP. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@wnpaul
Copy link

wnpaul commented Sep 14, 2020

I notice that Windows Terminal identifies itself as xterm-256color. However, I cannot get it to respond to Xterm control sequences as output by xtermcontrol (https://thrysoee.dk/xtermcontrol/). This is both when running Cygwin bash and when running bash in any WSL distribution.

Cygwin's Mintty on the other hand responds properly, as do terminal progams like xterm and rxvt, running either under Cygwin or any WSL distro.

Is this simply not possible, or does it need to be enabled somewhere?

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Sep 14, 2020
@DHowett
Copy link
Member

DHowett commented Sep 14, 2020

It largely depends on exactly what you're trying to do. There's upwards of a hundred control sequences with heaps of different behaviors.

Can you be more specific about what's failing? That might help us point you in the right direction 😄

(NOTE: cygwin <= 3.1 eats control sequences and does not pass them through to the terminal.)

@DHowett DHowett added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Sep 14, 2020
@wnpaul
Copy link
Author

wnpaul commented Sep 14, 2020

Thank you for your prompt response. Specifically what I need to do is control foreground and background color, title, and font.
I don't think Cygwin eats them (I am on 3.1.6) because it works with Cygwin mintty, xterm and urxvt.
Likewise, running it in WSL ubuntu 20.04 it also does not work in Windows Terminal but does work in mintty and when displaying either xterm or rxvt to Cygwin/X.

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Sep 14, 2020
@DHowett
Copy link
Member

DHowett commented Sep 14, 2020

Ah, interesting. We're not intending on supporting font selection, but colors should work.

Are you using the X11 color names (antique lace 3 and the like?)

When I use RGB, all of those things work including the title.

xtermcontrol

The title is immediately reset by my shell prompt pre-command, however, so above I've used a sleep to suppress it for a sec.

@DHowett DHowett added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Sep 14, 2020
@wnpaul
Copy link
Author

wnpaul commented Sep 14, 2020

Thank you. I was using black and white in my tests, will try the rgb syntax in the morning.
Font is not nearly as important to me, geometry (size) and title are.

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Sep 14, 2020
@DHowett
Copy link
Member

DHowett commented Sep 14, 2020

That's really useful info. Okay, so:

I'll close this as a duplicate of those above. Sorry about not being quite so robust!

@DHowett DHowett closed this as completed Sep 14, 2020
@DHowett DHowett added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Sep 14, 2020
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Attention The core contributors need to come back around and look at this ASAP. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants