eww.console

This implements Eww’s primary console thread. It creates an instance of Command for each new connection and handles all of the support for it (proxies and the like).

class eww.console.ConsoleThread(user_socket)[source]

Bases: threading.Thread

An instance of ConsoleThread is created for each attached user. It implements all the features needed to make a nifty debugger.

__init__(user_socket)[source]

Sets up our socket and socket_file.

Parameters:user_socket (Socket) – A socket connected to a client.
cleanup()[source]

Cleans up our thread.

Returns:None
register_io()[source]

Registers the correct IO streams for the thread.

Returns:None
run()[source]

Sets up our IO and starts a Console instance.

Returns:None
stop()[source]

Can be used to forcibly stop the thread.

Returns:None
unregister_io()[source]

Unregisters the custom IO streams for the thread.

Returns:None