execute_process buffers and doesn't print question when process is waiting on user input.

I have a script that runs and uses SSH, the script eventually asks for password. However because of buffering the user doesn’t know that a password is being asked, but one can be inputted and the script will continue. Eventually at the end the buffer is flushed. Is there a way in CMake to execute a process without such buffering to have a better experience with user input?

I don’t think there’s a way to do this today. I suggest filing a feature request on the issue tracker (https://gitlab.kitware.com/cmake/cmake/issues).