diff options
author | Benji Dial <benji6283@gmail.com> | 2020-09-20 14:50:12 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2020-09-20 14:50:12 -0400 |
commit | fadd46012c9974931add6c36e69636d3cbc6906f (patch) | |
tree | d1af6084772830074be18cf7a9dd93c2ec3d3f59 /src/user/include/knob/user.h | |
parent | de20d7430df08731d9108acb83e1234ba7f1fe16 (diff) | |
download | portland-os-fadd46012c9974931add6c36e69636d3cbc6906f.tar.gz |
history when getting line from user in knob
Diffstat (limited to 'src/user/include/knob/user.h')
-rw-r--r-- | src/user/include/knob/user.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/user/include/knob/user.h b/src/user/include/knob/user.h index cd7676c..fb11c9b 100644 --- a/src/user/include/knob/user.h +++ b/src/user/include/knob/user.h @@ -4,6 +4,8 @@ #include <stdint.h> #include <pland/syscall.h> +struct history; + char key_to_char(_key_code_t key) __attribute__ ((const)); void tell_user_sz(const char *sz); @@ -12,4 +14,9 @@ void tell_user_sz(const char *sz); //returns the real length of the string uint32_t ask_user_line_sz(char *sz, uint32_t max_length); +struct history *new_history(uint32_t max_entries); +void del_history(struct history *hs); + +uint32_t ask_user_line_sz_with_history(char *sz, uint32_t max_length, struct history *hs); + #endif
\ No newline at end of file |