Lines Matching defs:GetLine

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