Rev 2799 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2799 | Rev 4377 | ||
---|---|---|---|
Line 275... | Line 275... | ||
275 | /* * - no reverse video. */ |
275 | /* * - no reverse video. */ |
276 | /* *\/ */ |
276 | /* *\/ */ |
277 | /* classic = 1; */ |
277 | /* classic = 1; */ |
278 | /* break; */ |
278 | /* break; */ |
279 | /* case 'k': */ |
279 | /* case 'k': */ |
280 | /* if (strlen(keys = optarg) != 6) */ |
280 | /* if (str_size(keys = optarg) != 6) */ |
281 | /* usage(); */ |
281 | /* usage(); */ |
282 | /* break; */ |
282 | /* break; */ |
283 | /* case 'l': */ |
283 | /* case 'l': */ |
284 | /* level = (int)strtonum(optarg, MINLEVEL, MAXLEVEL, */ |
284 | /* level = (int)strtonum(optarg, MINLEVEL, MAXLEVEL, */ |
285 | /* &errstr); */ |
285 | /* &errstr); */ |
Line 309... | Line 309... | ||
309 | for (j = i+1; j <= 5; j++) { |
309 | for (j = i+1; j <= 5; j++) { |
310 | if (keys[i] == keys[j]) |
310 | if (keys[i] == keys[j]) |
311 | errx(1, "duplicate command keys specified."); |
311 | errx(1, "duplicate command keys specified."); |
312 | } |
312 | } |
313 | if (keys[i] == ' ') |
313 | if (keys[i] == ' ') |
314 | strncpy(key_write[i], "<space>", sizeof key_write[i]); |
314 | str_cpy(key_write[i], sizeof key_write[i], "<space>"); |
315 | else { |
315 | else { |
316 | key_write[i][0] = keys[i]; |
316 | key_write[i][0] = keys[i]; |
317 | key_write[i][1] = '\0'; |
317 | key_write[i][1] = '\0'; |
318 | } |
318 | } |
319 | } |
319 | } |
Line 388... | Line 388... | ||
388 | place(curshape, pos, 1); |
388 | place(curshape, pos, 1); |
389 | do { |
389 | do { |
390 | scr_update(); |
390 | scr_update(); |
391 | scr_msg(key_msg, 0); |
391 | scr_msg(key_msg, 0); |
392 | scr_msg(msg, 1); |
392 | scr_msg(msg, 1); |
393 | // (void) fflush(stdout); |
393 | (void) fflush(stdout); |
394 | } while (rwait((struct timeval *)NULL) == -1); |
394 | } while (rwait((struct timeval *)NULL) == -1); |
395 | scr_msg(msg, 0); |
395 | scr_msg(msg, 0); |
396 | scr_msg(key_msg, 1); |
396 | scr_msg(key_msg, 1); |
397 | place(curshape, pos, 0); |
397 | place(curshape, pos, 0); |
398 | continue; |
398 | continue; |