prompt.h
This file
The walk stopped after 200 commits: lines older than 6a4c416 point at it.
changelog: add missing refDaniel Eklöfbefore adoption6a4c416
lines 1–34why, one step back1#pragma once23#include <stddef.h>4#include <stdbool.h>5#include <uchar.h>67struct prompt;8struct wayland;9struct prompt *prompt_init(10 const char32_t *prompt_text, const char32_t *placeholder,11 const char32_t *text);12void prompt_destroy(struct prompt *prompt);1314void prompt_insert_chars(struct prompt *prompt, const char *text, size_t len);1516const char32_t *prompt_prompt(const struct prompt *prompt);17const char32_t *prompt_placeholder(const struct prompt *prompt);18const char32_t *prompt_text(const struct prompt *prompt);19size_t prompt_cursor(const struct prompt *prompt);2021bool prompt_cursor_home(struct prompt *prompt);22bool prompt_cursor_end(struct prompt *prompt);23bool prompt_cursor_next_char(struct prompt *prompt);24bool prompt_cursor_prev_char(struct prompt *prompt);25bool prompt_cursor_prev_word(struct prompt *prompt);26bool prompt_cursor_next_word(struct prompt *prompt);2728bool prompt_erase_all(struct prompt *prompt);29bool prompt_erase_next_char(struct prompt *prompt);30bool prompt_erase_prev_char(struct prompt *prompt);31bool prompt_erase_next_word(struct prompt *prompt);32bool prompt_erase_prev_word(struct prompt *prompt);33bool prompt_erase_after_cursor(struct prompt *prompt);34bool prompt_erase_before_cursor(struct prompt *prompt);