printWindowCommand resource

From The x3270 Wiki
Type Default Option
string xwd -id %d | xpr | lpr

Defines the command used to print the window contents with the PrintWindow() action.

Within the value, the string %d is replaced with the window ID of the x3270 process.

If the command begins with @, the usual pop-window to confirm the operation and allow the command to be edited, will be suppressed.