Commits
Ryan Schmidt authored 5d80ff3bf7c
1 - | --- src/dumb/dumb_input.c.orig 2002-10-26 20:44:10.000000000 -0500 |
2 - | +++ src/dumb/dumb_input.c 2012-07-26 07:27:34.000000000 -0500 |
3 - | |
4 - | /* Read one line, including the newline, into s. Safely avoids buffer |
5 - | * overruns (but that's kind of pointless because there are several |
6 - | * other places where I'm not so careful). */ |
7 - | -static void getline(char *s) |
8 - | +static void frotz_getline(char *s) |
9 - | { |
10 - | int c; |
11 - | char *p = s; |
12 - | |
13 - | fputs(prompt, stdout); |
14 - | else |
15 - | dumb_show_prompt(show_cursor, (timeout ? "tTD" : ")>}")[type]); |
16 - | - getline(s); |
17 - | + frotz_getline(s); |
18 - | if ((s[0] != '\\') || ((s[1] != '\0') && !islower(s[1]))) { |
19 - | /* Is not a command line. */ |
20 - | translate_special_chars(s); |
21 - | |
22 - | if (!*current_page) |
23 - | break; |
24 - | printf("HELP: Type <return> for more, or q <return> to stop: "); |
25 - | - getline(s); |
26 - | + frotz_getline(s); |
27 - | if (!strcmp(s, "q\n")) |
28 - | break; |
29 - | } |