blob: fb11c9b38471d66a48bcc376b67656d335c8b6a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef KNOB_USER_H
#define KNOB_USER_H
#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);
//return value and max_length don't include null terminator
//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
|