summaryrefslogtreecommitdiff
path: root/src/user/include/libterm/readline.h
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-02-16 20:38:53 -0500
committerBenji Dial <benji6283@gmail.com>2021-02-16 20:38:53 -0500
commit47513bd32c256c4f35e3a8ced7d9fd7e15903530 (patch)
treecafdf75d52a954814726e07445063c41bb6599f9 /src/user/include/libterm/readline.h
parentbd7facc4b5f53481dc85a15ba123361b2758655b (diff)
downloadportland-os-47513bd32c256c4f35e3a8ced7d9fd7e15903530.tar.gz
terminal application with ipc, shift+pause state dumper, hello world for terminal, meminfo popup program
Diffstat (limited to 'src/user/include/libterm/readline.h')
-rw-r--r--src/user/include/libterm/readline.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/user/include/libterm/readline.h b/src/user/include/libterm/readline.h
new file mode 100644
index 0000000..b1d5b0a
--- /dev/null
+++ b/src/user/include/libterm/readline.h
@@ -0,0 +1,10 @@
+#ifndef LIBTERM_READLINE_H
+#define LIBTERM_READLINE_H
+
+#include <stdint.h>
+
+//returns length of string without null terminator
+//max_length doesn't include null terminator
+uint32_t read_line(char *sz, uint32_t max_length, const char *prompt);
+
+#endif \ No newline at end of file