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

📄 rbsb.c

📁 Embedded zModem C sources
💻 C
字号:
#include "zmodem.h"
#include "rbsb.h"
#include "zport.h"
#include "v2cfg.h"

#if defined(RZ_MODULE)

///////////////////////////////////////////////////////////////////////////////
// Send a string to the modem, processing for \336 and \335
int zPuts(char *str)
{
	int c;

	while(*str)
	{
		switch(c = *str++)
		{
			case '\336' :
				// sleep one second
				//zDelay(1000);
				break;
			case '\335' :
				// send break signal to modem 
				// xSendBreak();
				break;
			default :
				SendLine(c);
				break;
		}
	}
	return 0;
}

///////////////////////////////////////////////////////////////////////////////
// ReadLine(int nTimeout)
// nTimeout : if 0, no timeout.
// return TIMEOUT if timeouted.
// else char read.
int ReadLine(int nTimeout)
{
	int c;

	while(1)
	{
		if((c = zGetch(nTimeout)) < 0)
			return TIMEOUT;
		else
			return (c & 0377);
	}
}
#endif//zmodem

⌨️ 快捷键说明

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