diff options
| author | 2024-09-23 12:08:03 -0400 | |
|---|---|---|
| committer | 2024-09-23 12:08:03 -0400 | |
| commit | e85cb6bc1028fc9aa53ce8ecdaa45b11f416fa89 (patch) | |
| tree | 49bce9b54d575120d6f34beeb4667b8f1bf0447c /src/lush.h | |
| parent | Merge pull request #2 from BanceDev/chaining-operators (diff) | |
implemented background process operator
Diffstat (limited to '')
| -rw-r--r-- | src/lush.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -20,10 +20,17 @@ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. #include <lua.h> +// 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 |
