senf::term::telnethandler::NAWS Class Reference

Implement NAWS (Negotiation About Window Size) option. More...

#include <senf/Utils/Termlib/Telnet.hh>

Inheritance diagram for senf::term::telnethandler::NAWS:
Inheritance graph
[legend]

List of all members.


Detailed Description

Implement NAWS (Negotiation About Window Size) option.

This telnet handler implements the NAWS option. The client terminals window size will be requested during initialization. The current window size may always be accessed using the width() and height() members.

Whenever the window size is changed, the v_windowSizeChanged() function is called. This function must be implemented in a derived class.

See also:
BaseTelnetProtocol for how to integrate this handler
RFC 1073 Telnet Window Size Option

Definition at line 408 of file Telnet.hh.


Public Member Functions

unsigned  width () const
  Get current client window width.
unsigned  height () const
  Get current client window height.

Static Public Attributes

static option_type const  OPTION_CODE = telnetopt::NAWS

Protected Member Functions

  NAWS ()
virtual void  v_windowSizeChanged ()=0
  Called, whenever window size changes.

Constructor & Destructor Documentation

senf::term::telnethandler::NAWS::
NAWS ()

Definition at line 477 of file Telnet.cc.


Member Function Documentation

unsigned senf::term::telnethandler::NAWS::
height ()

Get current client window height.

Reimplemented in senf::term::TelnetTerminal.

Definition at line 65 of file Telnet.cci.

virtual void senf::term::telnethandler::NAWS::
v_windowSizeChanged ()

Called, whenever window size changes.

This member is called for every window size change after initialization.

unsigned senf::term::telnethandler::NAWS::
width ()

Get current client window width.

Reimplemented in senf::term::TelnetTerminal.

Definition at line 59 of file Telnet.cci.


Member Data Documentation


The documentation for this class was generated from the following files: