Class: HrrRbSsh::Connection::RequestHandler::ReferenceWindowChangeRequestHandler

Inherits:
HrrRbSsh::Connection::RequestHandler show all
Defined in:
lib/hrr_rb_ssh/connection/request_handler/reference_window_change_request_handler.rb

Instance Method Summary collapse

Methods inherited from HrrRbSsh::Connection::RequestHandler

#run

Constructor Details

#initializeReferenceWindowChangeRequestHandler

Returns a new instance of ReferenceWindowChangeRequestHandler.



11
12
13
14
15
# File 'lib/hrr_rb_ssh/connection/request_handler/reference_window_change_request_handler.rb', line 11

def initialize
  @proc = Proc.new { |context|
    context.vars[:ptm].winsize = [context.terminal_height_rows, context.terminal_width_columns, context.terminal_width_pixels, context.terminal_height_pixels]
  }
end