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

📄 functions.c

📁 VT100终端程序
💻 C
字号:
/* * functions.c	This file contains the functions that talk to the modem *		and the serial port. It seperates the user interface *		from the low-level functions. The script language also *		uses these functions. * *		This file is part of the minicom communications package, *		Copyright 1991-1995 Miquel van Smoorenburg. * *		This program is free software; you can redistribute it and/or *		modify it under the terms of the GNU General Public License *		as published by the Free Software Foundation; either version *		2 of the License, or (at your option) any later version. */#include "port.h"#include "minicom.h"/* * Send a string to the modem. */void m_puts(s)char *s;{  char c;  while(*s) {  	if (*s == '^' && (*(s + 1))) {  		s++;  		if (*s == '^')  			c = *s;  		else  			c = (*s) & 31;  	} else  		c = *s;  	if (c == '~')  		sleep(1);  	else	  		write(portfd, &c, 1);  	s++;  }}/* Hangup. */void m_hangup(){  if (P_MDROPDTR[0] == 'Y') {  	m_dtrtoggle(portfd);  } else {  	m_puts(P_MHANGUP);  	sleep(1);  }  /* If we don't have DCD support fake DCD dropped */  bogus_dcd = 0;}

⌨️ 快捷键说明

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