|
NAMEXmtCliPrintf(), XmtCliPuts(), XmtCliClear() - XmtCli widget output functions.SYNOPSIS#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 w) ARGUMENTSINPUTS
DESCRIPTIONXmtCliPrintf() appends a printf()-style formatted string to the text displayed in the specified XmtCli widget.XmtCliPuts() 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 argument. Both XmtCliPrintf() and XmtCliPuts() 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. XmtCliClear() erases all visible text in w, and also deletes any text that had scrolled off the top of that widget. After calling XmtCliClear(), 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. SEE ALSOChapter 21, Command Line Input,XmtCli, XmtCliFlush(), XmtCliGets().
Visit the GSP FreeBSD Man Page Interface. |