- Timestamp:
- 07/23/2017 11:05:50 AM (7 years ago)
- Branches:
- master
- Children:
- 4f3fe48
- Parents:
- 7eb8971
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/ser.c
r7eb8971 r2a75e87 141 141 static void echo(uint8_t c) 142 142 { 143 switch (c) {144 case '\r':145 c ur_x = 0;146 break;147 148 case '\n': 149 down();150 break;151 152 case '\b': 153 back();154 break;155 156 default: 157 if (c < 32) {143 if (c < 32) { 144 switch (c) { 145 case '\r': 146 cur_x = 0; 147 break; 148 149 case '\n': 150 down(); 151 break; 152 153 case '\b': 154 back(); 155 break; 156 157 default: 158 158 echo('^'); 159 159 echo((uint8_t)(c + '@')); 160 160 return; 161 161 } 162 162 } 163 else { 163 164 mem[cur_y][cur_x] = c; 164 165 forw(); 165 break;166 166 } 167 167
Note:
See TracChangeset
for help on using the changeset viewer.