This commit is contained in:
2026-01-29 06:54:10 +01:00
parent 77885e73a9
commit 9b50561aa6
98 changed files with 6682 additions and 817 deletions
+17
View File
@@ -4,6 +4,23 @@
#include <stdbool.h>
typedef struct {
int pid;
char *output;
char *log_path;
bool is_running;
int exit_status;
bool timed_out;
} r_process_result_t;
char *r_bash_execute(const char *command, bool interactive, int timeout_seconds);
/**
* Advanced execution with async support.
* Always returns a result object that must be freed.
*/
r_process_result_t *r_bash_execute_ext(const char *command, int timeout_seconds, bool async);
void r_process_result_free(r_process_result_t *res);
#endif
+18
View File
@@ -0,0 +1,18 @@
// retoor <retoor@molodetz.nl>
#ifndef R_MARKDOWN_H
#define R_MARKDOWN_H
/**
* @brief Applies basic syntax highlighting to a string of code.
* @param code The code string to highlight.
*/
void highlight_code(const char *code);
/**
* @brief Parses a Markdown string and prints it to the console with ANSI color codes.
* @param markdown The raw Markdown string to parse.
*/
void parse_markdown_to_ansi(const char *markdown);
#endif