aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd.h
blob: e70cb8e69b36e448c2a029a1a33a807a01b9cd1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* The command vocabulary, shared by the headless driver and the control
 * socket, so a script written against one works against the other. */
#ifndef SL0PTTY_CMD_H
#define SL0PTTY_CMD_H

#include "app.h"

/* Execute one command line. Returns a freshly allocated reply (possibly an
 * empty string), or NULL if the command is unknown. Sets *quit for "quit". */
char *cmd_exec(app_t *a, screen_t *s, input_parser_t *in, const char *line,
               bool *quit);

#endif /* SL0PTTY_CMD_H */