Line 307... |
Line 307... |
307 |
|
307 |
|
308 |
static int selectkeyb(struct slocales *locales) {
|
308 |
static int selectkeyb(struct slocales *locales) {
|
309 |
int menuheight, choice;
|
309 |
int menuheight, choice;
|
310 |
if (locales->keyblen == 1) return(MENUNEXT); /* do not ask for keyboard layout if only one is available for given language */
|
310 |
if (locales->keyblen == 1) return(MENUNEXT); /* do not ask for keyboard layout if only one is available for given language */
|
311 |
newscreen(0);
|
311 |
newscreen(0);
|
312 |
putstringnls(5, 1, COLOR_BODY[mono], 1, 5, "SvarDOS supports the keyboard layouts used in different countries. Choose the keyboard layout you want.");
|
312 |
putstringnls(5, 1, COLOR_BODY[mono], 1, 5, "SvarDOS supports different keyboard layouts. Choose the keyboard layout that you want.");
|
313 |
menuheight = locales->keyblen + 2;
|
313 |
menuheight = locales->keyblen + 2;
|
314 |
if (menuheight > 13) menuheight = 13;
|
314 |
if (menuheight > 13) menuheight = 13;
|
315 |
choice = menuselect(10, -1, menuheight, &(kblayouts[locales->keyboff]), locales->keyblen);
|
315 |
choice = menuselect(10, -1, menuheight, &(kblayouts[locales->keyboff]), locales->keyblen);
|
316 |
if (choice < 0) return(MENUPREV);
|
316 |
if (choice < 0) return(MENUPREV);
|
317 |
/* (re)load the keyboard layout & codepage setup */
|
317 |
/* (re)load the keyboard layout & codepage setup */
|