• You can check process.env.CONSOLE=="USB" - this will detect if Espruino has a connection to your PC (eg. it appears as a COM port).

    However it has no way to know if you have an application running on the PC that is looking at what it is printing!

About

Avatar for Gordon @Gordon started