⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 check_terminal.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lint#ifdef SunB1#ident			"@(#)check_terminal.c 1.1 92/07/30 SMI; SunOS MLS";#else#ident			"@(#)check_terminal.c 1.1 92/07/30 SMI";#endif /* SunB1 */#endif lint/* *	Copyright (c) 1989 Sun Microsystems, Inc. */#include <stdio.h>#include "install.h"/******************************************************************************** Name:	(int) check_client_terminal()**** Return Value : 1 : if the terminal type is in the /etc/termcap file**		  0 : if the terminal type is not in the /etc/termcap file**		       or if /etc/tercap is not found****	Description:	Check if the terminal is  in /etc/termcap*******************************************************************************/intcheck_client_terminal(termtype)	char	*termtype;{	char		buf[BUFSIZ];		/* input buffer */	switch(tgetent(buf, termtype)) {	case -1 :		menu_mesg("/etc/termcap not found");		return(0);		break;	case 0 :		menu_mesg("terminal type : %s : not in /etc/termcap",			  termtype);		return(0);		break;	case 1 : /* AOK */		return(1);	}	/* NOTREACHED */} /* end check_client_terminal() */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -