<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - GUI: curses mode not interactive Windows (PDCursesMod)"
href="https://bugs.llvm.org/show_bug.cgi?id=51954">51954</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>GUI: curses mode not interactive Windows (PDCursesMod)
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>steve@advance-software.com
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Building with curses on windows (pdcursesmod)
This : <a href="https://github.com/Bill-Gray/PDCursesMod">https://github.com/Bill-Gray/PDCursesMod</a>
... 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 :
<a href="https://github.com/Bill-Gray/PDCursesMod/issues/214">https://github.com/Bill-Gray/PDCursesMod/issues/214</a>
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"</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>