Read commands from the keyboard. Function terminates when user quits the application. Definition at line 568 of file gui_input.c. 00569 { 00570 int ch; 00571 unsigned int i; 00572 00573 #ifdef G_OS_UNIX 00574 signal(SIGHUP, gui_input_sighandler); 00575 signal(SIGINT, gui_input_sighandler); 00576 signal(SIGPIPE, gui_input_sighandler); 00577 signal(SIGQUIT, gui_input_sighandler); 00578 signal(SIGTERM, gui_input_sighandler); 00579 #endif /* G_OS_UNIX */ 00580 00581 for (;;) { 00582 ch = gui_input_getch(); 00583 gui_msgbar_flush(); 00584 00585 for (i = 0; i < NUM_BINDINGS; i++) { 00586 /* Let's see if the button matches */ 00587 if (kbdbindings[i].input != ch || 00588 (kbdbindings[i].focus != -1 && 00589 kbdbindings[i].focus != gui_input_curfocus)) 00590 continue; 00591 00592 #ifdef BUILD_DBUS 00593 dbus_lock(); 00594 kbdbindings[i].func(); 00595 dbus_unlock(); 00596 #else /* !BUILD_DBUS */ 00597 kbdbindings[i].func(); 00598 #endif /* BUILD_DBUS */ 00599 break; 00600 } 00601 00602 gui_draw_done(); 00603 } 00604 }
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() |
1.6.3