mirror of
https://github.com/zoriya/ash.git
synced 2026-05-31 01:55:56 +00:00
Creating a self insert function
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2020
|
||||
** ash
|
||||
** File description:
|
||||
** bindings
|
||||
*/
|
||||
|
||||
#include "shell.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
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[];
|
||||
|
||||
int self_insert_command(int key, buffer_t *command_buffer, env_t *env);
|
||||
Reference in New Issue
Block a user