tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: recent terminfo changes




> On Mar 27, 2020, at 4:05 AM, Roy Marples <roy%marples.name@localhost> wrote:
> 
> On 27/03/2020 02:06, Christos Zoulas wrote:
>> @@ -494,6 +530,7 @@
>>  	if (tic == NULL)
>>  		return NULL;
>>  +	tic->rtype = _ti_find_rtype(cap);
>>  	buf.buf = NULL;
>>  	buf.buflen = 0;
> 
> If I'm reading this patch correctly, it means that the old terminfo library cannot read the records for at least screen-256color and xterm-256color because they will be stored in version 3.

Yes, and I can fix that by implementing the full proposal with just a few more lines of code:
1. create a v1 entry with clamped values
2. create a v3 entry called <name>@v3
3. always lookup for <name>@v3 first and if that fails, use <name>.

I am not sure if it is worth it, as the user can always export TERM=xterm and export TERM=screen to get a slightly less functional and working setup.
But if people feel otherwise, I will make my fingers even shorter and implement it.

christos

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index