def query(attr)
case attr
when :terminal
retval = @terminal
when :termsize
retval = [@twidth, @theight]
when :color
retval = @color_on
when :zmp
retval = @zmp_on
when :echo
retval = @echo_on
when :binary
retval = @binary_on
when :eorec
retval = @eorec_on
when :urgent
retval = @urgent_on
when :hide
retval = @hide_on
when :ip
retval = @conn.addr
when :host
retval = @conn.host
else
log.error "(#{self.object_id}) ProtocolStack#query unknown setting '#{pair.inspect}'"
retval = false
end
log.debug "(#{self.object_id}) ProtocolStack#query called '#{attr}',r:#{retval.inspect}"
retval
end