Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 988 → Rev 989

/svarcom/trunk/cmd/echo.c
1,7 → 1,7
/* This file is part of the SvarCOM project and is published under the terms
* of the MIT license.
*
* Copyright (C) 2021 Mateusz Viste
* Copyright (C) 2021-2022 Mateusz Viste
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
31,12 → 31,12
 
/* display help only if /? is the only argument */
if ((p->argc == 1) && (imatch(p->argv[0], "/?"))) {
outputnl("Displays messages, or turns command-echoing on or off");
nls_outputnl(31,0); /* "Displays messages, or turns command-echoing on or off" */
outputnl("");
outputnl("ECHO [ON | OFF]");
outputnl("ECHO [message]");
nls_outputnl(31,1); /* "ECHO [message]" */
outputnl("");
outputnl("Type ECHO without parameters to display the current echo setting.");
nls_outputnl(31,2); /* "Type ECHO without parameters to display the current setting." */
return(CMD_OK);
}
 
43,9 → 43,9
/* ECHO without any parameter: display current state */
if (p->argc == 0) {
if (p->rmod->flags & FLAG_ECHOFLAG) {
outputnl("ECHO is on");
nls_outputnl(31,3); /* "ECHO is on" */
} else {
outputnl("ECHO is off");
nls_outputnl(31,4); /* "ECHO is off" */
}
return(CMD_OK);
}