Handling ctrl d as eof

This commit is contained in:
Anonymus Raccoon
2020-05-06 20:50:14 +02:00
parent 2b90136b3a
commit 37fb052694
6 changed files with 28 additions and 4 deletions
+4 -1
View File
@@ -9,6 +9,8 @@
#include "shell.h"
#define CTRL(c) ((c) & 0x1F)
typedef struct key_function
{
const char *name;
@@ -25,4 +27,5 @@ extern const key_function_t key_functions[];
extern const binding_t emacs_bindings[];
int self_insert_command(int key, buffer_t *buffer, env_t *env);
int newline_command(int key, buffer_t *buffer, env_t *env);
int newline_command(int key, buffer_t *buffer, env_t *env);
int eof_command(int key, buffer_t *buffer, env_t *env);