Bug ID 51954
Summary GUI: curses mode not interactive Windows (PDCursesMod)
Product lldb
Version unspecified
Hardware PC
OS Windows NT
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter steve@advance-software.com
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
Building with curses on windows (pdcursesmod)
This : [https://github.com/Bill-Gray/PDCursesMod](https://github.com/Bill-Gray/PDCursesMod)
... because PDCureses was erroring out for me, tried other, seems better.
One build issue :
F:\dev\llvm-project\lldb\source\Core\IOHandlerCursesGUI.cpp
define_key not defined. that's a ncurses extension. have a dummy in there for
now so it will link as follows :
// pdcurses doesn't implement define_key so we stub for the time being.
int define_key(const char *definition, int keycode)
{
return ERR ; // not implemented.
}
Filed as issue here :
[https://github.com/Bill-Gray/PDCursesMod/issues/214](https://github.com/Bill-Gray/PDCursesMod/issues/214)
That builds & runs. Can type gui to enter gui mode but its not interactive.
Should be. Perhaps due to stubbed define_key. Don't know. Don't personally have
time to take this further at the moment, but was a request issue was filed.
Need something like this to build with PDCursesMod
set CURSES_LIB=%CURSES_ROOT%\wincon\pdcurses.lib
cmake -S llvm -DPANEL_LIBRARIES=%CURSES_LIB% -DCURSES_LIBRARY=%CURSES_LIB%
-DCURSES_INCLUDE_PATH=%CURSES_ROOT% -DCMAKE_BUILD_TYPE="Debug"
-DLLVM_ENABLE_PROJECTS="clang;lldb" -B build -G Ninja
Also if you build PDCursesMod as DLL, you'll need to patch #include as follows.
#define PDC_DLL_BUILD 1
#include "curses.h"