[riot-notifications] [RIOT-OS/RIOT] sys/shell: Exit the shell on ctrl-D or ctrl-C. (#10788)

Juan I Carrano notifications at github.com
Thu Feb 7 12:40:05 CET 2019


jcarrano commented on this pull request.



> @@ -227,7 +227,7 @@ static int readline(char *buf, size_t size)
         }
 
         int c = getchar();
-        if (c < 0) {
+        if (c < 0 || c == '\x03' || c == '\x04') {

Thanks for the suggestion. I have implemented it, I think it is more useful.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10788#discussion_r254646746
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190207/b757f974/attachment.html>


More information about the notifications mailing list