简体   繁体   中英

In Qt Creator ncurses Error opening terminal: unknown

#include <ncurses.h>
#include <iostream>
using namespace std;

int main()
{
    initscr();

    printw("Hello world");
    refresh();
    getch();
    endwin();
    return 0;
}

Preferences -> Environment -> System -> Terminal : /usr/X11/bin/xterm -e

.pro : unix|win32: LIBS += -lncurses

xterm Error : Error opening terminal: unknown.

Please help, thank you.

也许您需要指定一个TERM环境变量。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM