From e85cb6bc1028fc9aa53ce8ecdaa45b11f416fa89 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Mon, 23 Sep 2024 12:08:03 -0400 Subject: implemented background process operator --- src/lush.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lush.h') diff --git a/src/lush.h b/src/lush.h index 291a8dd..d6022b4 100644 --- a/src/lush.h +++ b/src/lush.h @@ -20,10 +20,17 @@ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. #include +// alias void lush_add_alias(const char *alias, const char *command); char *lush_get_alias(char *alias); char *lush_resolve_aliases(char *line); +// builtins +extern char *builtin_strs[]; +extern char *builtin_usage[]; + +extern int (*builtin_func[])(lua_State *, char ***); + int lush_cd(lua_State *L, char ***args); int lush_help(lua_State *L, char ***args); int lush_exit(lua_State *L, char ***args); @@ -47,4 +54,8 @@ void lush_format_prompt(const char *prompt_format); // format spec for the prompt extern char *prompt_format; +// history +char *lush_get_past_command(int pos); +void lush_push_history(const char* line); + #endif // LUSH_H -- cgit v1.2.3-59-g8ed1b