bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nodelay(...), not working with get_wch


From: Giorgos Xou
Subject: Re: nodelay(...), not working with get_wch
Date: Sat, 6 Jul 2024 11:42:53 +0300

Here's an example:

#include <ncurses.h>

int main (int argc, char ** argv)
{
  wint_t ch;
  // int ch;

  initscr();
  noecho();
  nodelay(stdscr, true);
  refresh();

  while (true) {
    get_wch(&ch); // It should return -1 but it doesn't
    // ch = getch();
    if (ch == -1 || ch == 27 ){
      break;
    }
  }
  endwin();
  return 0;
}

On Sat, Jul 6, 2024 at 11:08 AM Giorgos Xou <gxousos@gmail.com> wrote:
I meant nodelay(), not halfdelay(), I'm really sorry for this! I accidentally pasted the wrong one when I was writing the previous email.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]