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