'Telnet library can be imported with optional configuration parameters.
Configuration parameters are used as default values when new
connections are opened with `Open Connection` keyword. They can also be
overridden after opening the connection using the `Set ...` `keywords`.
See these keywords as well as `Configuration`, `Terminal emulation` and
`Logging` sections above for more information about these parameters
and their possible values.
See `Time string format` and `Boolean arguments` sections for
information about using arguments accepting times and Boolean values,
respectively.
Examples (use only one of these):
| = Setting = | = Value = | = Value =                | = Value =            | = Value =           | = Comment = |
| Library     | Telnet    |                          |                      |                     | # default values |
| Library     | Telnet    | 5 seconds                |                      |                     | # set only timeout |
| Library     | Telnet    | newline=LF               | encoding=ISO-8859-1  |                     | # set newline and encoding using named arguments |
| Library     | Telnet    | prompt=$                 |                      |                     | # set prompt |
| Library     | Telnet    | prompt=(> |# )           | prompt_is_regexp=yes |                     | # set prompt as a regular expression |
| Library     | Telnet    | terminal_emulation=True  | terminal_type=vt100  | window_size=400x100 | # use terminal emulation with defined window size and terminal type |
| Library     | Telnet    | telnetlib_log_level=NONE |                      |                     | # disable logging messages from the underlying telnetlib |'

def __init__(self, timeout='3    seconds', newline='CRLF', prompt=None, prompt_is_regexp=False, encoding='UTF-8', encoding_errors='ignore', default_log_level='INFO', window_size=None, environ_user=None, terminal_emulation=False, terminal_type=None, telnetlib_log_level='TRACE', connection_timeout=None):

    self._timeout = (timeout or 3.0)
    self._set_connection_timeout(connection_timeout)
    self._newline = (newline or 'CRLF')
    self._prompt = (prompt, prompt_is_regexp)
    self._encoding = encoding
    self._encoding_errors = encoding_errors
    self._default_log_level = default_log_level
    self._window_size = window_size
    self._environ_user = environ_user
    self._terminal_emulation = terminal_emulation
    self._terminal_type = terminal_type
    self._telnetlib_log_level = telnetlib_log_level
    self._cache = ConnectionCache()
    self._conn = None
    self._conn_kws = self._lib_kws = None
