From 43688fe7190d0350349d47727c3663421d5618dc Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Mon, 8 Nov 2021 08:46:56 -0800 Subject: feat(rc): added back functionality of prompt, now unicode aware --- sys/cmd/rc/rc.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/cmd/rc/rc.h') 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); -- cgit v1.2.1 From 7ea1cdb7d31f00024f5a1d124b42cd19a03b959a Mon Sep 17 00:00:00 2001 From: Nicholas Date: Wed, 10 Nov 2021 20:12:45 -0800 Subject: chore: libunicode -> libutf --- sys/cmd/rc/rc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/cmd/rc/rc.h') diff --git a/sys/cmd/rc/rc.h b/sys/cmd/rc/rc.h index 83c39e9..9b415fc 100644 --- a/sys/cmd/rc/rc.h +++ b/sys/cmd/rc/rc.h @@ -1,7 +1,7 @@ #include #include -#include +#include // ----------------------------------------------------------------------- // types -- cgit v1.2.1