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
F104655175: D47153.id145261.diff
Sun, Dec 8, 2:51 PM
F104655165: D47153.id145295.diff
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)
Sat, Nov 23, 7:38 PM
Unknown Object (File)
Sat, Nov 23, 9:13 AM
Unknown Object (File)
Fri, Nov 22, 2:46 AM
Unknown Object (File)
Mon, Nov 18, 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 Not Applicable
Unit
Tests Not Applicable

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.