GNOME Bugzilla – Bug 441027
add printing functionality
Last modified: 2021-06-10 19:00:11 UTC
Actually you cant print what id displayed in gnome-terminal. Maybe this could be difficult if one has a long command history. But I think it should be possible. Maybe if the user has to select the text she wants to print. But gnome-terminal is one of few appliactions that cant print. Currently the user would have to copy text and paste into gedit. I think this is not straight forward.
I think I can expand a bit on this user's needs, based on what features several other applications have available. A couple of quick menu options that would prove useful: 1) Print Screen 2) Print all scrollback 3) (When text is selected): Print Selection. I've recently opened another bug for "Passthrough" printing support, but if we're going to make gnome-terminal talk to printers, this is only a minor other undertaking. -Dan Mahoney
See Also: bug 613854
Related to this, I’d really like a „dump as HTML“ and „dump as PDF“ feature, that would generate a HTML (or PDF, or SVG) file of the current screen/the selection/the full scrollback buffer _with attributes_ (colors, boldness. Maybe even blinking, in case of HTML :-)). I’d be willing to (try to) implement this if there is a chance that this would be accepted.
Although it would be nice and helpful if bug 499895 were fixed first :-)
HTML export should be already filed somewhere else.
Correct, that is bug 365121. I guess a simple export would be the first thing to do. Based on that, and independenty, a printing dialog and the copy target could be implemented.
In case I loose track or interest here, and someone else will pick up this bug, here is some code that might be useful to debug your html target: #!/usr/bin/python import pygtk pygtk.require('2.0') import gtk import gobject def dump_clipboard_callback(clipboard, selection_data, data=None): print selection_data.data gtk.main_quit() def blubb(): clipboard = gtk.Clipboard() target = "text/html" clipboard.wait_for_contents(target) clipboard.request_contents(target, dump_clipboard_callback) return False gobject.idle_add(blubb) gtk.main()
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/5833.