亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? minicom.c

?? minicom2.0源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* * minicom.c	Main program. The main loop of the terminal emulator *		itself is in main.c. (Yeah yeah it's confusing). * *		This file is part of the minicom communications package, *		Copyright 1991-1996 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. * * fmg 1/11/94 colors * jl  30.06.97 log it if you quit without reset while online * fmg 8/20/97 History buffer searching added * jseymour@jimsun.LinxNet.com (Jim Seymour) 03/26/98 - Added support for *    multiple tty devices via new "get_port()" function. * kubota@debian.or.jp 07/98  - Added option -C to start capturing from the *				command line * jl  09.07.98 added option -S to start a script at startup */#ifdef HAVE_CONFIG_H#include <config.h>#endif#include "rcsid.h"RCSID(PKG_VER "$Id: minicom.c,v 1.14 2001/07/04 14:43:25 kloczek Exp $")#include <getopt.h>#define EXTERN#include "port.h"#include "minicom.h"#include "intl.h"#define RESET 1#define NORESET 2#ifdef _SVR2extern struct passwd *getpwuid();#endif /*_SVR2*/#ifdef DEBUG/* Show signals when debug is on. */static void signore(sig)int sig;{  if (stdwin != NIL_WIN)	werror(_("Got signal %d"), sig);  else	printf("%s\r\n", _("Got signal %d"), sig);}#endif /*DEBUG*//* * Sub - menu's. */static char *c1[] = { N_("   Yes  "), N_("   No   "), CNULL };static char *c2[] = { N_("  Close "), N_(" Pause  "), N_("  Exit  "), CNULL };static char *c3[] = { N_("  Close "), N_(" Unpause"), N_("  Exit  "), CNULL };static char *c7[] = { N_("   Yes  "), N_("   No   "), CNULL };/* Initialize modem port. */void port_init(){  m_setparms(portfd, P_BAUDRATE, P_PARITY, P_BITS, P_STOPB,	     P_HASRTS[0] == 'Y', P_HASXON[0] == 'Y');}static void do_hang(askit)int askit;{  int c = 0;   if (askit) c = ask(_("Hang-up line?"), c7);  if (c == 0) hangup();}/* * We've got the hangup or term signal. */static void hangsig(sig)int sig;{  if (stdwin != NIL_WIN)	werror(_("Killed by signal %d !\n"), sig);  if (capfp != (FILE *)0) fclose(capfp);  keyboard(KUNINSTALL, 0);  hangup();  modemreset();  leave("\n");}/* * Jump to a shell */#ifdef SIGTSTP/*ARGSUSED*/static void shjump(sig)int sig;{  extern int use_status;  wleave();  signal(SIGTSTP, SIG_DFL);  fputs(_("Suspended. Type \"fg\" to resume.\n"),stdout);  kill(getpid(), SIGTSTP);  signal(SIGTSTP, shjump);  wreturn();  if (use_status) show_status();}#else/*ARGSUSED*/static void shjump(dummy)int dummy;{  extern int use_status;  char *sh;  int pid;  int status;  int f;  sh = getenv("SHELL");  if (sh == CNULL) {  	werror(_("SHELL variable not set"));  	return;  }  if ((pid = fork()) == -1) {  	werror(_("Out of memory: could not fork()"));  	return;  }  if (pid != 0) wleave();  if (pid == 0) {	for(f = 1; f < _NSIG; f++) signal(f, SIG_DFL);  	for(f = 3; f < 20; f++) close(f);	set_privs();	setgid((gid_t)real_gid);  	setuid((uid_t)real_uid);	fputs(_("Shelled out. Type \"exit\" to return.\n"), stdout);  	execl(sh, sh, CNULL);  	exit(1);  }  (void) m_wait(&status);  wreturn();  if (use_status) show_status();}#endif /*SIGTSTP*/#if _HISTORY/* Get a line from either window or scroll back buffer. */static ELM *getline(w, no)WIN *w;int no;{  int i;  static ELM outofrange[MAXCOLS] = {{0,0,0}};  if (no < us->histlines) {	/* Get a line from the history buffer. */	i = no + us->histline /*- 1*/;	if (i >= us->histlines) i -= us->histlines;	if (i < 0) i = us->histlines - 1;	return(us->histbuf + (i * us->xs));  }  /* Get a line from the "us" window. */  no -= us->histlines;  if (no >= w->ys) {  	if (outofrange[0].value == 0) {  		for (i=0; i<MAXCOLS; i++) {  			outofrange[i].value = ' ';  			outofrange[i].color = us->color;  			outofrange[i].attr  = us->attr;  		}  		outofrange[0].value = '~';  	}  	return outofrange;  }  return(w->map + (no * us->xs));}/* Redraw the window. */static void drawhist(w, y, r)WIN *w;int y;int r;{  int f;  w->direct = 0;  for(f = 0; f < w->ys; f++)	wdrawelm(w, f, getline(w, y++));  if (r) wredraw(w, 1);  w->direct = 1;}#if _SEARCH_HISTORY/* * fmg 8/20/97 * drawhist_look() * Redraw the window, highlight line that was found to contain * pattern 'look' * Needed by re-draw screen function after EACH find_next() */void drawhist_look(w, y, r, look, case_matters)WIN	*w;int	y;int	r;char	*look;int	case_matters;{  int f;  ELM *tmp_e;  char tmp_line[MAXCOLS];  tmp_line[0]='\0';  w->direct = 0;  for (f = 0; f < w->ys; f++)  {	tmp_e = getline(w, y++);  	/* First we "accumulate" the line into a variable */	wdrawelm_var(w, f, tmp_e, tmp_line);	/* Does it have what we want? */	if (strlen(look)>1 && strlen(tmp_line)>1) {		if (StrStr(tmp_line,look, case_matters))			wdrawelm_inverse(w, f, tmp_e); /* 'inverse' it */  		else			wdrawelm(w, f, tmp_e); /* 'normal' output */	}  }  if (r) wredraw(w, 1);  w->direct = 1;}/* * fmg 8/20/97 * Search history - main function that started the C-code blasphemy :-) * This function doesn't care about case/case-less status... */void searchhist(w_orig, w_hist, r, str)WIN *w_orig,*w_hist;int r;char *str;{  int y;  WIN *w_new;  char hline[128];  /* Find out how big a window we must open. */  y = w_hist->y2;  if (st == (WIN *)0 || (st && tempst)) y--;  /* Open a Search line window. */  w_new = wopen(0, y+1, w_hist->x2, y+1, 0, st_attr, sfcolor, sbcolor, 0, 0, 1);  w_new->doscroll = 0;  w_new->wrap = 0;  strcpy(hline, _("SEARCH FOR (ESC=Exit)"));  wprintf(w_new, "%s(%d):",hline,MAX_SEARCH);  wredraw(w_new, 1);  wflush();  wlocate(w_new, strlen(hline)+6, 0); wputs(w_new, str);  wlocate(w_new, strlen(hline)+6, 0);  (void) wgets(w_new, str, MAX_SEARCH, MAX_SEARCH);#if 0  if (!str[0]) /* then unchanged... must have pressed ESC... get out */  {  	wflush();  	wclose(w_new, 0);  	return;  }#endif  wredraw(w_hist, 1);  wclose(w_new, 1);  wflush();  return;}/* * fmg 8/20/97 * Move scope to next hit of pattern in the buffer. * Returns line-number of next "hit_line" or -1 if none found * (we beep elsewhere ;-) */int find_next(w, w_hist, hit_line, look, case_matters)WIN	*w;WIN	*w_hist;int	hit_line;	/* 'current' Match line */char	*look;		/* pattern */int	case_matters;	/* guess... */{  int next_line;  ELM *tmp_e;  char tmp_line[MAXCOLS];  int all_lines;  if (!look)  	return(++hit_line); /* next line */  tmp_line[0]='\0';	/* Personal phobia, I need to do this.. */  hit_line++;	/* we NEED this so we don't search only same line! */  all_lines = w->histlines + w_hist->ys;  if (hit_line >= all_lines)	/* Make sure we've got a valid line! */  {	werror(_("Search Wrapping Around to Start!"));	hit_line = 0;  }  for (next_line = hit_line; next_line <= all_lines; next_line++)  {	/* we do 'something' here... :-) */	tmp_e = getline(w_hist, next_line);  	/*	 * First we "accumulate" the line into a variable.	 * To see 'why', see what an 'ELM' structure looks like!	 */	wdrawelm_var(w, next_line, tmp_e, tmp_line);	/* Does it have what we want? */	if (strlen(tmp_line) > 1 && strlen(look) > 1)		if (StrStr(tmp_line, look, case_matters))  			return(next_line);  }  if (hit_line >= all_lines)	/* Make sure we've got a valid line! */  {	werror(_("Search Wrapping Around to Start!"));	hit_line = 0;  }  return(-1); /* nothing found! */}/* * fmg 8/22/97 * Needed this for the case-less conparison... and Linux libc * doesn't seem to have a strnstr function... so we fudge.. ;-) */const char *upcase(dest, src)char	*dest, *src;{char	*d;d=dest;while (*src)	*d++=toupper(*src++);*d='\0';return (dest);}/* * fmg 8/22/97 * Needed this for the case-less conparison... and Linux libc * doesn't seem to have a strnstr function... so we fudge.. ;-) */char *StrStr(str1, str2, case_matters)char	*str1, *str2;int	case_matters;{char	tmpstr1[MAXCOLS],	tmpstr2[MAXCOLS];if (case_matters)	return (strstr(str1,str2));else  	return (strstr(upcase(tmpstr1,str1),upcase(tmpstr2,str2)));}#endif /*_SEARCH_HISTORY*/static void drawcite(w, y, citey, start, end)WIN *w;int y;int citey;int start;int end;{  if (y+citey >= start && y+citey <= end) 	wdrawelm_inverse(w, y, getline(w, y+citey));  else	wdrawelm(w, y, getline(w, y+citey));}static void drawcite_whole(w, y, start, end)WIN *w;int y, start, end;{  int sy;  for (sy = 0; sy < w->ys; sy++) {	drawcite(w, sy, y, start, end);  }}static void do_cite(w, start, end)WIN *w;int start,end;{  char tmp_line[MAXCOLS];  ELM *tmp_e;  int x, y;  for (y=start; y<=end; y++) {	vt_send('>');	vt_send(' ');	tmp_e = getline(w, y);	wdrawelm_var(w, 0 /* dummy? */, tmp_e, tmp_line);	tmp_line[w->xs]=0;	for (x=w->xs-1; x>=0; x--){		if (tmp_line[x] <= ' ') tmp_line[x]=0;		else break;	}	for (x=0; tmp_line[x]; x++){		vt_send(tmp_line[x]);	}	vt_send(13);  }}/* Scroll back */static void scrollback(){  int y,c;  WIN *b_us, *b_st;#if _SEARCH_HISTORY  ELM *tmp_e;  int case_matters=0;	/* fmg: case-importance, needed for 'N' */  static char look_for[MAX_SEARCH];	/* fmg: last used search pattern */  char tmp_line[MAXCOLS];#endif /*SEARCH_HISTORY*/  int citemode = 0;  int cite_ystart = 1000000,      cite_yend = -1,      cite_y;  int inverse;  int loop = 1;  char hline0[128], hline1[128], *hline;  static int hit=0;  /* Find out how big a window we must open. */  y = us->y2;  if (st == (WIN *)0 || (st && tempst)) y--;  /* Open a window. */   b_us = wopen(0, 0, us->x2, y, 0, us->attr, COLFG(us->color),		COLBG(us->color), 0, 0, 0);  wcursor(b_us, CNONE);  /* Open a help line window. */  b_st = wopen(0, y+1, us->x2, y+1, 0, st_attr, sfcolor, sbcolor, 0, 0, 1);  b_st->doscroll = 0;  b_st->wrap = 0;  /* Make sure help line is as wide as window. */#if _SEARCH_HISTORY  /*   * fmg 8/20/97   * added /=Srch, \=CaseLess, and N=Next and changed rest of line...   * Hope you like it :-)   */  strcpy(hline0, _("HISTORY: U=Up D=Down F=PgDn B=PgUp s=Srch S=CaseLess N=Next C=Cite ESC=Exit "));#else  strcpy(hline0, _("  SCROLL MODE    U=up D=down F=page-forward B=page-backward C=Cite ESC=exit "));#endif /*_HIST_SEARCH*/  if (b_st->xs < 127)  	hline0[b_st->xs] = 0;  hline = hline0;  wprintf(b_st, hline);  wredraw(b_st, 1);  wflush();  /* And do the job. */  y = us->histlines;  /* fmg 8/20/97   * Needed for N)extSearch, keeps track of line on which current "hit"   * is... we advance it to 'N'ext hit in find_next(). We start at "top"   * of history stack   */  hit=0;    drawhist(b_us, y, 0);  while(loop) {	c = wxgetch();	switch(c) {#if _SEARCH_HISTORY	  /*  	   * fmg 8/22/97

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩黄色在线观看| 成人一区二区三区在线观看| 亚洲欧美激情在线| 久久美女高清视频| 日本高清免费不卡视频| 成人av在线一区二区三区| 极品少妇xxxx偷拍精品少妇| 亚洲一区在线观看免费观看电影高清| 国产精品萝li| 国产欧美日韩另类视频免费观看| 欧美一区永久视频免费观看| 在线观看日韩一区| 一本到不卡免费一区二区| 高清成人在线观看| 精久久久久久久久久久| 韩国精品一区二区| 韩国中文字幕2020精品| 偷拍一区二区三区| 天天亚洲美女在线视频| 午夜精品久久久久久久99水蜜桃| 日韩美女啊v在线免费观看| 国产精品美女一区二区在线观看| 日韩一区二区免费高清| 欧美一区三区四区| 欧美精品丝袜中出| 欧美猛男男办公室激情| 91精品婷婷国产综合久久性色| 在线观看欧美精品| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲精品综合在线| 亚洲国产综合在线| 久久99国产精品免费网站| 成人性视频免费网站| 在线视频欧美精品| 欧美变态tickling挠脚心| 中文字幕精品三区| 亚洲va欧美va国产va天堂影院| 精品在线视频一区| 色偷偷88欧美精品久久久| 日韩一区二区三区四区 | 激情欧美一区二区| 成人免费视频网站在线观看| 色婷婷亚洲综合| 精品国产a毛片| 亚洲欧美一区二区三区极速播放 | 欧美视频三区在线播放| 久久亚区不卡日本| 一区二区在线电影| 精品综合久久久久久8888| 91在线国产观看| 精品久久国产97色综合| 亚洲女人****多毛耸耸8| 美女视频一区在线观看| 99re热视频这里只精品| 亚洲精品一区二区三区蜜桃下载 | 亚洲欧洲一区二区三区| 秋霞电影网一区二区| 成人av午夜电影| 日韩三级视频在线观看| 国产精品久久久久aaaa樱花| 蜜桃一区二区三区在线观看| 色婷婷久久久久swag精品| 久久精品无码一区二区三区| 午夜激情久久久| av电影在线观看一区| 337p日本欧洲亚洲大胆精品| 亚洲国产毛片aaaaa无费看| 成人午夜伦理影院| 久久夜色精品国产噜噜av | 色欧美片视频在线观看| 久久久美女毛片| 日本不卡不码高清免费观看| 色狠狠综合天天综合综合| 精品美女一区二区三区| 亚洲自拍偷拍综合| 99re这里只有精品首页| 亚洲国产高清在线观看视频| 久久99国产精品麻豆| 欧美一级片免费看| 一区二区视频在线| eeuss鲁片一区二区三区在线看| 欧美α欧美αv大片| 免费高清不卡av| 91精品国产一区二区| 午夜激情久久久| 欧美日韩免费不卡视频一区二区三区 | 久久精品亚洲国产奇米99| 免费看欧美女人艹b| 欧美日韩卡一卡二| 午夜a成v人精品| 欧美日韩国产综合草草| 亚洲一区av在线| 在线观看国产日韩| 一区二区三区色| 99精品视频在线免费观看| 国产精品欧美久久久久一区二区| 久久99精品国产麻豆不卡| 日韩天堂在线观看| 免费欧美在线视频| 精品日韩一区二区三区| 久久99久久99精品免视看婷婷 | 日韩视频一区二区| 蜜桃视频第一区免费观看| 日韩欧美在线不卡| 老司机午夜精品99久久| 日韩一区二区三区av| 麻豆精品国产传媒mv男同| 欧美一级生活片| 精品一区二区三区欧美| 欧美电视剧在线看免费| 国产麻豆91精品| 国产精品美女久久久久久2018 | 欧美视频你懂的| 日产国产欧美视频一区精品| 欧美一区日韩一区| 韩国三级在线一区| 国产欧美va欧美不卡在线| caoporn国产精品| 亚洲欧美一区二区三区久本道91| 欧洲精品一区二区| 日本中文字幕不卡| 久久女同互慰一区二区三区| 国产99久久久国产精品| 亚洲欧美激情小说另类| 欧美日韩精品电影| 国产一区二区中文字幕| 国产精品三级电影| 色噜噜狠狠色综合欧洲selulu| 亚洲一区二区欧美| 日韩精品一区二区三区在线观看| 国产一区二区h| 亚洲男人的天堂网| 日韩午夜精品视频| 成人av电影在线网| 午夜精品在线视频一区| 久久一留热品黄| 色视频成人在线观看免| 久久超级碰视频| 国产精品三级电影| 91精品国产欧美日韩| 国产福利91精品| 亚洲成人一区二区| 久久亚洲精品国产精品紫薇| 91免费看`日韩一区二区| 日本va欧美va瓶| 国产精品视频一二| 欧美一二三区在线观看| 成人白浆超碰人人人人| 日韩激情视频在线观看| 国产精品另类一区| 91麻豆精品国产91| 99视频超级精品| 奇米综合一区二区三区精品视频| 国产精品久久久久久久浪潮网站 | 欧美激情一区二区| 欧美日产国产精品| 成人丝袜视频网| 日本在线不卡一区| 亚洲人成在线播放网站岛国| 日韩免费在线观看| 欧美亚一区二区| 国产98色在线|日韩| 日精品一区二区| 国产精品二三区| 日韩免费观看高清完整版 | 中文字幕在线不卡| 欧美刺激午夜性久久久久久久| 色香蕉久久蜜桃| 成人网男人的天堂| 国内成人精品2018免费看| 亚洲高清三级视频| 亚洲欧美影音先锋| 久久精品夜色噜噜亚洲aⅴ| 91精品国产一区二区人妖| 色婷婷综合五月| www.在线成人| 懂色av中文一区二区三区| 男女性色大片免费观看一区二区| 亚洲女同女同女同女同女同69| 国产欧美综合在线| 欧美电影免费观看高清完整版| 欧美日韩国产美| 欧美综合视频在线观看| 不卡视频免费播放| 成人性生交大片免费看在线播放 | 色综合天天综合网国产成人综合天| 美女脱光内衣内裤视频久久网站 | 欧美偷拍一区二区| 91麻豆.com| 91色乱码一区二区三区| 成人激情文学综合网| 国产成a人亚洲精| 国内精品写真在线观看| 精品一区二区免费在线观看| 琪琪久久久久日韩精品| 免费xxxx性欧美18vr| 人人精品人人爱| 久久精品国产秦先生| 男男视频亚洲欧美| 蜜臀久久99精品久久久画质超高清 |