Skip to content
Snippets Groups Projects
Commit c5dc54fd authored by deuce's avatar deuce
Browse files

Return on either \r OR \n

parent c023d309
Branches
Tags
No related merge requests found
......@@ -356,12 +356,12 @@ char *ciolib_cgets(char *str)
CIOLIB_INIT();
maxlen=*(unsigned char *)str;
while((ch=ciolib_getche())!='\n') {
while((ch=ciolib_getche())!='\n' && ch !='\r') {
switch(ch) {
case 0: /* Skip extended keys */
ciolib_getche();
break;
case '\r': /* Skip \r (ToDo: Should this be treeated as a \n? */
case '\r': /* Skip \r (ToDo: Should this be treated as a \n? */
break;
case '\b':
if(len==0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment