#NEWLINE# def __init__( self , protocol ) : #NEWLINE# #INDENT# '\n        initialize NAWS by storing protocol on ourselves and calling\n        the client to see if it supports NAWS.\n\n        Args:\n            protocol (Protocol): The active protocol instance.\n\n        ' #NEWLINE# self . naws_step = 0 #NEWLINE# self . protocol = protocol #NEWLINE# self . protocol . protocol_flags [ 'SCREENWIDTH' ] = { #NEWLINE# #INDENT# 0 : DEFAULT_WIDTH , #NEWLINE# #UNINDENT# } #NEWLINE# self . protocol . protocol_flags [ 'SCREENHEIGHT' ] = { #NEWLINE# #INDENT# 0 : DEFAULT_HEIGHT , #NEWLINE# #UNINDENT# } #NEWLINE# self . protocol . negotiationMap [ NAWS ] = self . negotiate_sizes #NEWLINE# self . protocol . do ( NAWS ) . addCallbacks ( self . do_naws , self . no_naws )