问题标签 [pdcurses]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - 诅咒库:为什么 getch() 清除我的屏幕?
我正在尝试使用 C++ 学习 curses 库(pdcurses,因为我在 Windows 操作系统中)。我有一个显示 3 个窗口的程序,然后是一个 while 循环,根据 getch() 捕获的按键进行一些处理。按下 F1 键时退出循环。
然而,尽管使用 wrefresh() 刷新了所有三个窗口,但在我输入第一次按键之前什么都没有出现。没有while循环,一切都显示得很好。我做了很多测试,就像第一次调用 getch() 会完全清除屏幕,但不是后续的。
我的问题是:我错过了什么?起初,我在想也许 getch() 正在调用一个隐式 refresh(),但是为什么随后对它的调用没有相同的行为呢?
非常感谢您的帮助。
这是代码。
winapi - color in pdcurses on win32
I am trying to get a simple console program to work in windows (it works in linux). I uses curses on linux, and when moving to windows I found that the least troublesome way port my program was to use pdcurses. I have used pdcurses before in windows, but with the win32a addon. However, I would like this program to run inside the windows console.
The problem is that it just seems to completely ignore all color commands. Is this a problem with pdcurses on windows or am I just being stupid? Even the demos that come with the package don't have color. I am using MSVC++ express 2010 on Win7 64x.
hasColors()
returns TRUE
. When Ii run this simple example from the documentation, everything is still in black and white:
int main()
windows - PDCURSES 为整数赋值使错误
我在 Windows 7 上使用 PDCURSES,我的程序一开始就停止工作。我注意到错误是通过在 line: 41 中将 value 分配给 integer 造成的。不幸的是,我不知道为什么。我在代码块中用 C 语言编写。如果有人可以帮助我,我将不胜感激。 错误信息
c++builder - 使 pdcurses 与 C++ Builder 一起工作
有人知道如何将 Pdcurses 与 Embarcadero C++ Builder 集成吗?
我已将库 pdcurses.lib 添加到我的项目中,并在部署部分添加了 pdcurses.dll。但无论我做什么,我仍然得到一个link32错误。
ascii - mvprintw(), curses 函数可以与通常的 ascii 代码一起使用吗?
我开发了一个小控制台 C++ 游戏,它使用 ASCII 图形,目前使用 cout。但是因为我想让事情变得更好,我必须使用 pdcurses。问题是像 printw() 或 mvprintw() 这样的诅咒函数不使用常规的 ascii 代码,对于这个游戏,我真的需要使用笑脸字符、心形、黑桃等。
有没有办法让诅咒与常规的 ascii 代码一起工作?
python - 在 Curses 内部时如何引发 KeyboardInterrupt
使用curses
Windows 上的模块(通过这个 PDCurses),我试图打破一个KeyboardInterrupt
异常,但是当我按下 ctrl+c 时它不会引发。
一些提炼的代码:
清单很长,现在items
我不能中途停止执行。我必须反复按键,直到我到达终点。天堂禁止我尝试这个while True:
!
当我按 ctrl+c 时,不会引发异常。它确实传递给我getch()
的 as 3
。SOP是在getch
接收时手动提高3
,还是有更合适的方法来避免吞咽KeyboardInterrupt
?
c - 从arch linux交叉编译pdcurses到windows
我正在尝试交叉编译一个简单的“Hello World!” 程序,从arch linux到windows
这是代码:
然后我使用mingw编译:
x86_64-w64-mingw32-gcc hello.c -o hello-x64.exe -lpdcurses.dll
当我运行程序时,它崩溃了。这是它的踪迹
c - 未知的输出控制台错误 Eclipse
我在 Eclipse 中添加了 PDCurses 库,当我运行我的程序时,出现此消息不支持重定向。
这是一个简单的代码,但我不相信这是我的代码中的错误。没有警告没有错误,只有控制台中的这条消息
c - 代码中的getmaxyx()错误::块
当我通过 Code::Blocks 运行程序时出现此消息
这是我的代码。我不是想创造一些巨大的东西,现在我想弄清楚 pdcurses 函数的作用。
c++ - 在 Visual Studio 2013 中使用 3rd 方库
最近,我开始使用 MS Visual Studio 2013。但是,我一直无法使用 3rd 方库,尤其是 PDcurses。当我按照通常的建议“转到链接器,在输入中添加库。然后把路径放在一般情况下”时,没有错误消失。我仍然收到“无法打开包含文件:'curses.h':没有这样的文件或目录”错误。我猜测为什么这不起作用是因为它适用于旧版本。另外,我试图在 MSDN 上找到解决方案,但没有成功。
我该如何使用图书馆?
库中包含的文件:curses.h、panel.h、pdcurses.dll、pdcurses.lib。