Page MenuHomeFreeBSD

Fix ncurses codegen from awk that needs to gen keycode for keyname
ClosedPublic

Authored by aokblast on Oct 16 2024, 2:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 8, 2:51 PM
Unknown Object (File)
Sun, Dec 8, 2:51 PM
Unknown Object (File)
Fri, Nov 29, 3:32 PM
Unknown Object (File)
Thu, Nov 28, 7:44 PM
Unknown Object (File)
Nov 23 2024, 7:38 PM
Unknown Object (File)
Nov 23 2024, 9:13 AM
Unknown Object (File)
Nov 22 2024, 2:46 AM
Unknown Object (File)
Nov 18 2024, 5:51 PM
Subscribers

Details

Summary

This patch fix the codegen problem for the keyname() that needs to catch all available key in ncurses.

A use case for us is in python base. There is a module called curses in python base that is a python-binding for ncurses. Python call keyname() to get the keyname available from keynumber and generate the corresponding curse.KEY_* then map to number.

Here is the related bug:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280697

I don't give it a try but I have another program called ranger that have same problem. Rebuild tinfo with this patch and the problem disappear

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 60124
Build 57008: arc lint + arc unit

Event Timeline

aokblast added reviewers: lwhsu, bapt.
This revision is now accepted and ready to land.Oct 21 2024, 12:07 PM
This revision now requires review to proceed.Oct 21 2024, 12:25 PM
This revision was not accepted when it landed; it landed in state Needs Review.Oct 23 2024, 8:41 PM
This revision was automatically updated to reflect the committed changes.