After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 441027 - add printing functionality
add printing functionality
Status: RESOLVED OBSOLETE
Product: gnome-terminal
Classification: Core
Component: general
2.18.x
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-24 19:50 UTC by Thilo
Modified: 2021-06-10 19:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Thilo 2007-05-24 19:50:59 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.
Comment 1 Dan Mahoney 2010-03-24 23:56:44 UTC
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
Comment 2 Dan Mahoney 2010-03-25 00:02:45 UTC
See Also: bug 613854
Comment 3 Joachim Breitner 2011-07-14 17:41:04 UTC
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.
Comment 4 Joachim Breitner 2011-07-14 17:46:04 UTC
Although it would be nice and helpful if bug 499895 were fixed first :-)
Comment 5 Behdad Esfahbod 2011-07-14 17:54:56 UTC
HTML export should be already filed somewhere else.
Comment 6 Joachim Breitner 2011-07-14 17:58:42 UTC
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.
Comment 7 Joachim Breitner 2011-07-16 17:58:57 UTC
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()
Comment 8 GNOME Infrastructure Team 2021-06-10 19:00:11 UTC
-- 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.