Browse Source

Disable/enable echo & cbreak modes.

nfactor-troky
Con Kolivas 14 years ago
parent
commit
b4f651f4ff
  1. 5
      main.c

5
main.c

@ -961,6 +961,8 @@ static void workio_cmd_free(struct workio_cmd *wc)
static void disable_curses(void) static void disable_curses(void)
{ {
if (test_and_clear(&curses_active)) { if (test_and_clear(&curses_active)) {
nocbreak();
echo();
delwin(logwin); delwin(logwin);
delwin(statuswin); delwin(statuswin);
delwin(mainwin); delwin(mainwin);
@ -2574,6 +2576,7 @@ static void input_pool(void)
{ {
char *url, *user, *pass, *seterr; char *url, *user, *pass, *seterr;
echo();
immedok(logwin, true); immedok(logwin, true);
wprintw(logwin, "Input server details.\n"); wprintw(logwin, "Input server details.\n");
@ -2594,6 +2597,7 @@ static void input_pool(void)
wclear(logwin); wclear(logwin);
immedok(logwin, false); immedok(logwin, false);
noecho();
} }
int main (int argc, char *argv[]) int main (int argc, char *argv[])
@ -2705,6 +2709,7 @@ int main (int argc, char *argv[])
idlok(logwin, true); idlok(logwin, true);
scrollok(logwin, true); scrollok(logwin, true);
leaveok(logwin, true); leaveok(logwin, true);
cbreak();
test_and_set(&curses_active); test_and_set(&curses_active);
} }

Loading…
Cancel
Save