Module Expr Str Import alias Import alias ClassDef bases body Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Dict body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad NameLoad NameLoad Assign NameStore BinOpBitOr BinOpBitOr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Call NameLoad NameLoad NameLoad NameLoad Num NameLoad NameLoad Call NameLoad Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Raise Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str If CompareGt NameLoad Num body Assign NameStore BinOpDiv Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad BinOpAdd BinOpAdd NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareNotEq NameLoad Str CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad BinOpMult BinOpMult NameLoad AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Call NameLoad BinOpMult BinOpMult NameLoad AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse Return NameLoad handlers ExceptHandler body Return NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Return SubscriptLoad NameLoad Index Str orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str AugAssignAdd AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpAdd Call NameLoad Str Call NameLoad Call NameLoad NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Dict Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If CompareGt NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad BinOpMult NameLoad AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Call NameLoad BinOpMult NameLoad AttributeLoad NameLoad attr Str NameLoad NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list decorator_list
N/A N/A  

ConqueSoleSubprocessWrapper

Subprocess wrapper to deal with Windows insanity. Launches console based python,
which in turn launches originally requested command. Communicates with cosole
python through shared memory objects.

 N/A ctypes N/A time ConqueSoleWrapper N/A N/A N/A shm_key N/A handle None N/A pid None N/A bucket None N/A lines 24 N/A columns 80 N/A shm_input None N/A shm_output None N/A shm_attributes None N/A shm_stats None N/A shm_command None N/A shm_rescroll None N/A shm_resize None N/A proc None open N/A N/A self cmd lines columns python_exe communicator_py options N/A python.exe conque_sole_communicator.py N/A N/A N/A  Launch python.exe subprocess which will in turn launch the user's program.

        Arguments:
        cmd -- The user's command to run. E.g. "Powershell.exe" or "C:\Python27\Scripts\ipython.bat"
        lines, columns -- The size of the console, also the size of the Vim buffer
        python.exe -- The path to the python executable, typically C:\PythonXX\python.exe
        communicator_py -- The path to the subprocess controller script in the user's vimfiles directory
        options -- optional configuration

         N/A N/A self lines lines N/A N/A self columns columns N/A N/A self bucket N/A u N/A N/A self shm_key N/A mk N/A str N/A N/A time time N/A cmd_line N/A %s "%s" %s %d %d %d %d %s N/A python_exe communicator_py N/A self shm_key N/A int N/A self columns N/A int N/A self lines N/A int N/A options N/A CODE_PAGE N/A int CONQUE_FAST_MODE cmd N/A flags N/A N/A NORMAL_PRIORITY_CLASS DETACHED_PROCESS CREATE_UNICODE_ENVIRONMENT N/A si N/A STARTUPINFO N/A pi N/A PROCESS_INFORMATION N/A N/A N/A res N/A N/A N/A N/A ctypes windll kernel32 CreateProcessW None N/A u cmd_line None None 0 flags None N/A u . N/A N/A ctypes byref si N/A N/A ctypes byref pi N/A N/A N/A N/A N/A N/A self pid N/A pi dwProcessId N/A N/A N/A self init_shared_memory N/A self shm_key N/A read N/A N/A self start_line num_lines timeout N/A 0 N/A N/A  Read a range of console lines from shared memory. 

        Returns a pair of lists containing the console text and console text attributes.

         N/A N/A timeout 0 N/A N/A read_timeout N/A N/A float timeout 1000 N/A N/A N/A time sleep read_timeout N/A output N/A N/A attributes N/A N/A i N/A range start_line N/A N/A start_line num_lines 1 N/A N/A N/A N/A output append N/A N/A N/A self shm_output read N/A self columns N/A i N/A self columns N/A N/A CONQUE_FAST_MODE N/A N/A N/A N/A attributes append N/A N/A N/A self shm_attributes read N/A self columns N/A i N/A self columns N/A N/A output attributes N/A get_stats N/A N/A self N/A N/A N/A  Return a dictionary with current console cursor and scrolling information.  N/A N/A N/A rescroll N/A N/A N/A self shm_rescroll read N/A N/A N/A rescroll N/A rescroll None N/A N/A N/A N/A N/A self shm_rescroll clear N/A N/A N/A N/A self shm_output close N/A N/A self shm_output None N/A N/A CONQUE_FAST_MODE N/A N/A N/A N/A N/A self shm_attributes close N/A N/A self shm_attributes None N/A N/A self shm_output N/A ConqueSoleSharedMemory N/A N/A CONQUE_SOLE_BUFFER_LENGTH N/A self columns N/A N/A rescroll N/A data N/A blocks output N/A N/A rescroll N/A data N/A mem_key True N/A N/A N/A N/A self shm_output create read N/A N/A CONQUE_FAST_MODE N/A N/A N/A self shm_attributes N/A ConqueSoleSharedMemory N/A N/A CONQUE_SOLE_BUFFER_LENGTH N/A self columns N/A N/A rescroll N/A data N/A blocks attributes N/A N/A rescroll N/A data N/A mem_key True encoding latin-1 N/A N/A N/A N/A self shm_attributes create read N/A stats_str N/A N/A N/A self shm_stats read N/A N/A stats_str N/A N/A N/A self stats stats_str N/A N/A False N/A N/A N/A N/A False N/A N/A self stats N/A is_alive N/A N/A self N/A N/A N/A  Get process status.  N/A N/A N/A self shm_stats N/A N/A True N/A stats_str N/A N/A N/A self shm_stats read N/A stats_str N/A N/A N/A stats_str N/A is_alive N/A N/A True N/A write N/A N/A self text N/A N/A N/A  Write input to shared memory.  N/A N/A self bucket text N/A istr N/A N/A N/A self shm_input read N/A N/A istr N/A N/A N/A N/A N/A self shm_input write N/A N/A self bucket N/A 500 N/A N/A self bucket N/A N/A self bucket N/A 500 N/A write_vk N/A N/A self vk_code N/A N/A N/A  Write virtual key code to shared memory using proprietary escape sequences.  N/A seq N/A N/A N/A u [ N/A u N/A str vk_code N/A u VK N/A N/A N/A self write seq N/A idle N/A N/A self N/A N/A N/A  Write idle command to shared memory block, so subprocess controller can hibernate.  N/A N/A N/A N/A self shm_command write N/A cmd data idle N/A N/A resume N/A N/A self N/A N/A N/A  Write resume command to shared memory block, so subprocess controller can wake up.  N/A N/A N/A N/A self shm_command write N/A cmd data resume N/A N/A close N/A N/A self N/A N/A N/A  Shut it all down.  N/A N/A N/A N/A self shm_command write N/A cmd data close N/A N/A N/A N/A time sleep 0.2 N/A window_resize N/A N/A self lines columns N/A N/A N/A  Resize console window.  N/A N/A self lines lines N/A N/A columns N/A self columns N/A N/A N/A self columns columns N/A N/A N/A N/A self shm_resize write N/A cmd data resize N/A width height columns lines N/A init_shared_memory N/A N/A self mem_key N/A N/A N/A  Create shared memory objects.  N/A N/A self shm_input N/A ConqueSoleSharedMemory CONQUE_SOLE_INPUT_SIZE input mem_key N/A N/A N/A N/A self shm_input create write N/A N/A N/A N/A self shm_input clear N/A N/A self shm_output N/A ConqueSoleSharedMemory N/A CONQUE_SOLE_BUFFER_LENGTH N/A self columns output mem_key True N/A N/A N/A N/A self shm_output create write N/A N/A CONQUE_FAST_MODE N/A N/A N/A self shm_attributes N/A ConqueSoleSharedMemory N/A CONQUE_SOLE_BUFFER_LENGTH N/A self columns attributes mem_key True encoding latin-1 N/A N/A N/A N/A self shm_attributes create write N/A N/A self shm_stats N/A ConqueSoleSharedMemory CONQUE_SOLE_STATS_SIZE stats mem_key serialize True N/A N/A N/A N/A self shm_stats create write N/A N/A N/A N/A self shm_stats clear N/A N/A self shm_command N/A ConqueSoleSharedMemory CONQUE_SOLE_COMMANDS_SIZE command mem_key serialize True N/A N/A N/A N/A self shm_command create write N/A N/A N/A N/A self shm_command clear N/A N/A self shm_resize N/A ConqueSoleSharedMemory CONQUE_SOLE_RESIZE_SIZE resize mem_key serialize True N/A N/A N/A N/A self shm_resize create write N/A N/A N/A N/A self shm_resize clear N/A N/A self shm_rescroll N/A ConqueSoleSharedMemory CONQUE_SOLE_RESCROLL_SIZE rescroll mem_key serialize True N/A N/A N/A N/A self shm_rescroll create write N/A N/A N/A N/A self shm_rescroll clear N/A True N/A N/A