diff options
author | June McEnroe <june@causal.agency> | 2019-01-11 13:59:39 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-01-11 13:59:39 -0500 |
commit | e9af3c7681723244c0ca305d8cc540ad4540ca80 (patch) | |
tree | cd0f26821ab2738bde4f439edaee8186a5015af6 /bin/cash/histedit.c | |
parent | Don't make depend automatically (diff) | |
download | src-e9af3c7681723244c0ca305d8cc540ad4540ca80.tar.gz src-e9af3c7681723244c0ca305d8cc540ad4540ca80.zip |
Add PSlit for prompt escapes
Diffstat (limited to '')
-rw-r--r-- | bin/cash/histedit.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -177,6 +177,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) { if (rootshell && el != NULL && term != NULL) |