From e9af3c7681723244c0ca305d8cc540ad4540ca80 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 11 Jan 2019 13:59:39 -0500 Subject: Add PSlit for prompt escapes --- bin/cash/histedit.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/cash/histedit.c') diff --git a/bin/cash/histedit.c b/bin/cash/histedit.c index 581925d8..4e8ff8b2 100644 --- a/bin/cash/histedit.c +++ b/bin/cash/histedit.c @@ -176,6 +176,14 @@ sethistsize(const char *hs) } } +void +setpslit(const char *lit) { + if (el != NULL && *lit < 0x20) { + el_set(el, EL_PROMPT_ESC, getprompt, *lit); + el_set(el, EL_RPROMPT_ESC, getrprompt, *lit); + } +} + void setterm(const char *term) { -- cgit 1.4.1