Commits

Rafael García committed 482a970

Fix Home/End for xterm.

  • Participants
  • Parent commits c52f7f5

Comments (0)

Files changed (1)

 					switch(c) {
 						case '1': /* Home */
 						case '7':
-							read(0, &c, 1); /* Remove trailing '~' from stdin */
+						case 'H':
+							if(c!='H') read(0, &c, 1); /* Remove trailing '~' from stdin */
 							c=CONTROL('A');
 							goto switch_top;
 						case '2': /* Insert */
 							goto switch_top;
 						case '4': /* End */
 						case '8':
-							read(0, &c, 1); /* Remove trailing '~' from stdin */
+						case 'F':
+							if(c!='F') read(0, &c, 1); /* Remove trailing '~' from stdin */
 							c=CONTROL('E');
 							goto switch_top;
 						case '5': /* PageUp */