print ?-w win? ?-ask (0|1)?
Print the specified window. The
-ask option specifies whether to present the printing dialog giving the user the opportunity to cancel the operation (the default value is 1). If the -ask option is set to 0, the document is printed unconditionally.