Deleted Added
full compact
2c2
< * Copyright (c) 1994 S�ren Schmidt
---
> * Copyright (c) 1994-1995 S�ren Schmidt
27c27
< * $Id: kbdcontrol.c,v 1.1 1994/08/17 08:59:34 sos Exp $
---
> * $Id: kbdcontrol.c,v 1.2 1994/10/25 20:50:41 swallace Exp $
89,91c89,91
< static char *buf = NULL;
< static int bufl = 0;
< int f;
---
> static char *buf = NULL;
> static int bufl = 0;
> int f;
93d92
<
424c423
< int duration, pitch;
---
> int bell, duration, pitch;
426,427c425,428
< if (!strcmp(opt, "normal"))
< duration = 1, pitch = 15;
---
> if (!strcmp(opt, "visual"))
> bell = 1, duration = 1, pitch = 800;
> else if (!strcmp(opt, "normal"))
> bell = 0, duration = 1, pitch = 800;
431c432,433
<
---
>
> bell = 0;
446,448c448,455
< fprintf(stderr, "setting bell values to %d.%d\n",
< duration, pitch);
< fprintf(stderr, "[=%d;%dB", pitch, duration);
---
> if (bell)
> fprintf(stderr, "setting visual bell\n");
> else
> fprintf(stderr, "setting bell values to %d.%d\n",
> duration, pitch);
> ioctl(0, CONS_BELLTYPE, &bell);
> if (!bell)
> fprintf(stderr, "[=%d;%dB", pitch, duration);
504,513c511,521
< "Usage: kbdcontrol -b duration.pitch (set bell duration & pitch)\n"
< " -d (dump keyboard map to stdout)\n"
< " -l filename (load keyboard map file)\n"
< " -f <N> string (set function key N to send <string>)\n"
< " -F (set function keys back to default)\n"
< " -r delay.repeat (set keyboard delay & repeat rate)\n"
< " -r slow (set keyboard delay & repeat to slow)\n"
< " -r normal (set keyboard delay & repeat to normal)\n"
< " -r fast (set keyboard delay & repeat to fast)\n"
< " -v (verbose)\n"
---
> "Usage: kbdcontrol -b duration.pitch (set bell duration & pitch)\n"
> " -b normal | visual (set bell to visual type)\n"
> " -d (dump keyboard map to stdout)\n"
> " -l filename (load keyboard map file)\n"
> " -f <N> string (set function key N to send <string>)\n"
> " -F (set function keys back to default)\n"
> " -r delay.repeat (set keyboard delay & repeat rate)\n"
> " -r slow (set keyboard delay & repeat to slow)\n"
> " -r normal (set keyboard delay & repeat to normal)\n"
> " -r fast (set keyboard delay & repeat to fast)\n"
> " -v (verbose)\n"