#NEWLINE# def init_shared_memory( self , mem_key ) : #NEWLINE# #INDENT# ' Create shared memory objects. ' #NEWLINE# self . shm_input = ConqueSoleSharedMemory ( CONQUE_SOLE_INPUT_SIZE , 'input' , mem_key ) #NEWLINE# self . shm_input . create ( 'write' ) #NEWLINE# self . shm_input . clear ( ) #NEWLINE# self . shm_output = ConqueSoleSharedMemory ( ( self . buffer_height * self . buffer_width ) , 'output' , mem_key , True ) #NEWLINE# self . shm_output . create ( 'write' ) #NEWLINE# self . shm_output . clear ( ) #NEWLINE# if ( not self . fast_mode ) : #NEWLINE# #INDENT# buf_info = self . get_buffer_info ( ) #NEWLINE# self . shm_attributes = ConqueSoleSharedMemory ( ( self . buffer_height * self . buffer_width ) , 'attributes' , mem_key , True , chr ( buf_info . wAttributes ) , encoding = 'latin-1' ) #NEWLINE# self . shm_attributes . create ( 'write' ) #NEWLINE# self . shm_attributes . clear ( ) #NEWLINE# #UNINDENT# self . shm_stats = ConqueSoleSharedMemory ( CONQUE_SOLE_STATS_SIZE , 'stats' , mem_key , serialize = True ) #NEWLINE# self . shm_stats . create ( 'write' ) #NEWLINE# self . shm_stats . clear ( ) #NEWLINE# self . shm_command = ConqueSoleSharedMemory ( CONQUE_SOLE_COMMANDS_SIZE , 'command' , mem_key , serialize = True ) #NEWLINE# self . shm_command . create ( 'write' ) #NEWLINE# self . shm_command . clear ( ) #NEWLINE# self . shm_resize = ConqueSoleSharedMemory ( CONQUE_SOLE_RESIZE_SIZE , 'resize' , mem_key , serialize = True ) #NEWLINE# self . shm_resize . create ( 'write' ) #NEWLINE# self . shm_resize . clear ( ) #NEWLINE# self . shm_rescroll = ConqueSoleSharedMemory ( CONQUE_SOLE_RESCROLL_SIZE , 'rescroll' , mem_key , serialize = True ) #NEWLINE# self . shm_rescroll . create ( 'write' ) #NEWLINE# self . shm_rescroll . clear ( ) #NEWLINE# return True