Permalink
Browse files

Minor fix to kernal_quote

  • Loading branch information...
Adam Gates authored and mist64 committed Jul 5, 2010
1 parent af53b9e commit d5be01b7f9e484955b3d4039a06853031cf286ab
Showing with 4 additions and 5 deletions.
  1. +4 −5 runtime.c
View
@@ -455,18 +455,16 @@ printf("CHROUT: %d @ %x,%x,%x,%x\n", A, a, b, c, d);
C = 0;
} else {
if (kernal_quote) {
- if (A == '"') kernal_quote = 0;
+ if (A == '"' || A == '\n' || A == '\r') kernal_quote = 0;
putchar(A);
} else {
switch (A) {
case 5:
set_color(COLOR_WHITE);
break;
case 10:
- kernal_quote = 0;
break;
case 13:
- kernal_quote = 0;
putchar(13);
putchar(10);
break;
@@ -816,10 +814,11 @@ GETIN() {
A = _getch();
else
A = 0;
- C = 0;
#else
- CHRIN();
+ A = getchar();
#endif
+ if (A=='\n') A = '\r';
+ C = 0;
}
}

0 comments on commit d5be01b

Please sign in to comment.