add vterm

This commit is contained in:
2022-01-06 23:47:26 +01:00
parent 73e8aa6fb7
commit f852fcb854
20 changed files with 5917 additions and 2 deletions

12
lisp/vterm/utf8.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef UTF8_H
#define UTF8_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
size_t codepoint_to_utf8(const uint32_t codepoint, unsigned char buffer[4]);
bool utf8_to_codepoint(const unsigned char buffer[4], const size_t len,
uint32_t *codepoint);
#endif /* UTF8_H */