class HrrRbSsh::Connection::Channel::ChannelType::Session::RequestType::PtyReq::Context
Attributes
encoded_terminal_modes[R]
io[R]
term_environment_variable_value[R]
terminal_height_pixels[R]
terminal_height_rows[R]
terminal_width_characters[R]
terminal_width_pixels[R]
username[R]
variables[R]
vars[R]
Public Class Methods
new(proc_chain, username, io, variables, message, session, logger: nil)
click to toggle source
# File lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/pty_req/context.rb, line 28 def initialize proc_chain, username, io, variables, message, session, logger: nil self.logger = logger @proc_chain = proc_chain @username = username @io = io @variables = variables @vars = variables @session = session @term_environment_variable_value = message[:'TERM environment variable value'] @terminal_width_characters = message[:'terminal width, characters'] @terminal_height_rows = message[:'terminal height, rows'] @terminal_width_pixels = message[:'terminal width, pixels'] @terminal_height_pixels = message[:'terminal height, pixels'] @encoded_terminal_modes = message[:'encoded terminal modes'] end
Public Instance Methods
chain_proc(&block)
click to toggle source
# File lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/pty_req/context.rb, line 46 def chain_proc &block @proc = block || @proc end
close_session()
click to toggle source
# File lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/pty_req/context.rb, line 50 def close_session @session.close end