0
|
1 /*
|
|
2 * $Id: termio.c,v 1.2 2001/06/14 18:16:17 ura Exp $
|
|
3 */
|
|
4
|
|
5 /*
|
|
6 * FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
7 * This file is part of FreeWnn.
|
|
8 *
|
|
9 * Copyright Kyoto University Research Institute for Mathematical Sciences
|
|
10 * 1987, 1988, 1989, 1990, 1991, 1992
|
|
11 * Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
12 * Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
|
|
13 * Copyright 1991 by Massachusetts Institute of Technology
|
|
14 *
|
|
15 * Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
|
|
16 *
|
|
17 * This program is free software; you can redistribute it and/or modify
|
|
18 * it under the terms of the GNU General Public License as published by
|
|
19 * the Free Software Foundation; either version 2, or (at your option)
|
|
20 * any later version.
|
|
21 *
|
|
22 * This program is distributed in the hope that it will be useful,
|
|
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
25 * GNU General Public License for more details.
|
|
26 *
|
|
27 * You should have received a copy of the GNU General Public License
|
|
28 * along with GNU Emacs; see the file COPYING. If not, write to the
|
|
29 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
30 *
|
|
31 * Commentary:
|
|
32 *
|
|
33 * Change log:
|
|
34 *
|
|
35 * Last modified date: 8,Feb.1999
|
|
36 *
|
|
37 * Code:
|
|
38 *
|
|
39 */
|
|
40 /* Version 4.0
|
|
41 */
|
|
42 #include "commonhd.h"
|
|
43 #include "sdefine.h"
|
|
44 #ifdef XJUTIL
|
|
45 #include "xjutil.h"
|
|
46 #include "sxheader.h"
|
|
47 #include "xext.h"
|
|
48 #else /* XJUTIL */
|
|
49 #include "xim.h"
|
|
50 #include "sheader.h"
|
|
51 #include "ext.h"
|
|
52 #endif /* XJUTIL */
|
|
53
|
|
54 #ifndef XJUTIL
|
|
55 #define cur_text (cur_p->cur_xl)
|
|
56 #endif /* XJUTIL */
|
|
57
|
|
58 void
|
|
59 clr_end_screen ()
|
|
60 {
|
|
61 JWMline_clear (cur_text->currentcol);
|
|
62 }
|
|
63
|
|
64 void
|
|
65 throw_cur_raw (col)
|
|
66 int col;
|
|
67 {
|
|
68 JWcursor_move (col);
|
|
69 }
|
|
70
|
|
71 void
|
|
72 h_r_on_raw ()
|
|
73 {
|
|
74 cur_text->r_flag = 1;
|
|
75 }
|
|
76
|
|
77 void
|
|
78 h_r_off_raw ()
|
|
79 {
|
|
80 cur_text->r_flag = 0;
|
|
81 }
|
|
82
|
|
83 void
|
|
84 u_s_on_raw ()
|
|
85 {
|
|
86 cur_text->u_line_flag = 1;
|
|
87 }
|
|
88
|
|
89 void
|
|
90 u_s_off_raw ()
|
|
91 {
|
|
92 cur_text->u_line_flag = 0;
|
|
93 }
|
|
94
|
|
95 void
|
|
96 b_s_on_raw ()
|
|
97 {
|
|
98 cur_text->b_flag = 1;
|
|
99 }
|
|
100
|
|
101 void
|
|
102 b_s_off_raw ()
|
|
103 {
|
|
104 cur_text->b_flag = 0;
|
|
105 }
|
|
106
|
|
107 void
|
|
108 ring_bell ()
|
|
109 {
|
|
110 XBell (dpy, 0);
|
|
111 }
|
|
112
|
|
113 void
|
|
114 cursor_invisible_raw ()
|
|
115 {
|
|
116 JWcursor_invisible ();
|
|
117 }
|
|
118
|
|
119 void
|
|
120 cursor_normal_raw ()
|
|
121 {
|
|
122 cur_text->u_line_flag = cur_text->r_flag = 0;
|
|
123 JWcursor_visible ();
|
|
124 }
|