Home | History | Annotate | Download | only in examples

Lines Matching defs:prompt

19 interactively change the prompt (which is very nice imo). Also, I
73 * prompt, which can't be done using the regular interface since rl_prompt is
81 * to be re-echoed on the new prompt when it returns. Unfortunately, the default
82 * terminal configuration doesn't do this. After the prompt returns, the user
85 * the prompt and then type "bar" before the prompt returns (you have 3
86 * seconds). Notice how "bar" is re-echoed on the prompt after the prompt
89 * the same thing. When the prompt returns, you should not see "bar". Now type
98 int prompt = 1;
129 rl_add_defun("change-prompt", change_prompt, CTRL('t'));
175 /* toggle the prompt variable */
176 prompt = !prompt;
181 /* install a new handler which will change the prompt and erase the current line */
198 prompt ? "Hit ctrl-t to toggle prompt> " : "Pretty cool huh?> ");