#include <ctype.h>
#include <string.h>
#include "extern.h"

cutdsp(chk)
int chk;
	{
		int flg = 0;

		if ( islower(chk) )  chk -= 0x20;
		if ( chk == 'J' )
			{   strcpy(ssent,"\n===== 表示中止 =====\n"); rsout();
				resv = 0; flg = 1; }
		if ( chk == 'X' )
			{ strcpy(ssent,"\n===== 表示中断 =====\n"); rsout();
			  for ( i = 0 ; i < 80 ; i++ ) {cmdtbl[i] = NULL; }
			  flg = 2;  resv = 0;
			}

        return(flg);    
    }       

