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

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

?? gl_get_line.3

?? BCAST Implementation for NS2
?? 3
?? 第 1 頁 / 共 5 頁
字號:
.\" Copyright (C) 2000, 2001 by Martin C. Shepherd.\" .\" All rights reserved..\" .\" Permission is hereby granted, free of charge, to any person obtaining a.\" copy of this software and associated documentation files (the.\" "Software"), to deal in the Software without restriction, including.\" without limitation the rights to use, copy, modify, merge, publish,.\" distribute, and/or sell copies of the Software, and to permit persons.\" to whom the Software is furnished to do so, provided that the above.\" copyright notice(s) and this permission notice appear in all copies of.\" the Software and that both the above copyright notice(s) and this.\" permission notice appear in supporting documentation..\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\" OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR.\" HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL.\" INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE..\" .\" Except as contained in this notice, the name of a copyright holder.\" shall not be used in advertising or otherwise to promote the sale, use.\" or other dealings in this Software without prior written authorization.\" of the copyright holder..TH gl_get_line 3.SH NAMEgl_get_line, new_GetLine, del_GetLine, gl_customize_completion, gl_change_terminal, gl_configure_getline, gl_load_history, gl_save_history, gl_group_history, gl_show_history, gl_watch_fd, gl_terminal_size, gl_resize_history, gl_limit_history, gl_clear_history, gl_toggle_history, gl_lookup_history, gl_state_of_history, gl_range_of_history, gl_size_of_history, gl_echo_mode, gl_replace_prompt, gl_prompt_style, gl_ignore_signal, gl_trap_signal, gl_last_signal \- allow the user to compose an input line.SH SYNOPSIS.nf#include <stdio.h>#include <libtecla.h>GetLine *new_GetLine(size_t linelen, size_t histlen);GetLine *del_GetLine(GetLine *gl);char *gl_get_line(GetLine *gl, const char *prompt,                 const char *start_line, int start_pos);int gl_customize_completion(GetLine *gl, void *data,                            CplMatchFn *match_fn);int gl_change_terminal(GetLine *gl, FILE *input_fp,                       FILE *output_fp, const char *term);int gl_configure_getline(GetLine *gl,                         const char *app_string,                         const char *app_file,                         const char *user_file);int gl_save_history(GetLine *gl, const char *filename,                    const char *comment, int max_lines);int gl_load_history(GetLine *gl, const char *filename,                    const char *comment);int gl_watch_fd(GetLine *gl, int fd, GlFdEvent event,                GlFdEventFn *callback, void *data);int gl_group_history(GetLine *gl, unsigned stream);int gl_show_history(GetLine *gl, FILE *fp,                    const char *fmt, int all_groups,                    int max_lines);int gl_resize_history(GetLine *gl, size_t bufsize);void gl_limit_history(GetLine *gl, int max_lines);void gl_clear_history(GetLine *gl, int all_groups);void gl_toggle_history(GetLine *gl, int enable);GlTerminalSize gl_terminal_size(GetLine *gl,                                int def_ncolumn,                                int def_nline);int gl_lookup_history(GetLine *gl, unsigned long id,                      GlHistoryLine *hline);void gl_state_of_history(GetLine *gl,                         GlHistoryState *state);void gl_range_of_history(GetLine *gl,                         GlHistoryRange *range);void gl_size_of_history(GetLine *gl, GlHistorySize *size);void gl_echo_mode(GetLine *gl, int enable);void gl_replace_prompt(GetLine *gl, const char *prompt);void gl_prompt_style(GetLine *gl, GlPromptStyle style);int gl_ignore_signal(GetLine *gl, int signo);int gl_trap_signal(GetLine *gl, int signo, unsigned flags,                   GlAfterSignal after, int errno_value);int gl_last_signal(const GetLine *gl);.fi.SH DESCRIPTIONThe \f3gl_get_line()\f1 function is part of the tecla library (seethe libtecla(3) man page). If the user is typing at a terminal, itprompts them for an line of input, then provides interactive editingfacilities, similar to those of the unix \f3tcsh\f1 shell. In additionto simple command-line editing, it supports recall of previouslyentered command lines, TAB completion of file names, and in-linewild-card expansion of filenames..sp.SH AN EXAMPLEThe following shows a complete example of how to use the\f3gl_get_line()\f1 function to get input from the user:.nf  #include <stdio.h>  #include <locale.h>  #include <libtecla.h>  int main(int argc, char *argv[])  {     char *line;    /* The line that the user typed */    GetLine *gl;   /* The gl_get_line() resource object */    setlocale(LC_CTYPE, ""); /* Adopt the user's choice */                             /* of character set. */    gl = new_GetLine(1024, 2048);    if(!gl)      return 1;    while((line=gl_get_line(gl, "$ ", NULL, -1)) != NULL &&           strcmp(line, "exit\\n") != 0)      printf("You typed: %s\\n", line);    gl = del_GetLine(gl);    return 0;  }.fi.spIn the example, first the resources needed by the \f3gl_get_line()\f1 functionare created by calling \f3new_GetLine()\f1. This allocates the memory used insubsequent calls to the \f3gl_get_line()\f1 function, including the historybuffer for recording previously entered lines. Then one or more lines are readfrom the user, until either an error occurs, or the user types \f3exit\f1. Thenfinally the resources that were allocated by \f3new_GetLine()\f1, are returnedto the system by calling \f3del_GetLine()\f1. Note the use of the \f3NULL\f1return value of \f3del_GetLine()\f1 to make \f3gl\f1 \f3NULL\f1. This is asafety precaution. If the program subsequently attempts to pass \f3gl\f1 to\f3gl_get_line()\f1, said function will complain, and return an error, instead ofattempting to use the deleted resource object..sp.SH THE FUNCTIONS USED IN THE EXAMPLEThe descriptions of the functions used in the example are as follows:.sp.nf  GetLine *new_GetLine(size_t linelen, size_t histlen).fi.spThis function creates the resources used by the \f3gl_get_line()\f1function and returns an opaque pointer to the object that containsthem.  The maximum length of an input line is specified via the\f3linelen\f1 argument, and the number of bytes to allocate forstoring history lines is set by the \f3histlen\f1 argument. Historylines are stored back-to-back in a single buffer of this size. Notethat this means that the number of history lines that can be stored atany given time, depends on the lengths of the individual lines.  Ifyou want to place an upper limit on the number of lines that can bestored, see the \f3gl_limit_history()\f1 function described later. Ifyou don't want history at all, specify \f3histlen\f1 as zero, and nohistory buffer will be allocated..spOn error, a message is printed to \f3stderr\f1 and \f3NULL\f1 is returned..sp.nf  GetLine *del_GetLine(GetLine *gl).fi.spThis function deletes the resources that were returned by a previouscall to \f3new_GetLine()\f1. It always returns \f3NULL\f1 (ie adeleted object). It does nothing if the \f3gl\f1 argument is\f3NULL\f1..sp.nf  char *gl_get_line(GetLine *gl, const char *prompt,                   const char *start_line, int start_pos);.fi.spThe \f3gl_get_line()\f1 function can be called any number oftimes to read input from the user. The \f3gl\f1 argumentmust have been previously returned by a call to\f3new_GetLine()\f1. The \f3prompt\f1 argument should be anormal \f3NUL\f1 terminated string, specifying the prompt topresent the user with. By default prompts are displayedliterally, but if enabled with the \f3gl_prompt_style()\f1function (see later), prompts can contain directives to dounderlining, switch to and from bold fonts, or turnhighlighting on and off.If you want to specify the initial contents of the line, forthe user to edit, pass the desired string via the\f3start_line\f1 argument. You can then specify whichcharacter of this line the cursor is initially positionedover, using the \f3start_pos\f1 argument. This should be -1if you want the cursor to follow the last character of thestart line. If you don't want to preload the line in thismanner, send \f3start_line\f1 as \f3NULL\f1, and set\f3start_pos\f1 to -1.The \f3gl_get_line()\f1 function returns a pointer to the line enteredby the user, or \f3NULL\f1 on error or at the end of the input. Thereturned pointer is part of the specified \f3gl\f1 resource object,and thus should not be free'd by the caller, or assumed to beunchanging from one call to the next. When reading from a user at aterminal, there will always be a newline character at the end of thereturned line.  When standard input is being taken from a pipe or afile, there will similarly be a newline unless the input line was toolong to store in the internal buffer. In the latter case you shouldcall \f3gl_get_line()\f1 again to read the rest of the line. Note thatthis behavior makes \f3gl_get_line()\f1 similar to \f3fgets()\f1.  Infact when \f3stdin\f1 isn't connected to a terminal,\f3gl_get_line()\f1just calls \f3fgets()\f1..SH OPTIONAL PROMPT FORMATTINGWhereas by default the prompt string that you specify isdisplayed literally, without any special interpretation ofthe characters within it, the \f3gl_prompt_style()\f1function can be used to enable optional formattingdirectives within the prompt..sp.nf  void gl_prompt_style(GetLine *gl, GlPromptStyle style);.fi.spThe \f3style\f1 argument, which specifies the formattingstyle, can take any of the following values:.sp.nf  GL_FORMAT_PROMPT   -  In this style, the formatting                        directives described below, when                        included in prompt strings, are                        interpreted as follows:                          %B  -  Display subsequent                                 characters with a bold                                 font.                          %b  -  Stop displaying characters                                 with the bold font.                          %F  -  Make subsequent characters                                 flash.                          %f  -  Turn off flashing                                 characters.                          %U  -  Underline subsequent                                 characters.                           %u  -  Stop underlining                                 characters.                          %P  -  Switch to a pale (half                                 brightness) font.                          %p  -  Stop using the pale font.                          %S  -  Highlight subsequent                                 characters (also known as                                 standout mode).                          %s  -  Stop highlighting                                 characters.                          %V  -  Turn on reverse video.                          %v  -  Turn off reverse video.                          %%  -  Display a single %                                 character.                        For example, in this mode, a prompt                        string like \f3"%UOK%u$ "\f1 would                        display the prompt \f3"OK$ "\f1,                        but with the \f3OK\f1 part                        underlined.                        Note that although a pair of                        characters that starts with a %                        character, but doesn't match any of                        the above directives is displayed                        literally, if a new directive is                        subsequently introduced which does                        match, the displayed prompt will                        change, so it is better to always                        use %% to display a literal %.                        Also note that not all terminals

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久毛片a| 国产伦精品一区二区三区视频青涩| 亚洲国产裸拍裸体视频在线观看乱了 | 视频在线观看一区| 国产成人在线色| 欧美一级日韩不卡播放免费| 中文字幕一区免费在线观看| 精品写真视频在线观看| 在线视频你懂得一区| 中文字幕一区二| 国产传媒日韩欧美成人| 欧美一卡2卡3卡4卡| 亚洲一区成人在线| 91丨porny丨国产| 中文字幕一区二区三区在线不卡| 久久精品久久久精品美女| 欧美绝品在线观看成人午夜影视| 亚洲码国产岛国毛片在线| 成人在线视频一区二区| 日韩精品一区二区三区视频播放| 亚洲成a人v欧美综合天堂下载| 99精品久久99久久久久| 中文字幕欧美激情| 国产一区二区视频在线| 精品国产1区2区3区| 青娱乐精品视频| 欧美一级理论性理论a| 日韩国产欧美视频| 日韩欧美一区二区三区在线| 美女网站视频久久| 精品欧美久久久| 激情小说欧美图片| 久久日一线二线三线suv| 精品一区免费av| 久久久久久久久久久久久久久99 | 日韩欧美另类在线| 美女网站一区二区| 久久久久久久综合色一本| 韩国在线一区二区| 国产网红主播福利一区二区| 国产精品18久久久久久久久久久久 | 91蝌蚪porny成人天涯| 中文字幕一区二区在线观看| 91亚洲男人天堂| 亚洲一区二区精品视频| 欧美猛男gaygay网站| 日韩av电影一区| 欧美精品一区二区三区很污很色的| 韩日av一区二区| 国产精品成人一区二区艾草| 色综合久久久久综合99| 天天色天天操综合| 日韩美女视频在线| 粉嫩13p一区二区三区| 亚洲天堂网中文字| 欧美体内she精高潮| 七七婷婷婷婷精品国产| 国产欧美精品日韩区二区麻豆天美| 成人黄色av网站在线| 亚洲成av人片| www成人在线观看| 色婷婷激情久久| 蜜臀av一区二区在线免费观看| 久久久久久影视| 欧美性猛交xxxxxx富婆| 精品亚洲aⅴ乱码一区二区三区| 国产精品嫩草久久久久| 欧美日韩高清一区二区不卡| 国产精品亚洲午夜一区二区三区| 一区二区三区四区蜜桃| 久久一夜天堂av一区二区三区| 91啪在线观看| 韩国v欧美v日本v亚洲v| 一区二区三区在线高清| 国产精品短视频| 日韩欧美中文字幕公布| 99re免费视频精品全部| 日本不卡123| 亚洲人成网站色在线观看| 日韩免费观看2025年上映的电影 | 国内成人免费视频| 亚洲欧美成人一区二区三区| 精品乱码亚洲一区二区不卡| 欧美影院精品一区| 99久久婷婷国产精品综合| 激情综合亚洲精品| 亚洲成人一区二区| 亚洲欧美经典视频| 中文字幕免费一区| 欧美精品一区二区三区在线播放 | 91色九色蝌蚪| 国产成人激情av| 蜜桃视频一区二区三区在线观看| 一区二区三区国产精品| 国产精品护士白丝一区av| 精品国产一区二区三区不卡| 91精品国产综合久久福利| 色婷婷综合久久久| 97久久久精品综合88久久| 国产丶欧美丶日本不卡视频| 精品午夜一区二区三区在线观看| 性感美女极品91精品| 亚洲国产一区二区三区青草影视| 亚洲视频一区在线| 国产精品电影一区二区三区| 久久久久国产一区二区三区四区| 精品国产1区二区| 综合久久给合久久狠狠狠97色| 欧美电影免费提供在线观看| 欧美福利视频导航| 欧美理论片在线| 欧美性做爰猛烈叫床潮| 91免费精品国自产拍在线不卡| 国产高清不卡一区二区| 国产伦精品一区二区三区免费 | 国产91在线|亚洲| 国产乱淫av一区二区三区| 国产一区在线不卡| 国产高清久久久| 成人福利视频网站| 99久久er热在这里只有精品66| 成人黄色小视频| 色一情一伦一子一伦一区| 色就色 综合激情| 欧美图区在线视频| 欧美性色aⅴ视频一区日韩精品| 91福利在线看| 欧美丰满少妇xxxbbb| 欧美夫妻性生活| 精品免费一区二区三区| 国产清纯美女被跳蛋高潮一区二区久久w | 亚洲成人一区在线| 日韩成人午夜电影| 精品一区二区在线免费观看| 国产一区二区电影| 91麻豆成人久久精品二区三区| 欧美色图第一页| 日韩欧美亚洲国产另类| 中文无字幕一区二区三区| 亚洲免费电影在线| 日韩制服丝袜先锋影音| 激情av综合网| 91麻豆福利精品推荐| 欧美一区二区三区视频在线观看| 精品少妇一区二区三区免费观看 | 久久99久久99小草精品免视看| 国产精品资源在线看| a级精品国产片在线观看| 欧美日韩国产不卡| 国产欧美日韩久久| 亚洲影院理伦片| 久久国产人妖系列| 色综合天天综合网国产成人综合天 | 在线观看不卡一区| 日韩欧美一区二区在线视频| 日本一二三不卡| 亚洲午夜视频在线观看| 久久精品国产一区二区| 91视频在线观看| 精品第一国产综合精品aⅴ| 亚洲欧美欧美一区二区三区| 激情久久五月天| 欧美日韩一区二区三区四区| 亚洲成a人v欧美综合天堂下载| 国产激情一区二区三区四区| 欧美日韩一区二区在线观看视频| 国产精品久久久久影院色老大| 日韩成人一级大片| 日本高清不卡视频| 国产欧美精品一区二区色综合朱莉 | 亚洲精品国产品国语在线app| 奇米影视7777精品一区二区| 91片在线免费观看| 欧美激情综合在线| 久久国产欧美日韩精品| 欧美亚男人的天堂| 亚洲色图清纯唯美| 国产91丝袜在线观看| 久久婷婷色综合| 精品一区二区三区在线视频| 欧美综合视频在线观看| 综合久久久久综合| av一本久道久久综合久久鬼色| 久久久精品tv| 久久er精品视频| 日韩视频一区二区三区在线播放| 一区二区三区四区蜜桃 | 欧美电影在哪看比较好| 亚洲免费在线电影| 暴力调教一区二区三区| 久久看人人爽人人| 国产精品白丝jk黑袜喷水| 久久久另类综合| 国产九色sp调教91| 2020国产精品久久精品美国| 极品少妇xxxx精品少妇偷拍 | 综合久久给合久久狠狠狠97色| 成人动漫中文字幕| 亚洲视频精选在线| 色综合视频在线观看|