Files
Arthur Barraux ce94e9fb87
Build and Deploy Docs / build (push) Failing after 43s
permission files
2025-10-06 11:28:49 +02:00

39 lines
714 B
C

#ifndef INPUT_H_
#define INPUT_H_
#include "data.h"
#include "define.h"
#include "output.h"
#include "terminal.h"
#include "builtins.h"
#include <unistd.h>
// KEYS keycode
//
// ARROW_UP \x1b[A
// ARROW_DOWN \x1b[B
// ARROW_RIGHT \x1b[C
// ARROW_LEFT \x1b[D
// PAGE_UP \x1b[5~
// PAGE_DOWN \x1b[6~
// HOME \x1b[1~ || <esc>[7~ || <esc>[H || <esc>OH
// END \x1b[4~ || <esc>[8~ || <esc>[F || <esc>OF
// DELETE \x1b[3~
char *editorPrompt(char *prompt);
char *key_to_string(int key);
void editorMoveCursor(int key);
int executeKeyBind(char *key_sequence);
/**
* \fn void editorProcessKeypress()
* \brief Get the last key input and do the proper action.
*/
void editorProcessKeypress();
#endif // INPUT_H_