Class: Roebe::Shell::VteTerminalFrame
- Includes:
- Gtk::BaseModule
- Defined in:
- lib/roebe/shell/gui/gtk3/vte_terminal_frame.rb
Constant Summary collapse
- FONT_SIZE =
#
FONT_SIZE
#
'18'
- FONT =
#
FONT
#
'Monospace '+FONT_SIZE
Instance Method Summary collapse
-
#initialize(run_already = true) ⇒ VteTerminalFrame
constructor
# === initialize ========================================================================= #.
-
#run ⇒ Object
# == run ========================================================================= #.
Constructor Details
#initialize(run_already = true) ⇒ VteTerminalFrame
#
initialize
#
38 39 40 41 |
# File 'lib/roebe/shell/gui/gtk3/vte_terminal_frame.rb', line 38 def initialize(run_already = true) super('Terminal') run if run_already end |
Instance Method Details
#run ⇒ Object
#
run
#
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/roebe/shell/gui/gtk3/vte_terminal_frame.rb', line 46 def run # ======================================================================= # # Add the VTE-Terminal: # ======================================================================= # terminal = vte_terminal terminal.set_font(FONT, Vte::TerminalAntiAlias::FORCE_ENABLE) terminal.signal_connect(:child_exited) { ::Gtk.main_quit } terminal.signal_connect(:window_title_changed) { || # window.title = terminal.window_title } terminal.set_size(22,22) terminal.fork_command terminal.feed_child( Thread.new { Roebe::Shell.new }.join ) add(terminal) show_all end |