XpGetContext(3Xp) XPRINT FUNCTIONS XpGetContext(3Xp)NAME
XpGetContext - Gets the current print context-id for a display connection.
SYNOPSIS
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
XPContext XpGetContext ( display )
Display *display;
ARGUMENTS
display
Specifies a pointer to the Display structure; returned from XOpenDisplay.
DESCRIPTION
XpGetContext returns the id of the current print context associated with display. If a print context has not been set, a value of None is
returned.
X Version 11 libXp 1.0.0 XpGetContext(3Xp)
Check Out this Related Man Page
XpInputSelected(3Xp) XPRINT FUNCTIONS XpInputSelected(3Xp)NAME
XpInputSelected - Queries which X Print events the client has selected to receive from the specific print context.
SYNOPSIS
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
unsigned long XpInputSelected ( display, context, event_mask )
Display *display;
XPContext context;
unsigned long *all_event_mask_return;
ARGUMENTS
display
Specifies a pointer to the Display structure; returned from XOpenDisplay.
context
Specifies the print context to which the query is being made.
all_event_mask_return
Returns the set of events that any client has selected.
DESCRIPTION
XpInputSelected returns a bit mask describing which event classes the client has selected to receive. The value returned to
all_event_mask_return is the union of every client's event mask. XpInputSelected queries which X Print events from the specified print
context the client has selected to receive. The X Print Events are generated from a print context, and not from a window as is the case
with XSelectInput. As events arrive, the context field in the event is used to determine which print context generated the event. See XpS-
electInput for the event_mask and all_event_mask (??return??) values.
DIAGNOSTICS
XPBadContext The specified print context is not valid.
SEE ALSO XpSelectInput(3Xp)X Version 11 libXp 1.0.0 XpInputSelected(3Xp)
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)