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

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

?? excallback.c

?? 基于的linux的oracle sqlplus替代工具
?? C
字號:
/*From: Jeff Solomon <jsolomon@stanford.edu>Date: Fri,  9 Apr 1999 10:13:27 -0700 (PDT)To: chet@po.cwru.eduSubject: new readline exampleMessage-ID: <14094.12094.527305.199695@mrclean.Stanford.EDU>Chet,I've been using readline 4.0. Specifically, I've been using the perlversion Term::ReadLine::Gnu. It works great.Anyway, I've been playing around the alternate interface and I wantedto contribute a little C program, callback.c, to you that you coulduse as an example of the alternate interface in the /examplesdirectory of the readline distribution.My example shows how, using the alternate interface, you caninteractively change the prompt (which is very nice imo). Also, Ipoint out that you must roll your own terminal setting when using thealternate interface because readline depreps (using your parlance) theterminal while in the user callback. I try to demostrate what I meanwith an example. I've included the program below.To compile, I just put the program in the examples directory and madethe appropriate changes to the EXECUTABLES and OBJECTS line and addedan additional target 'callback'.I compiled on my Sun Solaris2.6 box using Sun's cc.Let me know what you think.Jeff*/#if defined (HAVE_CONFIG_H)#include <config.h>#endif#include <stdio.h>#include <sys/types.h>#ifdef HAVE_UNISTD_H#include <unistd.h>#endif#include <termios.h>	/* xxx - should make this more general */#ifdef READLINE_LIBRARY#  include "readline.h"#else#  include <readline/readline.h>#endif/* This little examples demonstrates the alternate interface to using readline. * In the alternate interface, the user maintains control over program flow and * only calls readline when STDIN is readable. Using the alternate interface, * you can do anything else while still using readline (like talking to a * network or another program) without blocking. * * Specifically, this program highlights two importants features of the * alternate interface. The first is the ability to interactively change the * prompt, which can't be done using the regular interface since rl_prompt is * read-only. *  * The second feature really highlights a subtle point when using the alternate * interface. That is, readline will not alter the terminal when inside your * callback handler. So let's so, your callback executes a user command that * takes a non-trivial amount of time to complete (seconds). While your * executing the command, the user continues to type keystrokes and expects them * to be re-echoed on the new prompt when it returns. Unfortunately, the default * terminal configuration doesn't do this. After the prompt returns, the user * must hit one additional keystroke and then will see all of his previous * keystrokes. To illustrate this, compile and run this program. Type "sleep" at * the prompt and then type "bar" before the prompt returns (you have 3 * seconds). Notice how "bar" is re-echoed on the prompt after the prompt * returns? This is what you expect to happen. Now comment out the 4 lines below * the line that says COMMENT LINE BELOW. Recompile and rerun the program and do * the same thing. When the prompt returns, you should not see "bar". Now type * "f", see how "barf" magically appears? This behavior is un-expected and not * desired. */void process_line(char *line);int  change_prompt(void);char *get_prompt(void);int prompt = 1;char prompt_buf[40], line_buf[256];tcflag_t old_lflag;cc_t     old_vtime;struct termios term;int main(){    fd_set fds;    /* Adjust the terminal slightly before the handler is installed. Disable     * canonical mode processing and set the input character time flag to be     * non-blocking.     */    if( tcgetattr(STDIN_FILENO, &term) < 0 ) {        perror("tcgetattr");        exit(1);    }    old_lflag = term.c_lflag;    old_vtime = term.c_cc[VTIME];    term.c_lflag &= ~ICANON;    term.c_cc[VTIME] = 1;    /* COMMENT LINE BELOW - see above */    if( tcsetattr(STDIN_FILENO, TCSANOW, &term) < 0 ) {        perror("tcsetattr");        exit(1);    }    rl_add_defun("change-prompt", change_prompt, CTRL('t'));    rl_callback_handler_install(get_prompt(), process_line);    while(1) {      FD_ZERO(&fds);      FD_SET(fileno(stdin), &fds);      if( select(FD_SETSIZE, &fds, NULL, NULL, NULL) < 0) {        perror("select");        exit(1);      }      if( FD_ISSET(fileno(stdin), &fds) ) {        rl_callback_read_char();      }    }}voidprocess_line(char *line){  if( line == NULL ) {    fprintf(stderr, "\n", line);    /* reset the old terminal setting before exiting */    term.c_lflag     = old_lflag;    term.c_cc[VTIME] = old_vtime;    if( tcsetattr(STDIN_FILENO, TCSANOW, &term) < 0 ) {        perror("tcsetattr");        exit(1);    }    exit(0);  }  if( strcmp(line, "sleep") == 0 ) {    sleep(3);  } else {    fprintf(stderr, "|%s|\n", line);  }  free (line);}intchange_prompt(void){  /* toggle the prompt variable */  prompt = !prompt;  /* save away the current contents of the line */  strcpy(line_buf, rl_line_buffer);  /* install a new handler which will change the prompt and erase the current line */  rl_callback_handler_install(get_prompt(), process_line);  /* insert the old text on the new line */  rl_insert_text(line_buf);  /* redraw the current line - this is an undocumented function. It invokes the   * redraw-current-line command.   */  rl_refresh_line(0, 0);}char *get_prompt(void){  /* The prompts can even be different lengths! */  sprintf(prompt_buf, "%s",     prompt ? "Hit ctrl-t to toggle prompt> " : "Pretty cool huh?> ");  return prompt_buf;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆精品一区二区三区| 久久久久久**毛片大全| 成人永久看片免费视频天堂| 日韩福利电影在线| 日韩和欧美一区二区| 日韩在线卡一卡二| 精品一区二区免费看| 久久国产精品99久久人人澡| 奇米影视在线99精品| 奇米影视一区二区三区| 麻豆精品精品国产自在97香蕉| 麻豆91精品视频| 国产在线乱码一区二区三区| 国产美女在线观看一区| 成人污污视频在线观看| 色婷婷国产精品综合在线观看| 欧美综合亚洲图片综合区| 91麻豆精品91久久久久同性| 日韩免费观看2025年上映的电影| 国产日韩欧美综合在线| 一区在线观看免费| 午夜欧美在线一二页| 麻豆极品一区二区三区| 成人免费视频app| 在线免费观看日韩欧美| 欧美一级久久久| 国产精品无码永久免费888| 国产精品乱码久久久久久| 亚洲一区国产视频| 久久国产尿小便嘘嘘尿| 99精品黄色片免费大全| 欧美日韩国产另类一区| 国产网站一区二区三区| 亚洲午夜在线电影| 国产成人免费视频| 欧美日韩dvd在线观看| 久久午夜色播影院免费高清| 亚洲免费电影在线| 国产精品一区二区你懂的| 欧美做爰猛烈大尺度电影无法无天| 欧美一区二区三区免费大片| 国产精品久久久久久久久免费相片 | 国产成人综合视频| 欧美日韩亚洲不卡| 国产精品理论在线观看| 免费看日韩精品| 欧美视频在线一区二区三区 | 中文字幕在线观看不卡视频| 婷婷中文字幕一区三区| www.欧美日韩| 久久网站最新地址| 日本成人在线不卡视频| 一本一本久久a久久精品综合麻豆| 欧美大白屁股肥臀xxxxxx| 亚洲乱码中文字幕综合| 国产91丝袜在线播放| 日韩欧美亚洲国产另类| 一级中文字幕一区二区| 日韩电影在线看| 国产亚洲综合在线| 亚洲成av人片www| 精品粉嫩aⅴ一区二区三区四区| 国产一区二区三区香蕉| 亚洲欧美综合另类在线卡通| 欧美久久婷婷综合色| 激情综合五月天| 天天射综合影视| 中文字幕第一区| 精品播放一区二区| 不卡的av在线播放| 99精品国产99久久久久久白柏| 久久综合成人精品亚洲另类欧美 | 成人丝袜高跟foot| 久久精品亚洲乱码伦伦中文| 精品中文av资源站在线观看| 欧美久久久久中文字幕| 天天影视涩香欲综合网| 欧美疯狂做受xxxx富婆| 日韩黄色片在线观看| 欧美精品在线观看播放| 美女国产一区二区| 久久久久久久久岛国免费| 国产91丝袜在线18| 亚洲区小说区图片区qvod| 91国产福利在线| 亚洲.国产.中文慕字在线| 91精品国产麻豆| 久久不见久久见免费视频7| 久久综合一区二区| 岛国一区二区三区| 一区二区高清在线| 欧美一区二区福利在线| 国产毛片精品视频| 日韩一区欧美小说| 91麻豆精品国产91久久久资源速度| 免费在线观看不卡| 久久久精品免费网站| 色综合久久久久| 免费美女久久99| 国产精品日产欧美久久久久| 欧美日韩在线三级| 国产专区欧美精品| 亚洲欧美日韩国产中文在线| 91精品一区二区三区久久久久久| 激情综合网av| 亚洲人成在线播放网站岛国| 宅男在线国产精品| 99国产欧美另类久久久精品| 欧美aⅴ一区二区三区视频| 国产精品欧美久久久久无广告 | 97国产精品videossex| 亚洲午夜电影在线观看| 日韩色视频在线观看| aaa欧美色吧激情视频| 免费看日韩a级影片| 亚洲欧美电影一区二区| 欧美v亚洲v综合ⅴ国产v| 99久久精品99国产精品| 久久99热国产| 亚洲妇女屁股眼交7| 国产精品美女久久久久aⅴ国产馆| 欧美日韩色综合| 色综合天天综合网国产成人综合天 | 欧美人xxxx| 波多野结衣欧美| 精品夜夜嗨av一区二区三区| 一区二区免费视频| 国产精品美女久久久久aⅴ| 日韩精品一区二区三区视频播放 | 日本精品裸体写真集在线观看| 精品一区二区日韩| 午夜精品福利久久久| 欧美国产日韩在线观看| 26uuuu精品一区二区| 欧美一区二区三区电影| 欧美揉bbbbb揉bbbbb| 在线视频一区二区三区| 91网址在线看| 成人久久视频在线观看| 国产毛片一区二区| 韩国中文字幕2020精品| 青青草97国产精品免费观看| 亚洲成av人在线观看| 亚洲欧美另类小说视频| 国产精品电影院| 亚洲国产精品精华液ab| 中文av字幕一区| 中文字幕精品—区二区四季| 久久免费电影网| 国产午夜久久久久| 国产亚洲欧美日韩日本| 日本一区二区三级电影在线观看 | 北条麻妃一区二区三区| eeuss鲁片一区二区三区在线看| 国产在线精品不卡| 国内精品久久久久影院薰衣草| 精品一区二区三区在线播放| 蜜桃在线一区二区三区| 久久草av在线| 国产九色精品成人porny | 色婷婷av一区二区三区gif| thepron国产精品| 91免费观看国产| 欧美日韩一区二区在线视频| 欧美日韩国产综合草草| 91精品国产高清一区二区三区蜜臀 | 99久久久无码国产精品| 色婷婷一区二区三区四区| 欧美亚洲动漫精品| 欧美videos大乳护士334| 久久尤物电影视频在线观看| 国产精品全国免费观看高清 | 精品成人在线观看| 亚洲二区在线观看| 久久99精品网久久| 91丝袜高跟美女视频| 欧美亚洲综合另类| 日韩一区二区电影| 国产精品久久看| 亚洲一区二区三区四区在线免费观看| 三级在线观看一区二区| 国产精品亚洲综合一区在线观看| 不卡一区二区在线| 91麻豆精品久久久久蜜臀| 国产午夜精品久久久久久免费视| 亚洲男女一区二区三区| 毛片av一区二区| 亚洲综合小说图片| 麻豆精品在线播放| 亚洲精品日日夜夜| 美女视频黄免费的久久| 欧美一区二区三区视频在线| 亚洲一区二区黄色| 欧美视频一区二| 亚洲午夜精品一区二区三区他趣| 色av一区二区| 午夜一区二区三区在线观看| 在线免费观看成人短视频| 一区二区三区在线免费观看| 色综合久久99|