Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
XmtCliPrintf(3) 	    Library Functions Manual		 XmtCliPrintf(3)

NAME
     XmtCliPrintf(),  XmtCliPuts(),  XmtCliClear()  - XmtCli widget output func-
     tions.

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)

ARGUMENTS
     INPUTS

	  w	 An XmtCli widget.

	  format For XmtCliPrintf() only, a printf()-style format string.

	  ...	 For XmtCliPrintf() only, a printf()-style variable length argu-
		 ment list containing one argument of appropriate type for  each
		 `%' substitution that occurs in format.

	  s	 For XmtCliPuts() only, the string to be displayed.  This string
		 may not contain printf()-style substitutions.

DESCRIPTION
     XmtCliPrintf()  appends  a printf()-style formatted string to the text dis-
     played 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 ALSO
     Chapter 21, Command Line Input,
     XmtCli, XmtCliFlush(), XmtCliGets().

Xmt				   Motif Tools			 XmtCliPrintf(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=XmtCliPrintf&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help