diff options
author | June McEnroe <june@causal.agency> | 2019-11-20 20:13:24 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-11-20 20:13:24 -0500 |
commit | 9415561a615599cb75e1db5e3679f5551f0da947 (patch) | |
tree | f45888755aac082f48db3fbd41d495bc4d63e917 /bin/1sh/histedit.c | |
parent | Remove color from 1sh prompts (diff) | |
download | src-9415561a615599cb75e1db5e3679f5551f0da947.tar.gz src-9415561a615599cb75e1db5e3679f5551f0da947.zip |
Remove PSlit
Diffstat (limited to '')
-rw-r--r-- | bin/1sh/histedit.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/bin/1sh/histedit.c b/bin/1sh/histedit.c index 08339a00..0d23e9aa 100644 --- a/bin/1sh/histedit.c +++ b/bin/1sh/histedit.c @@ -224,30 +224,6 @@ sethistsize(const char *hs) } void -setpslit(const char *lit_ch) { - wchar_t wc; - - if (!(iflag && editing && el)) - return; - - if (lit_ch == NULL) { - el_set(el, EL_PROMPT, getprompt); - el_set(el, EL_RPROMPT, getrprompt); - return; - } - - mbtowc(&wc, NULL, 1); /* state init */ - - if (mbtowc(&wc, lit_ch, strlen(lit_ch)) <= 0) { - el_set(el, EL_PROMPT, getprompt); - el_set(el, EL_RPROMPT, getrprompt); - } else { - el_set(el, EL_PROMPT_ESC, getprompt, (int)wc); - el_set(el, EL_RPROMPT_ESC, getrprompt, (int)wc); - } -} - -void setterm(const char *term) { if (rootshell && el != NULL && term != NULL) |