122: def initialize(parent=nil)
123: super(parent, Wx::ID_ANY, Wx::DEFAULT_POSITION, Wx::Size.new(400, 300) )
124:
125: @output = Wx::TextCtrl.new(
126: self,
127: Wx::ID_ANY,
128: "dradis> Welcome to dradis\n",
129: Wx::DEFAULT_POSITION,
130: Wx::DEFAULT_SIZE,
131: Wx::TE_MULTILINE|Wx::TE_READONLY,
132: Wx::DEFAULT_VALIDATOR,
133: 'output')
134:
135: @input = BufferedTextCtrl.new(self, 'input')
136:
137:
138: box = Wx::BoxSizer.new(Wx::VERTICAL)
139: box.add( @output, 1, Wx::EXPAND )
140: box.add( @input, 0, Wx::EXPAND )
141: set_sizer(box)
142:
143: evt_text_enter(@input.get_id) { | event | on_text_enter }
144: end