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

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

?? rltty.c

?? 基于的linux的oracle sqlplus替代工具
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* rltty.c -- functions to prepare and restore the terminal for readline's   use. *//* Copyright (C) 1992 Free Software Foundation, Inc.   This file is part of the GNU Readline Library, a library for   reading lines of text with interactive input and history editing.   The GNU Readline Library 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, or   (at your option) any later version.   The GNU Readline Library is distributed in the hope that it will be   useful, but WITHOUT ANY WARRANTY; without even the implied warranty   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.   The GNU General Public License is often shipped with GNU software, and   is generally kept in a file called COPYING or LICENSE.  If you do not   have a copy of the license, write to the Free Software Foundation,   59 Temple Place, Suite 330, Boston, MA 02111 USA. */#define READLINE_LIBRARY#if defined (HAVE_CONFIG_H)#  include <config.h>#endif#include <sys/types.h>#include <signal.h>#include <errno.h>#include <stdio.h>#if defined (HAVE_UNISTD_H)#  include <unistd.h>#endif /* HAVE_UNISTD_H */#include "rldefs.h"#if defined (GWINSZ_IN_SYS_IOCTL)#  include <sys/ioctl.h>#endif /* GWINSZ_IN_SYS_IOCTL */#include "rltty.h"#include "readline.h"#include "rlprivate.h"#if !defined (errno)extern int errno;#endif /* !errno */rl_vintfunc_t *rl_prep_term_function = rl_prep_terminal;rl_voidfunc_t *rl_deprep_term_function = rl_deprep_terminal;static void block_sigint PARAMS((void));static void release_sigint PARAMS((void));static void set_winsize PARAMS((int));/* **************************************************************** *//*								    *//*			   Signal Management			    *//*								    *//* **************************************************************** */#if defined (HAVE_POSIX_SIGNALS)static sigset_t sigint_set, sigint_oset;#else /* !HAVE_POSIX_SIGNALS */#  if defined (HAVE_BSD_SIGNALS)static int sigint_oldmask;#  endif /* HAVE_BSD_SIGNALS */#endif /* !HAVE_POSIX_SIGNALS */static int sigint_blocked;/* Cause SIGINT to not be delivered until the corresponding call to   release_sigint(). */static voidblock_sigint (){  if (sigint_blocked)    return;#if defined (HAVE_POSIX_SIGNALS)  sigemptyset (&sigint_set);  sigemptyset (&sigint_oset);  sigaddset (&sigint_set, SIGINT);  sigprocmask (SIG_BLOCK, &sigint_set, &sigint_oset);#else /* !HAVE_POSIX_SIGNALS */#  if defined (HAVE_BSD_SIGNALS)  sigint_oldmask = sigblock (sigmask (SIGINT));#  else /* !HAVE_BSD_SIGNALS */#    if defined (HAVE_USG_SIGHOLD)  sighold (SIGINT);#    endif /* HAVE_USG_SIGHOLD */#  endif /* !HAVE_BSD_SIGNALS */#endif /* !HAVE_POSIX_SIGNALS */  sigint_blocked = 1;}/* Allow SIGINT to be delivered. */static voidrelease_sigint (){  if (sigint_blocked == 0)    return;#if defined (HAVE_POSIX_SIGNALS)  sigprocmask (SIG_SETMASK, &sigint_oset, (sigset_t *)NULL);#else#  if defined (HAVE_BSD_SIGNALS)  sigsetmask (sigint_oldmask);#  else /* !HAVE_BSD_SIGNALS */#    if defined (HAVE_USG_SIGHOLD)  sigrelse (SIGINT);#    endif /* HAVE_USG_SIGHOLD */#  endif /* !HAVE_BSD_SIGNALS */#endif /* !HAVE_POSIX_SIGNALS */  sigint_blocked = 0;}/* **************************************************************** *//*								    *//*		      Saving and Restoring the TTY	    	    *//*								    *//* **************************************************************** *//* Non-zero means that the terminal is in a prepped state. */static int terminal_prepped;static _RL_TTY_CHARS _rl_tty_chars, _rl_last_tty_chars;/* If non-zero, means that this process has called tcflow(fd, TCOOFF)   and output is suspended. */#if defined (__ksr1__)static int ksrflow;#endif/* Dummy call to force a backgrounded readline to stop before it tries   to get the tty settings. */static voidset_winsize (tty)     int tty;{#if defined (TIOCGWINSZ)  struct winsize w;  if (ioctl (tty, TIOCGWINSZ, &w) == 0)      (void) ioctl (tty, TIOCSWINSZ, &w);#endif /* TIOCGWINSZ */}#if defined (NEW_TTY_DRIVER)/* Values for the `flags' field of a struct bsdtty.  This tells which   elements of the struct bsdtty have been fetched from the system and   are valid. */#define SGTTY_SET	0x01#define LFLAG_SET	0x02#define TCHARS_SET	0x04#define LTCHARS_SET	0x08struct bsdtty {  struct sgttyb sgttyb;	/* Basic BSD tty driver information. */  int lflag;		/* Local mode flags, like LPASS8. */#if defined (TIOCGETC)  struct tchars tchars;	/* Terminal special characters, including ^S and ^Q. */#endif#if defined (TIOCGLTC)  struct ltchars ltchars; /* 4.2 BSD editing characters */#endif  int flags;		/* Bitmap saying which parts of the struct are valid. */};#define TIOTYPE struct bsdttystatic TIOTYPE otio;static void save_tty_chars PARAMS((TIOTYPE *));static int _get_tty_settings PARAMS((int, TIOTYPE *));static int get_tty_settings PARAMS((int, TIOTYPE *));static int _set_tty_settings PARAMS((int, TIOTYPE *));static int set_tty_settings PARAMS((int, TIOTYPE *));static void prepare_terminal_settings PARAMS((int, TIOTYPE, TIOTYPE *));static voidsave_tty_chars (tiop)     TIOTYPE *tiop;{  _rl_last_tty_chars = _rl_tty_chars;  if (tiop->flags & SGTTY_SET)    {      _rl_tty_chars.t_erase = tiop->sgttyb.sg_erase;      _rl_tty_chars.t_kill = tiop->sgttyb.sg_kill;    }  if (tiop->flags & TCHARS_SET)    {      _rl_tty_chars.t_intr = tiop->tchars.t_intrc;      _rl_tty_chars.t_quit = tiop->tchars.t_quitc;      _rl_tty_chars.t_start = tiop->tchars.t_startc;      _rl_tty_chars.t_stop = tiop->tchars.t_stopc;      _rl_tty_chars.t_eof = tiop->tchars.t_eofc;      _rl_tty_chars.t_eol = '\n';      _rl_tty_chars.t_eol2 = tiop->tchars.t_brkc;    }  if (tiop->flags & LTCHARS_SET)    {      _rl_tty_chars.t_susp = tiop->ltchars.t_suspc;      _rl_tty_chars.t_dsusp = tiop->ltchars.t_dsuspc;      _rl_tty_chars.t_reprint = tiop->ltchars.t_rprntc;      _rl_tty_chars.t_flush = tiop->ltchars.t_flushc;      _rl_tty_chars.t_werase = tiop->ltchars.t_werasc;      _rl_tty_chars.t_lnext = tiop->ltchars.t_lnextc;    }  _rl_tty_chars.t_status = -1;}static intget_tty_settings (tty, tiop)     int tty;     TIOTYPE *tiop;{  set_winsize (tty);  tiop->flags = tiop->lflag = 0;  if (ioctl (tty, TIOCGETP, &(tiop->sgttyb)) < 0)    return -1;  tiop->flags |= SGTTY_SET;#if defined (TIOCLGET)  if (ioctl (tty, TIOCLGET, &(tiop->lflag)) == 0)    tiop->flags |= LFLAG_SET;#endif#if defined (TIOCGETC)  if (ioctl (tty, TIOCGETC, &(tiop->tchars)) == 0)    tiop->flags |= TCHARS_SET;#endif#if defined (TIOCGLTC)  if (ioctl (tty, TIOCGLTC, &(tiop->ltchars)) == 0)    tiop->flags |= LTCHARS_SET;#endif  return 0;}static intset_tty_settings (tty, tiop)     int tty;     TIOTYPE *tiop;{  if (tiop->flags & SGTTY_SET)    {      ioctl (tty, TIOCSETN, &(tiop->sgttyb));      tiop->flags &= ~SGTTY_SET;    }  readline_echoing_p = 1;#if defined (TIOCLSET)  if (tiop->flags & LFLAG_SET)    {      ioctl (tty, TIOCLSET, &(tiop->lflag));      tiop->flags &= ~LFLAG_SET;    }#endif#if defined (TIOCSETC)  if (tiop->flags & TCHARS_SET)    {      ioctl (tty, TIOCSETC, &(tiop->tchars));      tiop->flags &= ~TCHARS_SET;    }#endif#if defined (TIOCSLTC)  if (tiop->flags & LTCHARS_SET)    {      ioctl (tty, TIOCSLTC, &(tiop->ltchars));      tiop->flags &= ~LTCHARS_SET;    }#endif  return 0;}static voidprepare_terminal_settings (meta_flag, oldtio, tiop)     int meta_flag;     TIOTYPE oldtio, *tiop;{  readline_echoing_p = (oldtio.sgttyb.sg_flags & ECHO);  /* Copy the original settings to the structure we're going to use for     our settings. */  tiop->sgttyb = oldtio.sgttyb;  tiop->lflag = oldtio.lflag;#if defined (TIOCGETC)  tiop->tchars = oldtio.tchars;#endif#if defined (TIOCGLTC)  tiop->ltchars = oldtio.ltchars;#endif  tiop->flags = oldtio.flags;  /* First, the basic settings to put us into character-at-a-time, no-echo     input mode. */  tiop->sgttyb.sg_flags &= ~(ECHO | CRMOD);  tiop->sgttyb.sg_flags |= CBREAK;  /* If this terminal doesn't care how the 8th bit is used, then we can     use it for the meta-key.  If only one of even or odd parity is     specified, then the terminal is using parity, and we cannot. */#if !defined (ANYP)#  define ANYP (EVENP | ODDP)#endif  if (((oldtio.sgttyb.sg_flags & ANYP) == ANYP) ||      ((oldtio.sgttyb.sg_flags & ANYP) == 0))    {      tiop->sgttyb.sg_flags |= ANYP;      /* Hack on local mode flags if we can. */#if defined (TIOCLGET)#  if defined (LPASS8)      tiop->lflag |= LPASS8;#  endif /* LPASS8 */#endif /* TIOCLGET */    }#if defined (TIOCGETC)#  if defined (USE_XON_XOFF)  /* Get rid of terminal output start and stop characters. */  tiop->tchars.t_stopc = -1; /* C-s */  tiop->tchars.t_startc = -1; /* C-q */  /* If there is an XON character, bind it to restart the output. */  if (oldtio.tchars.t_startc != -1)    rl_bind_key (oldtio.tchars.t_startc, rl_restart_output);#  endif /* USE_XON_XOFF */  /* If there is an EOF char, bind _rl_eof_char to it. */  if (oldtio.tchars.t_eofc != -1)    _rl_eof_char = oldtio.tchars.t_eofc;#  if defined (NO_KILL_INTR)  /* Get rid of terminal-generated SIGQUIT and SIGINT. */  tiop->tchars.t_quitc = -1; /* C-\ */  tiop->tchars.t_intrc = -1; /* C-c */#  endif /* NO_KILL_INTR */#endif /* TIOCGETC */#if defined (TIOCGLTC)  /* Make the interrupt keys go away.  Just enough to make people happy. */  tiop->ltchars.t_dsuspc = -1;	/* C-y */  tiop->ltchars.t_lnextc = -1;	/* C-v */#endif /* TIOCGLTC */}#else  /* !defined (NEW_TTY_DRIVER) */#if !defined (VMIN)#  define VMIN VEOF#endif#if !defined (VTIME)#  define VTIME VEOL#endif#if defined (TERMIOS_TTY_DRIVER)#  define TIOTYPE struct termios#  define DRAIN_OUTPUT(fd)	tcdrain (fd)#  define GETATTR(tty, tiop)	(tcgetattr (tty, tiop))#  ifdef M_UNIX#    define SETATTR(tty, tiop)	(tcsetattr (tty, TCSANOW, tiop))#  else#    define SETATTR(tty, tiop)	(tcsetattr (tty, TCSADRAIN, tiop))#  endif /* !M_UNIX */#else#  define TIOTYPE struct termio#  define DRAIN_OUTPUT(fd)#  define GETATTR(tty, tiop)	(ioctl (tty, TCGETA, tiop))#  define SETATTR(tty, tiop)	(ioctl (tty, TCSETAW, tiop))#endif /* !TERMIOS_TTY_DRIVER */static TIOTYPE otio;static void save_tty_chars PARAMS((TIOTYPE *));static int _get_tty_settings PARAMS((int, TIOTYPE *));static int get_tty_settings PARAMS((int, TIOTYPE *));static int _set_tty_settings PARAMS((int, TIOTYPE *));static int set_tty_settings PARAMS((int, TIOTYPE *));static void prepare_terminal_settings PARAMS((int, TIOTYPE, TIOTYPE *));#if defined (FLUSHO)#  define OUTPUT_BEING_FLUSHED(tp)  (tp->c_lflag & FLUSHO)#else#  define OUTPUT_BEING_FLUSHED(tp)  0#endifstatic voidsave_tty_chars (tiop)     TIOTYPE *tiop;{  _rl_last_tty_chars = _rl_tty_chars;  _rl_tty_chars.t_eof = tiop->c_cc[VEOF];  _rl_tty_chars.t_eol = tiop->c_cc[VEOL];#ifdef VEOL2  _rl_tty_chars.t_eol2 = tiop->c_cc[VEOL2];#endif  _rl_tty_chars.t_erase = tiop->c_cc[VERASE];#ifdef VWERASE  _rl_tty_chars.t_werase = tiop->c_cc[VWERASE];#endif  _rl_tty_chars.t_kill = tiop->c_cc[VKILL];#ifdef VREPRINT  _rl_tty_chars.t_reprint = tiop->c_cc[VREPRINT];#endif  _rl_tty_chars.t_intr = tiop->c_cc[VINTR];  _rl_tty_chars.t_quit = tiop->c_cc[VQUIT];#ifdef VSUSP  _rl_tty_chars.t_susp = tiop->c_cc[VSUSP];#endif#ifdef VDSUSP  _rl_tty_chars.t_dsusp = tiop->c_cc[VDSUSP];#endif#ifdef VSTART  _rl_tty_chars.t_start = tiop->c_cc[VSTART];#endif#ifdef VSTOP  _rl_tty_chars.t_stop = tiop->c_cc[VSTOP];#endif#ifdef VLNEXT  _rl_tty_chars.t_lnext = tiop->c_cc[VLNEXT];#endif#ifdef VDISCARD  _rl_tty_chars.t_flush = tiop->c_cc[VDISCARD];#endif#ifdef VSTATUS  _rl_tty_chars.t_status = tiop->c_cc[VSTATUS];#endif}#if defined (_AIX) || defined (_AIX41)/* Currently this is only used on AIX */static voidrltty_warning (msg)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月婷婷综合激情| 91精品黄色片免费大全| 欧洲av在线精品| 欧美电影免费提供在线观看| 一区二区中文视频| 国产一二精品视频| 欧美日韩中文字幕精品| 国产精品久久久久久久久图文区| 日韩av不卡一区二区| 色综合婷婷久久| 欧美一区二区精美| 亚洲午夜免费电影| 91农村精品一区二区在线| 精品国产不卡一区二区三区| 亚洲一区在线视频| 色呦呦国产精品| 国产精品视频一二三区| 国产精品一区二区91| 日韩一二三区视频| 日韩av成人高清| 欧美精品 国产精品| 专区另类欧美日韩| thepron国产精品| 国产欧美日韩卡一| 国产伦理精品不卡| 亚洲精品一区二区三区精华液| 三级欧美韩日大片在线看| 在线观看一区二区精品视频| 亚洲欧洲中文日韩久久av乱码| 福利电影一区二区三区| 久久精品视频在线免费观看| 激情国产一区二区| 精品美女一区二区| 久久草av在线| 久久综合久久鬼色中文字| 国产一区三区三区| 国产日产欧美精品一区二区三区| 国产精品一区2区| 中文字幕欧美三区| www.日韩在线| 玉米视频成人免费看| 欧美日韩一区二区三区高清| 日本亚洲电影天堂| 精品国产一区二区三区四区四| 日本欧美韩国一区三区| 欧美一级黄色录像| 国产在线麻豆精品观看| 日本一区二区三区视频视频| 成人高清免费在线播放| 一二三四区精品视频| 欧美精品粉嫩高潮一区二区| 老司机午夜精品| 国产性天天综合网| 色综合色综合色综合色综合色综合 | 久久99国产精品久久99| 日韩精品一区二区三区四区 | 免费欧美在线视频| 久久婷婷综合激情| 日本道在线观看一区二区| 亚洲三级小视频| 欧美精品一卡二卡| 国产一区二区三区视频在线播放| 国产精品―色哟哟| 欧美美女黄视频| 国产精品66部| 亚洲国产精品天堂| 久久婷婷成人综合色| 一本久久a久久免费精品不卡| 日韩高清中文字幕一区| www精品美女久久久tv| 色婷婷亚洲综合| 久久国产精品第一页| 国产精品久久综合| 91精品国产综合久久久久久久久久 | 午夜精品成人在线| 国产精品羞羞答答xxdd| 在线观看国产91| 欧美mv日韩mv| 老司机午夜精品| 欧美日韩国产a| 91玉足脚交白嫩脚丫在线播放| 亚洲伦在线观看| 2017欧美狠狠色| 国产精品影视在线观看| 一区二区三区在线看| 久久久久久久av麻豆果冻| 欧美影片第一页| 不卡一区二区三区四区| 麻豆91免费看| 亚洲电影激情视频网站| 国产精品国产三级国产aⅴ原创| 日韩午夜在线观看| 欧美日韩一区二区三区视频| av不卡在线播放| 国产夫妻精品视频| 久久激情综合网| 图片区小说区区亚洲影院| 亚洲三级理论片| 国产精品全国免费观看高清| 精品国产污污免费网站入口| 欧美日韩日日摸| 91在线观看免费视频| 国产福利精品导航| 国产精品自产自拍| 国产老女人精品毛片久久| 美女网站色91| 蓝色福利精品导航| 精品在线观看视频| 捆绑紧缚一区二区三区视频| 免费在线观看日韩欧美| 亚洲成人激情自拍| 亚洲自拍都市欧美小说| 亚洲夂夂婷婷色拍ww47 | 91黄色小视频| 日本韩国欧美在线| 91在线你懂得| 在线免费观看视频一区| 色婷婷av一区| 在线视频一区二区三区| 91美女在线看| 色国产综合视频| 日本韩国一区二区三区视频| 欧美午夜片在线看| 91精品蜜臀在线一区尤物| 91精品国产免费| 欧美va在线播放| 国产日本欧洲亚洲| 国产精品久久久久久亚洲毛片| 国产精品成人免费| 一区二区三区在线观看动漫 | 国内精品不卡在线| 国产精品亚洲第一| 色综合久久综合| 欧美视频一二三区| 日韩欧美一区二区在线视频| 欧美mv和日韩mv的网站| 亚洲国产精品ⅴa在线观看| 中文幕一区二区三区久久蜜桃| 中文字幕一区二区日韩精品绯色| 亚洲色图一区二区三区| 午夜不卡av在线| 国产在线不卡一区| www.爱久久.com| 欧美美女一区二区| 国产婷婷色一区二区三区四区| 自拍偷拍亚洲欧美日韩| 丝袜国产日韩另类美女| 国产九色sp调教91| 欧美网站大全在线观看| 精品少妇一区二区三区在线视频 | 精品福利在线导航| 综合久久久久综合| 老司机精品视频一区二区三区| 国产乱淫av一区二区三区| 色视频欧美一区二区三区| 欧美一区午夜精品| 亚洲欧洲av色图| 蜜臀av国产精品久久久久| 成人黄色在线网站| 日韩一区二区免费电影| 亚洲视频一区二区免费在线观看| 美美哒免费高清在线观看视频一区二区 | 国产精品国产三级国产普通话蜜臀 | 日韩三级高清在线| 中文字幕日本不卡| 免费不卡在线视频| 91蝌蚪porny| 久久蜜桃av一区精品变态类天堂| 亚洲一区二区三区美女| 粉嫩aⅴ一区二区三区四区 | 亚洲国产成人在线| 久久国产日韩欧美精品| 欧美综合视频在线观看| 国产午夜亚洲精品羞羞网站| 丝袜亚洲另类欧美| 91传媒视频在线播放| 欧美国产欧美亚州国产日韩mv天天看完整| 亚洲一卡二卡三卡四卡五卡| 成人激情综合网站| 久久五月婷婷丁香社区| 日韩av网站在线观看| 91久久精品日日躁夜夜躁欧美| 国产欧美一区二区三区网站| 久草在线在线精品观看| 精品婷婷伊人一区三区三| 亚洲免费在线观看视频| 成人午夜大片免费观看| 久久久久久久综合日本| 狠狠色丁香久久婷婷综合_中| 69av一区二区三区| 亚洲第一福利一区| 日本精品免费观看高清观看| 亚洲日本在线观看| 成人黄色在线看| 国产精品毛片高清在线完整版| 国产福利精品一区二区| 国产视频视频一区| 国产69精品久久99不卡| 中文字幕+乱码+中文字幕一区| 粉嫩一区二区三区性色av|