Lines Matching defs:GetLine

365 struct GetLine {  struct
366 ErrMsg *err; /* The error-reporting buffer */
367 GlHistory *glh; /* The line-history buffer */
368 WordCompletion *cpl; /* String completion resource object */
369 GlCplCallback cplfn; /* The completion callback */
371 ExpandFile *ef; /* ~user/, $envvar and wildcard expansion */
374 StringGroup *capmem; /* Memory for recording terminal capability */
376 GlCharQueue *cq; /* The terminal output character queue */
377 int input_fd; /* The file descriptor to read on */
378 int output_fd; /* The file descriptor to write to */
379 FILE *input_fp; /* A stream wrapper around input_fd */
380 FILE *output_fp; /* A stream wrapper around output_fd */
381 FILE *file_fp; /* When input is being temporarily taken from */
384 char *term; /* The terminal type specified on the last call */
386 int is_term; /* True if stdin is a terminal */
387 GlWriteFn *flush_fn; /* The function to call to write to the terminal */
388 GlIOMode io_mode; /* The I/O mode established by gl_io_mode() */
389 int raw_mode; /* True while the terminal is in raw mode */
390 GlPendingIO pending_io; /* The type of I/O that is currently pending */
391 GlReturnStatus rtn_status; /* The reason why gl_get_line() returned */
392 int rtn_errno; /* THe value of errno associated with rtn_status */
393 size_t linelen; /* The max number of characters per line */
394 char *line; /* A line-input buffer of allocated size */
397 char *cutbuf; /* A cut-buffer of the same size as line[] */
398 char *prompt; /* The current prompt string */
399 int prompt_len; /* The length of the prompt string */
400 int prompt_changed; /* True after a callback changes the prompt */
401 int prompt_style; /* How the prompt string is displayed */
402 FreeList *cpl_mem; /* Memory for GlCplCallback objects */
403 FreeList *ext_act_mem; /* Memory for GlExternalAction objects */
404 FreeList *sig_mem; /* Memory for nodes of the signal list */
405 GlSignalNode *sigs; /* The head of the list of signals */
406 int signals_masked; /* True between calls to gl_mask_signals() and */
408 int signals_overriden; /* True between calls to gl_override_signals() */
410 sigset_t all_signal_set; /* The set of all signals that we are trapping */
411 sigset_t old_signal_set; /* The set of blocked signals on entry to */
413 sigset_t use_signal_set; /* The subset of all_signal_set to unblock */
415 Termios oldattr; /* Saved terminal attributes. */
416 KeyTab *bindings; /* A table of key-bindings */
417 int ntotal; /* The number of characters in gl->line[] */
418 int buff_curpos; /* The cursor position within gl->line[] */
419 int term_curpos; /* The cursor position on the terminal */
420 int term_len; /* The number of terminal characters used to */
422 int buff_mark; /* A marker location in the buffer */
423 int insert_curpos; /* The cursor position at start of insert */
424 int insert; /* True in insert mode */
448 /* the user since new_GetLine() was called. */ argument
449 long last_search; /* The value of keyseq_count during the last */
451 GlEditor editor; /* The style of editing, (eg. vi or emacs) */
452 int silence_bell; /* True if gl_ring_bell() should do nothing. */
453 int automatic_history; /* True to automatically archive entered lines */
455 ViMode vi; /* Parameters used when editing in vi mode */
456 const char *left; /* The string that moves the cursor 1 character */
458 const char *right; /* The string that moves the cursor 1 character */
460 const char *up; /* The string that moves the cursor 1 character */
462 const char *down; /* The string that moves the cursor 1 character */
464 const char *home; /* The string that moves the cursor home */
465 const char *bol; /* Move cursor to beginning of line */
466 const char *clear_eol; /* The string that clears from the cursor to */
468 const char *clear_eod; /* The string that clears from the cursor to */
470 const char *u_arrow; /* The string returned by the up-arrow key */
471 const char *d_arrow; /* The string returned by the down-arrow key */
472 const char *l_arrow; /* The string returned by the left-arrow key */
473 const char *r_arrow; /* The string returned by the right-arrow key */
474 const char *sound_bell; /* The string needed to ring the terminal bell */
475 const char *bold; /* Switch to the bold font */
476 const char *underline; /* Underline subsequent characters */
477 const char *standout; /* Turn on standout mode */
478 const char *dim; /* Switch to a dim font */
479 const char *reverse; /* Turn on reverse video */
480 const char *blink; /* Switch to a blinking font */
481 const char *text_attr_off; /* Turn off all text attributes */
482 int nline; /* The height of the terminal in lines */
483 int ncolumn; /* The width of the terminal in columns */
485 char *tgetent_buf; /* The buffer that is used by tgetent() to */
487 char *tgetstr_buf; /* The buffer that is used by tgetstr() to */
491 const char *left_n; /* The parameter string that moves the cursor */
493 const char *right_n; /* The parameter string that moves the cursor */
496 char *app_file; /* The pathname of the application-specific */
498 char *user_file; /* The pathname of the user-specific */
500 int configured; /* True as soon as any teclarc configuration */
502 int echo; /* True to display the line as it is being */
506 int last_signal; /* The last signal that was caught by */
510 FreeList *fd_node_mem; /* A freelist of GlFdNode structures */
511 GlFdNode *fd_nodes; /* The list of fd event descriptions */
512 fd_set rfds; /* The set of fds to watch for readability */
513 fd_set wfds; /* The set of fds to watch for writability */
514 fd_set ufds; /* The set of fds to watch for urgent data */
515 int max_fd; /* The maximum file-descriptor being watched */
516 struct { /* Inactivity timeout related data */
524 } timer;