Lines 127-133
Link Here
|
127 |
(RealGameCnt+1)/2 + 1 ); |
127 |
(RealGameCnt+1)/2 + 1 ); |
128 |
} |
128 |
} |
129 |
pthread_mutex_lock(&input_mutex); |
129 |
pthread_mutex_lock(&input_mutex); |
130 |
getline(prompt); |
130 |
getline_gnome(prompt); |
131 |
input_status = INPUT_AVAILABLE; |
131 |
input_status = INPUT_AVAILABLE; |
132 |
pthread_cond_signal(&input_cond); |
132 |
pthread_cond_signal(&input_cond); |
133 |
pthread_mutex_unlock(&input_mutex); |
133 |
pthread_mutex_unlock(&input_mutex); |
Lines 173-185
Link Here
|
173 |
{ |
173 |
{ |
174 |
#ifdef HAVE_LIBREADLINE |
174 |
#ifdef HAVE_LIBREADLINE |
175 |
if (isatty(STDIN_FILENO)) { |
175 |
if (isatty(STDIN_FILENO)) { |
176 |
getline = getline_readline; |
176 |
getline_gnome = getline_readline; |
177 |
using_history(); |
177 |
using_history(); |
178 |
} else { |
178 |
} else { |
179 |
getline = getline_standard; |
179 |
getline_gnome = getline_standard; |
180 |
} |
180 |
} |
181 |
#else |
181 |
#else |
182 |
getline = getline_standard; |
182 |
getline_gnome = getline_standard; |
183 |
#endif |
183 |
#endif |
184 |
/* Start input thread */ |
184 |
/* Start input thread */ |
185 |
pthread_create(&input_thread, NULL, input_func, NULL); |
185 |
pthread_create(&input_thread, NULL, input_func, NULL); |