Skip to content
Snippets Groups Projects
Commit 8d92b5a6 authored by deuce's avatar deuce
Browse files

Initial support for NetBSDs native curses.

parent 682a9bdc
No related branches found
No related tags found
No related merge requests found
......@@ -218,7 +218,11 @@ int chat(scfg_t *cfg, int nodenum, node_t *node, box_t *boxch, void(*timecallbac
FREE(p);
lseek(in,0,SEEK_SET);
lseek(out,0,SEEK_SET);
#ifdef __NetBSD__
timeout(100);
#else
halfdelay(1);
#endif
togglechat(cfg,nodenum,node,TRUE);
......@@ -279,7 +283,9 @@ int chat(scfg_t *cfg, int nodenum, node_t *node, box_t *boxch, void(*timecallbac
if((ch=wgetch(swin))) {
switch(ch) {
#if ERR!=0
case 0:
#endif
case ERR:
ch=0;
write(out,&ch,1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment