Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!botter!ast From: ast@cs.vu.nl (Andy Tanenbaum) Newsgroups: comp.os.minix Subject: mined1.c (diff relative to 1.2); reposting Message-ID: <1720@botter.cs.vu.nl> Date: Tue, 6-Oct-87 15:47:33 EDT Article-I.D.: botter.1720 Posted: Tue Oct 6 15:47:33 1987 Date-Received: Sat, 10-Oct-87 06:31:12 EDT Reply-To: ast@cs.vu.nl (Andy Tanenbaum) Distribution: world Organization: VU Informatica, Amsterdam Lines: 59 10c10 < * Mined is a screen editor designed for the minix operating system. --- > * Mined is a screen editor designed for the MINIX operating system. 840,842c840,843 < string_print(pos_string); < putchar(X_PLUS + nx); < putchar(Y_PLUS + YMAX - ny);/* Driver has (0,0) at lower left corner */ --- > char text_buffer[10]; > > build_string(text_buffer, pos_string, ny+1, nx+1); > string_print(text_buffer); 1330,1334c1331,1335 < char *enter_string = "\033 8\033~0"; /* String printed on entering mined */ < char *pos_string = "\033"; /* Absolute cursor position */ < char *rev_scroll = "\033~1"; /* String for reverse scrolling */ < char *rev_video = "\033z\160"; /* String for starting reverse video */ < char *normal_video = "\033z\007"; /* String for leaving reverse video */ --- > char *enter_string = "\033[H\033[J"; /* String printed on entering mined */ > char *pos_string = "\033[%d;%dH"; /* Absolute cursor position */ > char *rev_scroll = "\033M"; /* String for reverse scrolling */ > char *rev_video = "\033[7m"; /* String for starting reverse video */ > char *normal_video = "\033[m"; /* String for leaving reverse video */ 1635c1636 < int index, number; --- > int index, number, third; 1640a1642,1658 > if(index == BRACKET) { > /* Start of ASCII escape sequence. */ > third = getchar(); > if (third == 'H') HO(); > else if (third == 'A') UP(); > else if (third == 'V') PU(); > else if (third == 'D') LF(); > else if (third == 'G') FS(); > else if (third == 'C') RT(); > else if (third == 'Y') EF(); > else if (third == 'B') DN(); > else if (third == 'U') PD(); > else if (third == 'S') SR(); > else if (third == 'T') SF(); > return; > } > 1820c1838,1839 < * into the integer the arguments points to. --- > * into the integer the arguments points to. If the first character is '[' > * return BRACKET as the function value. 1829,1831c1848,1849 < status_line(message, NIL_PTR); < < index = getchar(); --- > index = getchar(); > if (index == '[') return(BRACKET);