Ncurses interface can't open terminal on macOS Monterey (ARM)

Hi,

I'm running VLC release 3.0.16 on macOS Monterey, installed from official download.

When I try to use the ncurses interface vlc -I ncurses, it exits with the following error:

Error opening terminal: screen-256color

The same error occurs no matter what the TERM environment variable is set to. I confirmed that there is terminfo available for these terminals.

It looks like the problem has to do with an overly outdated ncurses implementation (5.8, from 2008-11-02!) that is shipped with macOS. Building against an updated ncurses should hopefully fix this issue.

Edited by Terrance Kennedy