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

Termcap capability names are non-unique #4

Open
Stebalien opened this issue Feb 7, 2017 · 6 comments
Open

Termcap capability names are non-unique #4

Stebalien opened this issue Feb 7, 2017 · 6 comments

Comments

@Stebalien
Copy link

While working on a way to programatically generate the capability list, I ran into a duplicate termcap (legacy) code: ML. It can either be:

variable capname TCap Code Description
set_lr_margin smglr ML Set both left and right margins to #1, #2. (ML is not in BSD termcap).
set_left_margin smgl ML Set left soft margin at current column. See smgl. (ML is not in BSD termcap).
@Stebalien
Copy link
Author

Possible solutions:

  1. Don't include termcap codes (they're for legacy programs so they shouldn't be necessary).
  2. Don't include the SVr4.0 capabilities (that's where the conflict is).

Thoughts?

@meh
Copy link
Owner

meh commented Feb 7, 2017

3ade67f

There's also IC that was a duplicate of something else, I just removed the bogus duplicates I found.

@Stebalien
Copy link
Author

Ah, so that's why you don't have those. Ok, nevermind (although I couldn't find a duplicate IC mentioned in the manual).

Although, is it really a good idea to remove IC entierly (parm_ich)? I suggested removing support for SVr4.0 because it's non-standard but parm_ich appears to be a standard capability.

@meh
Copy link
Owner

meh commented Feb 7, 2017

@Stebalien honestly I was just like "why are there even duplicates in here, I'll just remove the ones I feel like are some kind of mistake made by someone else in ages unknown".

I'm fine with either solution.

The ALIASES thing is mostly to help while using the raw interface, and when I find the time to implement generating a Vec<Database> from a terminfo source code.

Instead the TERMINFO one is going to be used for generating a terminfo source code from an existing Database.

TERMCAP is just there so aliases could be generated for the old tcap capability names.

@meh
Copy link
Owner

meh commented Feb 7, 2017

@Stebalien the other IC that was in the manual I got my stuff from is for initialize_color, I wasn't entirely sure which one was the best to remove, and since there's also initialize_pair as Ip I went with the other IC.

@Stebalien
Copy link
Author

Stebalien commented Feb 7, 2017 via email

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