- XmtCli widget
#include <Xmt/Cli.h> void
XmtCliPrintf(Widget w, String format, ...)
#include <Xmt/Cli.h> void XmtCliPuts(String
s, Widget w)
#include <Xmt/Cli.h> void XmtCliClear(Widget
- An XmtCli widget.
- For XmtCliPrintf() only, a printf()-style format
- For XmtCliPrintf() only, a printf()-style variable length
argument list containing one argument of appropriate type for each `%'
substitution that occurs in format.
- For XmtCliPuts() only, the string to be displayed. This string may
not contain printf()-style substitutions.
appends a printf()
-style formatted string to the
text displayed in the specified XmtCli widget.
appends the string s
to the XmtCli widget w
Note that this function is unusual in that it does not take the XmtCli widget
as its first argument. It takes the widget after the string for analogy to the
C library function fputs()
which takes the output stream as its second
will automatically scroll the
XmtCli widget, if necessary, so that all of the output text is visible. If
there is a partially typed line of input displayed in the widget, then the
output string appears after all other output, but before the pending input
string-this means that the user's line of input is not disrupted.
erases all visible text in w
, and also deletes any
text that had scrolled off the top of that widget. After calling
, the widget will be blank, and the user will not be able
to scroll up to see previous lines. This function does not affect the command
history buffer, however.
Chapter 21, Command Line Input