[comp.os.minix] mined1.c

ast@cs.vu.nl (Andy Tanenbaum) (10/06/87)

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);

wall-rt@cscosl.ncsu.edu (Richard Todd Wall) (03/16/90)

     I have Minix version 1.2.0 and I am typing to patch it to go to
version 1.3d.  When ever I apply the patch on mined1.c it  screws up the
file and usually errors up.  Could someone please mail me the source code
to mined1.c for Minix Version 1.3.0.  I'm running Minix on an XT clone. 
Thanks.....

o o ______           _     _____  _  _ o o          mcnc!bacchus!beretta!todd
' '   /       /   / ' )   /      // // ' '    or    wall-rt@cscosl.ncsu.edu
     / ______/ __/   / / / __.  // //   
   _/ (_) (_/_(_/_  (_(_/ (_/|_</_</_               Durham, North Carolina