Skip to content
Snippets Groups Projects
Commit 6daa5612 authored by rswindell's avatar rswindell
Browse files

Abort the systems poll if the user hits a key.

parent d7918637
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,8 @@ for(i=0; i<argc; i++) {
function poll_callback(loop)
{
printf("%c\1[", "/-\\|"[loop%4]);
if(console.inkey(0))
return true;
}
lib.poll_systems(sent, 0.25, timeout, poll_callback);
list_users();
......
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