ex_ncurses
ex_ncurses copied to clipboard
[error] Bad input fd in erts_poll()!
When I execute any of provided examples it shows error on terminal screen.
[error] Bad input fd in erts_poll()! fd=0, port=#Port<0.3>, driver=fd, name=0/1
Most simple example to reproduce the error:
Application.ensure_started(:ex_ncurses)
ExNcurses.initscr()
ExNcurses.getch()
ExNcurses.endwin()
I enabled DEBUG option in ex_ncurses.c file and log file contains next lines:
load
ex_newterm
newterm done
ex_poll
enif_select -> 0
ex_read
ex_read calling enif_select
ex_read enif_select returned 0
ex_read returning 10
endwin
rt_stop called DIRECT, polling=0
endwin done
I am having the same issue.
This appears to be on the first use of ExNcurses.getch()
All uses after the first appear to work fine.