#include "histedit.h"
Go to the source code of this file.
Classes | |
struct | ElPrompt_t |
Typedefs | |
typedef const char *(*) | ElPFunc_t (EditLine_t *) |
Functions | |
el_protected void | prompt_print (EditLine_t *, int) |
el_protected int | prompt_set (EditLine_t *, ElPFunc_t, int) |
el_protected int | prompt_get (EditLine_t *, ElPFunc_t *, int) |
el_protected int | prompt_init (EditLine_t *) |
el_protected void | prompt_end (EditLine_t *) |
el_protected void | prompt_setcolor (int col) |
typedef const char*(*) ElPFunc_t(EditLine_t *) |
el_protected void prompt_end | ( | EditLine_t * | ) |
el_protected int prompt_get | ( | EditLine_t * | , | |
ElPFunc_t * | , | |||
int | ||||
) |
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 * | ) |
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 * | , | |
int | ||||
) |
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 * | , | |
ElPFunc_t | , | |||
int | ||||
) |
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().