[comp.windows.x] Xterm buffer printing

swong@zaphod.mpr.ca (Susan Wong) (04/09/90)

Hi!

I'm currently looking for a way to print the text buffered up in an xterm.
What I would like to happen is this:

	1) user selects "Print Buffer" out of one of the xterm menus
	2) all the text in the scroll buffer gets printed on the user's
	   default printer

I figure the only way to achieve this is to dive into the xterm source. 
However,
having had a quick look at the source (and the warnings - "Abandon All
Hope, Ye Who Enter Here") I've realized that this not going to be easy.

Does anyone have any advice - like where in the source to look for access to
the buffer contents? I think that this would be a universally useful feature
since the only other way to print xterm contents would be to use the logging
feature and printing the log file.

I would be happy to hear *ANY* suggestions!

Thanks for listening,

Susan