MCPcopy Create free account
hub / github.com/assaultcube/AC / saycommand

Function saycommand

source/src/console.cpp:327–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325COMMAND(onrelease, "s");
326
327void saycommand(char *init) // turns input to the command line on or off
328{
329 saycommandon = (init != NULL);
330 textinput(saycommandon, TI_CONSOLE);
331 keyrepeat(saycommandon, KR_CONSOLE);
332 setscope(false);
333 copystring(cmdline.buf, init ? escapestring(init, false, true) : "");
334 DELETEA(cmdaction);
335 DELETEA(cmdprompt);
336 cmdline.pos = -1;
337}
338COMMAND(saycommand, "c");
339
340void inputcommand(char *init, char *action, char *prompt, int *nopersist)

Callers 2

inputcommandFunction · 0.85
consolekeyFunction · 0.85

Calls 5

textinputFunction · 0.85
keyrepeatFunction · 0.85
setscopeFunction · 0.85
copystringFunction · 0.85
escapestringFunction · 0.85

Tested by

no test coverage detected