diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-11-08 08:46:56 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-11-08 08:46:56 -0800 |
commit | 43688fe7190d0350349d47727c3663421d5618dc (patch) | |
tree | ef71d02782dbce316b0481d5751f3fb1d1834527 /sys/cmd/rc/rc.h | |
parent | 65e84b15a944c83862da736a427636f3e64d3fc2 (diff) |
feat(rc): added back functionality of prompt, now unicode aware
Diffstat (limited to 'sys/cmd/rc/rc.h')
-rw-r--r-- | sys/cmd/rc/rc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/cmd/rc/rc.h b/sys/cmd/rc/rc.h index 32fb639..83c39e9 100644 --- a/sys/cmd/rc/rc.h +++ b/sys/cmd/rc/rc.h @@ -172,10 +172,13 @@ void *emalloc(uintptr); void *erealloc(void*, uintptr); void efree(void*); -/* read.c */ +/* input.c */ int readline(char *); void enablevi(void); +void inithistory(void); +int addhistory(char *); + /* prompt.c */ void resetprompt(void); int prompt(ushort *); @@ -237,7 +240,7 @@ void background(Thread *, int); /* exec.c */ // XXX: odd place for this -int count(Word *); +int count(Word *); Word *makeword(char *str, Word *link); void freeword(Word *w); |