A tiling window manager
1/*
2 * Copyright (C) 2000, 2001, 2002, 2003, 2004 Shawn Betts <sabetts@vcn.bc.ca>
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16 * Place, Suite 330, Boston, MA 02111-1307 USA.
17 */
18
19#ifndef _SDORFEHS_EDITOR_H
20#define _SDORFEHS_EDITOR_H 1
21
22#include "utf8.h"
23
24typedef enum edit_status {
25 EDIT_INSERT,
26 EDIT_DELETE,
27 EDIT_MOVE,
28 EDIT_COMPLETE,
29 EDIT_ABORT,
30 EDIT_DONE,
31 EDIT_NO_OP
32} edit_status;
33
34/* Input line functions */
35rp_input_line *input_line_new(char *prompt, char *preinput, int history_id,
36 enum completion_styles style, completion_fn fn);
37void input_line_free(rp_input_line * line);
38
39edit_status execute_edit_action(rp_input_line *line, KeySym ch,
40 unsigned int modifier, char *keysym_buf);
41
42#endif /* ! _SDORFEHS_EDITOR_H */