Class: TopinambourTermBox

Inherits:
Gtk::Box
  • Object
show all
Defined in:
lib/terminal.rb

Overview

The main full tab Gtk::Box + Vte::Terminal + Gtk::Scrollbar

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command_string, working_dir = nil) ⇒ TopinambourTermBox

Returns a new instance of TopinambourTermBox.



22
23
24
25
26
27
28
29
30
31
# File 'lib/terminal.rb', line 22

def initialize(command_string, working_dir = nil)
  super(:horizontal, 0)
  set_name("topinambour-term-box")
  @term = TopinambourTerminal.new(command_string, working_dir)
  @scrollbar = Gtk::Scrollbar.new(:vertical, @term.vadjustment)
  @scrollbar.name = "topinambour-scrollbar"
  pack_start(@term, :expand => true, :fill => true, :padding => 0)
  pack_start(@scrollbar)
  show_all
end

Instance Attribute Details

#termObject (readonly)

Returns the value of attribute term.



21
22
23
# File 'lib/terminal.rb', line 21

def term
  @term
end