code: public void setTerminalMode(int mode, int value) throws SshException {
  		try {
  
  			encodedModes.write(mode);
  
  			if (version == 1 && mode <= 127) {
  				encodedModes.write(value);
  			} else {
  				encodedModes.writeInt(value);
  			}
  
  		} catch (IOException ex) {
  			throw new SshException(SshException.INTERNAL_ERROR, ex);
  		}
  	}
docs: Set an integer value mode
  
  @param mode
  int
  @param value
  int
  @throws SshException