1Vte(3) User Contributed Perl Documentation Vte(3)
2
3
4
6 Gnome2::Vte - (DEPRECATED) Perl interface to the Virtual Terminal
7 Emulation library
8
10 use strict;
11 use Glib qw(TRUE FALSE);
12 use Gtk2 -init;
13 use Gnome2::Vte;
14
15 # create things
16 my $window = Gtk2::Window->new;
17 my $scrollbar = Gtk2::VScrollbar->new;
18 my $hbox = Gtk2::HBox->new;
19 my $terminal = Gnome2::Vte::Terminal->new;
20
21 # set up scrolling
22 $scrollbar->set_adjustment ($terminal->get_adjustment);
23
24 # lay 'em out
25 $window->add ($hbox);
26 $hbox->pack_start ($terminal, TRUE, TRUE, 0);
27 $hbox->pack_start ($scrollbar, FALSE, FALSE, 0);
28 $window->show_all;
29
30 # hook 'em up
31 $terminal->fork_command ('/bin/bash', ['bash', '-login'], undef,
32 '/tmp', FALSE, FALSE, FALSE);
33 $terminal->signal_connect (child_exited => sub { Gtk2->main_quit });
34 $window->signal_connect (delete_event =>
35 sub { Gtk2->main_quit; FALSE });
36
37 # turn 'em loose
38 Gtk2->main;
39
41 DEPRECATED This module allows a Perl developer to use the Virtual
42 Terminal Emulator library (libvte for short).
43
45 NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
46
47 This module has been deprecated by the Gtk-Perl project. This means
48 that the module will no longer be updated with security patches, bug
49 fixes, or when changes are made in the Perl ABI. The Git repo for this
50 module has been archived (made read-only), it will no longer possible
51 to submit new commits to it. You are more than welcome to ask about
52 this module on the Gtk-Perl mailing list, but our priorities going
53 forward will be maintaining Gtk-Perl modules that are supported and
54 maintained upstream; this module is neither.
55
56 Since this module is licensed under the LGPL v2.1, you may also fork
57 this module, if you wish, but you will need to use a different name for
58 it on CPAN, and the Gtk-Perl team requests that you use your own
59 resources (mailing list, Git repos, bug trackers, etc.) to maintain
60 your fork going forward.
61
62 • Perl URL: https://gitlab.gnome.org/GNOME/perl-gnome2-vfs
63
64 • Upstream URL: https://gitlab.gnome.org/Archive/gnome-vfs
65
66 • Last upstream version: 2.24.4
67
68 • Last upstream release date: 2010-09-28
69
70 • Migration path for this module: Glib::IO
71
72 • Migration module URL: https://metacpan.org/pod/Glib::IO
73
75 Gnome2::Vte::index(3pm), Gtk2(3pm), Gtk2::api(3pm) and
76 <http://developer.gnome.org/doc/API/2.0/vte/>.
77
79 Torsten Schoenfeld <kaffeetisch at gmx dot de>
80
82 Copyright (C) 2003-2006 by the gtk2-perl team
83
84
85
86perl v5.36.0 2022-07-22 Vte(3)