1 /*
2  * Copyright (C) 2014 haru <uobikiemukot at gmail dot com>
3  * Copyright (C) 2014 Hayaki Saito <user@zuse.jp>
4  *
5  * This program 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 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program 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 program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 /* misc */
20 int sum(struct parm_t *parm);
21 
22 /* function for control character */
23 void bs(struct terminal *term);
24 void tab(struct terminal *term);
25 void nl(struct terminal *term);
26 void cr(struct terminal *term);
27 void enter_esc(struct terminal *term);
28 
29 /* function for escape sequence */
30 void save_state(struct terminal *term);
31 void restore_state(struct terminal *term);
32 void crnl(struct terminal *term);
33 void set_tabstop(struct terminal *term);
34 void reverse_nl(struct terminal *term);
35 void enter_csi(struct terminal *term);
36 void enter_osc(struct terminal *term);
37 void enter_dcs(struct terminal *term);
38 void ris(struct terminal *term);
39 
40 /* function for csi sequence */
41 void insert_blank(struct terminal *term, struct parm_t *parm);
42 void curs_up(struct terminal *term, struct parm_t *parm);
43 void curs_down(struct terminal *term, struct parm_t *parm);
44 void curs_forward(struct terminal *term, struct parm_t *parm);
45 void curs_back(struct terminal *term, struct parm_t *parm);
46 void curs_nl(struct terminal *term, struct parm_t *parm);
47 void curs_pl(struct terminal *term, struct parm_t *parm);
48 void curs_col(struct terminal *term, struct parm_t *parm);
49 void curs_pos(struct terminal *term, struct parm_t *parm);
50 void erase_display(struct terminal *term, struct parm_t *parm);
51 void erase_line(struct terminal *term, struct parm_t *parm);
52 void insert_line(struct terminal *term, struct parm_t *parm);
53 void delete_line(struct terminal *term, struct parm_t *parm);
54 void delete_char(struct terminal *term, struct parm_t *parm);
55 void erase_char(struct terminal *term, struct parm_t *parm);
56 void curs_line(struct terminal *term, struct parm_t *parm);
57 void set_attr(struct terminal *term, struct parm_t *parm);
58 void set_mode(struct terminal *term, struct parm_t *parm);
59 void reset_mode(struct terminal *term, struct parm_t *parm);
60 void set_margin(struct terminal *term, struct parm_t *parm);
61 void clear_tabstop(struct terminal *term, struct parm_t *parm);
62 
63 /* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */
64 /* vim: set expandtab ts=4 : */
65 /* EOF */
66