[llvm-bugs] [Bug 51954] New: GUI: curses mode not interactive Windows (PDCursesMod)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 24 04:03:45 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51954

            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 at lists.llvm.org
          Reporter: steve at advance-software.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

Building with curses on windows (pdcursesmod)
This : 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

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"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210924/e02575db/attachment.html>


More information about the llvm-bugs mailing list