-
Notifications
You must be signed in to change notification settings - Fork 655
Add true-color (24-bit) support #531
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
Conversation
Any update on this one? I see last commit is from March, seems like this project abandoned. |
Working perfectly for me, please merge this. The awk script from mRemoteNG/mRemoteNG#717 has the following output: |
Annoyingly I didn't see this change until it was committed. Ideally the sequences to invoke RGB8 colours should be
rather than what will be parsed here, as
A lot of terminals have inadvertently used the latter form due ultimately to an annoying quirk of history when someone misread a spec to create it in the very first terminal to implement it. Most terminals are now accepting finally the (correct) former form for it, though that does mean a little extra parsing effort to break sub-parameters on |
I used to work in an ISO TC myself, but that's indeed the funniest ISO vs. de-facto standard story I've came across so far. Anyway, apparently connectbot is in good company and this should be easy to fix. E.g., to accept at least also the correct syntax, adding a |
Not really. It's not that
splits first at the level of
The distinction between
Reference, I have no idea. I don't know who would possibly by considered authoritative enough to have their implementation called "reference". I could point at my own libvterm, which is mostly the reason why I got involved in ConnectBot in the first place though... |
I understand, but for what's currently supported of the true colour additions, simply adding the |
I believe that is a correct assessment. However, I do have a fairly simple solution in mind that will handle them in more 'correct' way. I just need to actually sit down and write out the code, which I hope to do a few hours from now. |
If it's of interest, the way I do this in
This lets you store the sortof-2D shape of params with sub-params efficiently, by accepting that it's rare to have sub-params and burning a tiny little extra CPU to support them by linear search. When inserting numbers into this array while parsing it's then a simple matter of
|
Based on discussion about connectbot#531, ':' should work for denoting sub-groups of SGR parameters. Add this capability, and check these parameters a bit more strictly.
@leonerd That's almost exactly what I had in mind. I guess that means I had a good idea. ;-) |
Handle true-color control codes, extending attributes to contain the
extra bits, and display the desired colors.
Fixes issue #457