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
F102907048: D47153.diff
Mon, Nov 18, 2:30 PM
F102907039: D47153.diff
Mon, Nov 18, 2:30 PM
Unknown Object (File)
Thu, Nov 14, 5:52 PM
Unknown Object (File)
Thu, Nov 14, 3:35 PM
Unknown Object (File)
Wed, Nov 13, 9:00 AM
Unknown Object (File)
Wed, Nov 13, 3:33 AM
Unknown Object (File)
Tue, Nov 5, 12:16 AM
Unknown Object (File)
Sun, Oct 27, 9:14 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.Mon, Oct 21, 12:07 PM
This revision now requires review to proceed.Mon, Oct 21, 12:25 PM
This revision was not accepted when it landed; it landed in state Needs Review.Wed, Oct 23, 8:41 PM
This revision was automatically updated to reflect the committed changes.