Keyboard focus in serial monitor?

(fwiw: windows 11, vscode, platformio, esp32)

After clicking “Start Monitoring” to open the connection, keypresses are not directed to the “Type in a message to send to the serial port.” field.

This is obvious and a natural user-expectation. And yet…

For usage/workflow, there are three extremely common paths after starting the monitor:
A) the device is writing progress info to serial, watch the output
B) the device is waiting for serial data, type…press enter, see output
C) some lovely combination of A & B

An automatic change of focus after the monitor is started would enhance the experience of B/C and would not alter A.

Currently if one starts typing, ordinary keypresses are ignored until enter is pressed at the end of the line - this presses the (now) “Stop Monitoring” button. I can see some minor utility in this. This behavior would be lost with an automatic change in focus. Yet, that same utility remains, and is easily reached by clicking the mouse button again.

So, upside described, downside examined. I would argue it is a good case for a useful feature. It is hard for me to imagine this has not been raised before, yet my spelunking through the discussion has yielded no mention on topic.

Why does this aspect of the Serial Monitor operation remain unaddressed?

The serial monitor you describe is a VS Code plugin from Microsoft

This is not the serial monitor used by PlatformIO (plug icon in the bottom bar)
You are therefore asking in the wrong place.

microsoft/vscode-serial-monitor/issues is a better place.

Thanks. Question moved here:

Appreciate the quick reply.

Is this also true of the terminal window?

Additionally, are they in fact “plugable” from platformio’s point of view? I.e. Can a different one be used instead?,

Sorry, I don’t understand your questions.

All I said is that the Serial monitor you refer is not related to PlatformIO as it is a VS Code plugin made by microsoft.

PlatformIO is using a different serial monitor which you can find by using the plug icon in the bottom bar: image

I meant:

1)Is the terminal window used by platformio also “part of vscode” and “not part of platformio”?

  1. can a different plugin to provide the serial output window be used instead of the stock one from vscode? Or, are all the details of what-plugin-provides-serial-monitor found in platformio’s code base or vscode’s?

Thanks for clearification.

Yes, the terminal windows is also part of VS Code.
See upper menu “Terminal / New Terminal”

There is no “stock serial monitor” from VS Code.
It looks like you have installed the plugin “Serial monitor” from VS Code marketplace.

PlatformIO is using a builtin “serial monitor” by executing a command in a terminal like so:

 *  Executing task: C:\Users\username\.platformio\penv\Scripts\platformio.exe device monitor --environment esp32dev --port COM4 

You are free to use whatever you want to use for serial monitoring. E.g. putty.exe also supports serial connections.