Helper function to handle user input
| 1091 | |
| 1092 | // Helper function to handle user input |
| 1093 | static int handle_user_input(std::string & user_input, const std::string & user) { |
| 1094 | if (!user.empty()) { |
| 1095 | user_input = user; |
| 1096 | return 0; // No need for interactive input |
| 1097 | } |
| 1098 | |
| 1099 | return read_user_input(user_input); // Returns true if input ends the loop |
| 1100 | } |
| 1101 | |
| 1102 | static bool is_stdin_a_terminal() { |
| 1103 | #if defined(_WIN32) |
no test coverage detected