blob: bfbb5aa3ab9baba5d91b734933a8281564032e81 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
--- curs_lib.c.old Wed Sep 1 19:39:20 1999
+++ curs_lib.c Sun Sep 26 23:47:03 1999
@@ -156,6 +156,16 @@
def = 0;
break;
}
+ else if (tolower(ch.ch) == 'y')
+ {
+ def = 1;
+ break;
+ }
+ else if (tolower(ch.ch) == 'n')
+ {
+ def = 0;
+ break;
+ }
else
{
BEEP();
@@ -413,8 +423,9 @@
{
event_t ch;
int choice;
- char *p;
+ char *p, *nletters;
+ nletters = _(letters);
mvaddstr (LINES - 1, 0, prompt);
clrtoeol ();
FOREVER
@@ -428,6 +439,12 @@
}
else
{
+ p = strchr (nletters, ch.ch);
+ if (p)
+ {
+ choice = p - nletters + 1;
+ break;
+ }
p = strchr (letters, ch.ch);
if (p)
{
|