mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-06-26 10:54:29 +02:00
Tasksh
- Removed additional \n and noted the disastrous effect of Ctrl-D.
This commit is contained in:
parent
712ea861de
commit
bba1bbcaaa
1 changed files with 2 additions and 2 deletions
|
@ -68,11 +68,11 @@ static int commandLoop ()
|
|||
std::string command (line_read);
|
||||
free (line_read);
|
||||
#else
|
||||
// TODO When Ctrl-D is pressed, it closeѕ std::cin, which causes this loop
|
||||
// to cycle very quickly with no input. Perhaps reopen std::cin?
|
||||
std::cout << prompt;
|
||||
std::string command;
|
||||
std::getline (std::cin, command);
|
||||
if (command.find ('\n') == std::string::npos)
|
||||
std::cout << "\n";
|
||||
#endif
|
||||
|
||||
// Dispatch command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue