The halfdelay() function is similar to cbreak(3XCURSES) in that when
set, characters typed by the user are immediately processed by the program. The difference is that ERR is returned if no input is received after tenths tenths
The nocbreak(3XCURSES) function should be used to leave half-delay mode.
On success, the halfdelay() function returns OK. Otherwise, it returns ERR.