#include "compat.h"
#include "sys.h"
#include <stdio.h>
#include "el.h"
Go to the source code of this file.
Functions | |
el_private const char * | prompt_default (EditLine_t *) |
el_private const char * | prompt_default_r (EditLine_t *) |
el_protected void | prompt_print (EditLine_t *el, int op) |
el_protected int | prompt_init (EditLine_t *el) |
el_protected void | prompt_end (EditLine_t *) |
el_protected int | prompt_set (EditLine_t *el, ElPFunc_t prf, int op) |
el_protected int | prompt_get (EditLine_t *el, ElPFunc_t *prf, int op) |
el_protected void | prompt_setcolor (int col) |
Variables | |
ElColor_t | prompt_color (6,-1) |
el_private const char * prompt_default | ( | EditLine_t * | ) |
Definition at line 65 of file prompt.cxx.
References a.
Referenced by prompt_init(), and prompt_set().
el_private const char * prompt_default_r | ( | EditLine_t * | ) |
Definition at line 77 of file prompt.cxx.
References a.
Referenced by prompt_init(), and prompt_set().
el_protected void prompt_end | ( | EditLine_t * | ) |
el_protected int prompt_get | ( | EditLine_t * | el, | |
ElPFunc_t * | prf, | |||
int | op | |||
) |
Definition at line 228 of file prompt.cxx.
References EL_PROMPT, ElPrompt_t::fFunc, EditLine_t::fPrompt, EditLine_t::fRPrompt, and NULL.
Referenced by el_get().
el_protected int prompt_init | ( | EditLine_t * | el | ) |
Definition at line 176 of file prompt.cxx.
References ElPrompt_t::fFunc, ElCoord_t::fH, ElPrompt_t::fPos, EditLine_t::fPrompt, EditLine_t::fRPrompt, ElCoord_t::fV, prompt_default(), and prompt_default_r().
Referenced by el_init().
el_protected void prompt_print | ( | EditLine_t * | el, | |
int | op | |||
) |
Definition at line 91 of file prompt.cxx.
References colors, EL_PROMPT, ElColor_t::fForeColor, ElPrompt_t::fFunc, ElCoord_t::fH, ElPrompt_t::fPos, EditLine_t::fPrompt, EditLine_t::fRefresh, EditLine_t::fRPrompt, ElCoord_t::fV, i, n, num, p, prompt_color, ElRefresh_t::r_cursor, re_putc(), term__atocolor(), and tty_can_output().
Referenced by re_refresh().
el_protected int prompt_set | ( | EditLine_t * | el, | |
ElPFunc_t | prf, | |||
int | op | |||
) |
Definition at line 200 of file prompt.cxx.
References EL_PROMPT, EditLine_t::fPrompt, EditLine_t::fRPrompt, NULL, p, prompt_default(), and prompt_default_r().
Referenced by el_set().
el_protected void prompt_setcolor | ( | int | col | ) |
Definition at line 246 of file prompt.cxx.
References ElColor_t::fForeColor, and prompt_color.
Referenced by setColors().
ElColor_t prompt_color(6,-1) |
Referenced by prompt_print(), and prompt_setcolor().