5 curses.attron(curses.A_BOLD);
6 curses.addstr("Command: ");
7 curses.attron(underline);
10 local c = string.char(curses.getch());
11 if (c == '\n') then break; end
14 curses.attroff(underline);
15 curses.attroff(curses.A_BOLD);
25 curses.keypad(curses.stdscr(), TRUE);
27 if (curses.has_colors()) then
29 curses.init_pair(1, curses.COLOR_CYAN, curses.COLOR_BLACK);
30 underline = curses.COLOR_PAIR(1);
32 underline = curses.A_UNDERLINE;
37 if (s == "exit") then break; end
38 curses.reset_shell_mode();
42 curses.reset_prog_mode();
43 curses.touchwin(curses.stdscr());