:SetMode()


Class

     aprTelnet()

 

Syntax

     :SetMode() -> nPreviousMode

 

Parameters

 

lEnable

Logical indicating whether nMode is enabled or disabled. .

 

nMode

Virtual display mode. See table below.

 

hSession

Optional: If hSession is not passed, the value in :Session will be used

 

Return

Returns the previously set mode.

 

Description

The :SetMode() method sets one or more client modes for the specified session.

 

The value nMode is a combination of one or more flags which determines how the client handles local character echo and character processing.

 

The following values are recognized:

Value

Description

TELNET_MODE_LOCALECHO

The local client is responsible for echoing data entered by the user. By default, this mode is not set which means that the remote server is responsible for echoing back each character written to it.

TELNET_MODE_BINARY

Data exchanged between the client and server should not be converted or line buffered. If this option is not specified, the high-bit will be cleared on all characters, and single linefeed characters will be converted to carriage-return/linefeed sequences.

 

See Also

:GetMode()