(BWDIC!) Rewrite prompt handling via new n_tty_create_prompt()..
commitabf00559a62386958c1b82a1d1a0cce76b977418
authorSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sun, 6 Nov 2016 00:01:12 +0000 (6 01:01 +0100)
committerSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sat, 31 Dec 2016 16:57:52 +0000 (31 17:57 +0100)
treef182e14f917522bfffa89224b599bdaeb760d27e
parent7947b5993ade59a5783d20ea0db93fc7eccf20ca
(BWDIC!) Rewrite prompt handling via new n_tty_create_prompt()..

which creates something in a dynamic string object.
This new approach allows us to drop n_shexp_expand_escape() and
field_put_bidi_clip() functions.

Along this we loose the capability to expand \?, \@ and \$,
instead new "private" variables *-account-name*, *-exit-status,
*-mailbox-resolved* and *-mailbox-display* have been introduced,
and the prompt is completely shell expanded (thus twice with
`wysh' or in v15), as if dollar-single-quote quoted.
We gained *prompt2* as a second level prompt.

The support for \& a.k.a. "? " or "& " dependent upon *bsdcompat*
has been dropped completely, just set the *prompt* if you want to.
Maybe our variable expansion will improve in the future and
something like, say, ${bsdcompat?&:?} can be used...  Whatever.

Most of the new variables must not be covered by `localopts', so
extend the new automatic variable handling with a new _NOLOPTS
flag and check that before adding a variable to unroll lists.
12 files changed:
accmacvar.c
auxlily.c
folder.c
lex_input.c
mk-okey-map.pl
nail.1
nail.h
nail.rc
nailfuns.h
shexp.c
tty.c
ui_str.c