mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-07-07 20:06:42 +02:00
TS-32: Exit on Ctrl-D on non-readline systems.
This commit is contained in:
parent
d5bd17cff0
commit
87d05ed28a
1 changed files with 3 additions and 0 deletions
|
@ -84,7 +84,10 @@ const std::string getResponse (const std::string& prompt)
|
|||
std::cout << prompt;
|
||||
std::getline (std::cin, response);
|
||||
if (std::cin.eof () == 1)
|
||||
{
|
||||
response = "<EOF>";
|
||||
std::cout << "\n";
|
||||
}
|
||||
#endif
|
||||
|
||||
return response;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue