ze
Loading...
Searching...
No Matches
input.h
Go to the documentation of this file.
1
8#pragma once
9
10#include "ze.h"
11
17char* editorPrompt(char *prompt, void (*callback)(char *, int));
18
19void editorMoveCursor(char key);
20
21void editorProcessKeypress(void);
22
char * editorPrompt(char *prompt, void(*callback)(char *, int))
Display a prompt and capture input with optional incremental callback.
Definition input.c:38
void editorProcessKeypress(void)
Decode a keypress and execute the corresponding editor action.
Definition input.c:127
void editorMoveCursor(char key)
Move the cursor one step in the given direction, clamped to content.
Definition input.c:85
Core editor types, macros, and global state.