Commits

Anonymous committed ebf708a

eat unknown escape codes

Comments (0)

Files changed (1)

 					case '8' : cur = len; escape++;     break; // End
 					case 'C' : cur = MIN(cur + 1, len); break; // Left  Arrow
 					case 'D' : cur = MAX(cur - 1, 0  ); break; // Right Arrow
+					case '~' : break;    // keep going until we get ~
+					default  : escape++; // if we don't recognize it
 				}
 				escape--;
 			} else {