Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/satellite4/shell/terminal.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue Mar 1 14:30:58 2005 UTC (19 years, 1 month ago) by orrisroot
Branch: MAIN
CVS Tags: RELEASE_4_2_3, RELEASE_4_2_2, HEAD
Changes since 1.1: +3 -1 lines
File MIME type: text/x-chdr
added cursor visible/invisible control.

1 /*
2 * Copyright (c) 2003-2005 RIKEN Japan, All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY RIKEN AND CONTRIBUTORS ``AS IS'' AND ANY
16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RIKEN OR CONTRIBUTORS BE
19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
25 * THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 /* $Id: terminal.h,v 1.1 2005/03/01 14:10:54 orrisroot Exp $ */
29
30 #ifndef WIN32
31
32 #ifndef __SL4_TERMINAL_H__
33 #define __SL4_TERMINAL_H__
34
35 #include <stdio.h>
36
37 #define SL4_KEYPAD_UP 0x0100
38 #define SL4_KEYPAD_DOWN 0x0200
39 #define SL4_KEYPAD_RIGHT 0x0300
40 #define SL4_KEYPAD_LEFT 0x0400
41 #define SL4_KEYPAD_HOME 0x0500
42 #define SL4_KEYPAD_END 0x0600
43
44 #define TTY_MODE_NORMAL 0
45 #define TTY_MODE_RAW 1
46 #define TTY_MODE_COOK 2
47 #define TTY_MODE_QUOTE 3
48
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52
53 int sl4_tty_setmode(int mode);
54 int sl4_term_init(FILE *fin, FILE *fout, FILE *ferr);
55 int sl4_term_quit();
56 int sl4_term_putc(int c);
57 int sl4_term_puts(const char *str);
58 int sl4_term_getc();
59 int sl4_term_keypad_getc();
60 char *sl4_term_gets(char *buf, int size);
61 int sl4_term_cursor_up(int y);
62 int sl4_term_cursor_down(int y);
63 int sl4_term_cursor_right(int x);
64 int sl4_term_cursor_left(int x);
65 int sl4_term_cursor_bol();
66 int sl4_term_cursor_newline();
67 int sl4_term_cursor_invisible();
68 int sl4_term_cursor_normal();
69 int sl4_term_bell();
70 int sl4_term_vbell();
71 int sl4_term_attr_normal();
72 int sl4_term_attr_bold();
73 int sl4_term_attr_underline();
74 int sl4_term_attr_reverse();
75 int sl4_term_clear_screen();
76 int sl4_term_clear_eol(int xpos);
77 int sl4_term_getmaxyx(int *y, int *x);
78
79 #ifdef __cplusplus
80 }
81 #endif
82
83 #endif /* __SL4_TERMINAL_H__ */
84
85 #endif /* WIN32 */

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26