| 895 | } |
| 896 | |
| 897 | int ask_YN(WINDOW *window) |
| 898 | { |
| 899 | int res; |
| 900 | curs_set(1); |
| 901 | wrefresh(window); |
| 902 | do |
| 903 | { |
| 904 | res=toupper(wgetch(window)); |
| 905 | } while(res!=c_NO && res!=c_YES); |
| 906 | curs_set(0); |
| 907 | wprintw(window,"%c\n",res); |
| 908 | return (res==c_YES); |
| 909 | } |
| 910 | |
| 911 | int ask_confirmation(const char*_format, ...) |
| 912 | { |
no outgoing calls
no test coverage detected