aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/config.c1
-rw-r--r--doc/commands.txt4
-rw-r--r--src/cmd.c6
-rw-r--r--src/main.c1
4 files changed, 12 insertions, 0 deletions
diff --git a/config/config.c b/config/config.c
index 0088675..8f002b4 100644
--- a/config/config.c
+++ b/config/config.c
@@ -411,6 +411,7 @@ void main(void) {
conf->show_ping = yn("Show PING/PONG", conf->show_ping);
conf->atract_away = yn("Set AWAY on ATRACT", conf->atract_away);
conf->hide_motd = yn("Hide MOTD", conf->hide_motd);
+ conf->disable_keyclick = yn("Disable keyclick (XL/XE)", conf->disable_keyclick);
prompt_channels();
prompt_extra_channels();
diff --git a/doc/commands.txt b/doc/commands.txt
index 85a32f7..94e165d 100644
--- a/doc/commands.txt
+++ b/doc/commands.txt
@@ -80,6 +80,10 @@ any arguments lists every channel on the server, which isn't useful.
Set colors. This should be on a per-screen basis, eventually.
TODO: this only takes bg and fg arguments, currently.
+/click
+Toggles the keyclick sound, if you're on an Atari XL or XE. On the
+400/800, it does nothing (sorry).
+
/chans
List all channels we've joined. This will actually be limited to
something like 20 (who joins more than 20 channels anyway?)
diff --git a/src/cmd.c b/src/cmd.c
index 0ef8617..767809d 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -15,6 +15,7 @@ static char *target;
static void do_away(void);
static void do_bell(void);
+static void do_click(void);
static void do_color(void);
static void do_ctcp(void);
static void do_info(void);
@@ -44,6 +45,7 @@ typedef struct {
cmd_t command_defs[] = {
{ "AWAY", do_away, 1 },
{ "ALERT", do_bell, 1 },
+ { "CLICK", do_click, 0 },
{ "COLOR", do_color, 1 },
{ "CTCP", do_ctcp, 1 },
{ "INFO", do_info, 0 },
@@ -394,6 +396,10 @@ static void do_bell(void) {
bell_type = *arg1 - '0';
}
+static void do_click(void) {
+ OS.noclik ^= 1;
+}
+
static int cmd_local(void) {
arg1 = nextarg(command);
diff --git a/src/main.c b/src/main.c
index fa70df5..a701324 100644
--- a/src/main.c
+++ b/src/main.c
@@ -129,6 +129,7 @@ void main(void) {
OS.soundr = 0; // Turn off SIO beeping sound
OS.color2 = conf->colors[0];
OS.color1 = conf->colors[1];
+ OS.noclik = conf->disable_keyclick;
hz = (GTIA_READ.pal & 0x0e) ? 60 : 50;