Welcome to the Builder Academy

Question Turning off echo in TBAMUD

More
25 Feb 2025 02:18 #10553 by gbcs
Has anyone developed a patch to support the turning off of input echo in the code. I want to connect with a client that already does the echo of input from the command line. I also do not have a very fast connection so this would save me some bandwidth.

Graham

Please Log in or Create an account to join the conversation.

More
28 Feb 2025 21:29 #10567 by thomas
Replied by thomas on topic Turning off echo in TBAMUD
I'd add it as a flag - to the do_toggle command.
Currently, echoing is turned on after login by the echo_on() call here: github.com/tbamud/tbamud/blob/be8de64cf8...er.c#L1578C1-L1579C1
It should be reasonably easy to check if echoing should stay on, in for example the rmotd-state:
Code:
case CON_RMOTD: /* read CR after printing motd */ write_to_output(d, "%s", CONFIG_MENU); if (IS_HAPPYHOUR > 0){ write_to_output(d, "\r\n"); write_to_output(d, "\tyThere is currently a Happyhour!\tn\r\n"); write_to_output(d, "\r\n"); } if (PRF_FLAGGED(d->character, PRF_NO_ECHO)) { write_to_output(d, "Turning off echo. Toggle it back on again with "toggle echo".\r\n"); echo_off(); } add_llog_entry(d->character, LAST_CONNECT); STATE(d) = CON_MENU; break;
I'll leave adding the toggle to you :)

Please Log in or Create an account to join the conversation.

More
02 Mar 2025 05:38 #10570 by gbcs
Replied by gbcs on topic Turning off echo in TBAMUD
Thomas,

First, thanks for the reply and taking the time to research a change for my question.

Graham

Please Log in or Create an account to join the conversation.

Time to create page: 0.324 seconds