notcurss-input: NCLOGLEVEL_ERROR

pull/2137/head
nick black 3 years ago committed by nick black
parent cd7b4c021d
commit b6844ca214

@ -336,6 +336,7 @@ int main(void){
return EXIT_FAILURE;
}
notcurses_options nopts{};
nopts.loglevel = NCLOGLEVEL_ERROR;
nopts.flags = NCOPTION_INHIBIT_SETLOCALE;
NotCurses nc(nopts);
nc.mouse_enable(); // might fail if no mouse is available

@ -12,12 +12,12 @@ gpmwatcher(void* vti){
(void)ti; // FIXME
Gpm_Event gev;
while(true){
if(Gpm_GetEvent(&gev)){
if(!Gpm_GetEvent(&gev)){
logerror("error reading from gpm daemon\n");
break;
continue;
}
loginfo("got gpm event\n");
// FIXME
// FIXME decode event and enqueue to input layer
}
return NULL;
}

Loading…
Cancel
Save