Lines 175-183
Link Here
|
175 |
init_pair(1, COLOR_GREEN, cb); |
175 |
init_pair(1, COLOR_GREEN, cb); |
176 |
init_pair(2, COLOR_MAGENTA, cb); |
176 |
init_pair(2, COLOR_MAGENTA, cb); |
177 |
init_pair(3, COLOR_RED, cb); |
177 |
init_pair(3, COLOR_RED, cb); |
178 |
cbreak(); |
|
|
179 |
noecho(); |
180 |
nonl(); |
181 |
nodelay(stdscr, 1); |
178 |
nodelay(stdscr, 1); |
182 |
intrflush(stdscr, FALSE); |
179 |
intrflush(stdscr, FALSE); |
183 |
keypad(stdscr, TRUE); |
180 |
keypad(stdscr, TRUE); |
Lines 195-200
Link Here
|
195 |
el_set(el, EL_PROMPT, el_prompt); |
192 |
el_set(el, EL_PROMPT, el_prompt); |
196 |
if (f_s[0] != '\0') |
193 |
if (f_s[0] != '\0') |
197 |
history(hist, &hist_ev, H_ENTER, f_s); |
194 |
history(hist, &hist_ev, H_ENTER, f_s); |
|
|
195 |
cbreak(); |
196 |
noecho(); |
197 |
nonl(); |
198 |
} |
198 |
} |
199 |
geom_stats_snapshot_timestamp(sq, &tq); |
199 |
geom_stats_snapshot_timestamp(sq, &tq); |
200 |
for (quit = 0; !quit;) { |
200 |
for (quit = 0; !quit;) { |
Lines 402-407
Link Here
|
402 |
clrtoeol(); |
402 |
clrtoeol(); |
403 |
refresh(); |
403 |
refresh(); |
404 |
line = el_gets(el, &line_len); |
404 |
line = el_gets(el, &line_len); |
|
|
405 |
cbreak(); |
406 |
noecho(); |
407 |
nonl(); |
405 |
if (line == NULL) |
408 |
if (line == NULL) |
406 |
err(1, "el_gets"); |
409 |
err(1, "el_gets"); |
407 |
if (line_len > 1) |
410 |
if (line_len > 1) |