Adding a redirection involving a pty

This commit is contained in:
Anonymus Raccoon
2020-05-06 19:52:07 +02:00
parent 6e36c66b60
commit 2b90136b3a
12 changed files with 167 additions and 50 deletions
+12 -4
View File
@@ -5,16 +5,24 @@
** bindings
*/
#include "shell.h"
#pragma once
#include "shell.h"
typedef struct key_function
{
const char *name;
int (*run)(int key, buffer_t *command_buffer, env_t *env);
} key_function_t;
extern const key_function_t key_functions[];
typedef struct binding
{
int key;
int (*func)(int key, buffer_t *command_buffer, env_t *env);
} binding_t;
int self_insert_command(int key, buffer_t *command_buffer, env_t *env);
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);