DwtCommandSet(3Dwt) DwtCommandSet(3Dwt)
Name
DwtCommandSet - Replaces the current command string with the one passed and executes it, if required.
Syntax
void DwtCommandSet(widget, command)
Widget widget;
char *command;
Arguments
widget Specifies the ID of the command window widget whose current command string you want to replace.
command Specifies the text to replace the text currently on the command line. This argument is a NULL-terminated string.
Description
The DwtCommandSet function replaces the current command string with the passed string within the command window widget. A zero length
string is used to clear the current command line. If the string is terminated by a carriage return (<CR>), linefeed (<LF>), or carriage
return and/or linefeed (<CR><LF>), then the command is executed, the application is informed, the command is moved to the command history,
and a new prompt is issued.
See Also
DwtCommandWindow(3Dwt), DwtCommandAppend(3Dwt), DwtCommandErrorMessage(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtCommandSet(3Dwt)