esc

Externally Scriptable Editor

git clone git://mccd.space/esc

unix_utils.h (449B)

      1 #ifndef UNIX_UTILS_H
      2 #define UNIX_UTILS_H
      3 
      4 // Returns a heap-allocated string of the command chosen via $MENU.
      5 // Returns NULL if cancelled or failed.
      6 char* unix_select_command(void);
      7 
      8 // Pipes 'input' into 'command' and returns the captured stdout.
      9 // Uses memstreams for easy string building.
     10 char *unix_run_command(const char *command, const char *input);
     11 
     12 // Ignores output
     13 void unix_exec_command(const char *command, const char *input);
     14 #endif