File: screen_8h-source.html

package info (click to toggle)
iterm 0.5-3.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,208 kB
  • ctags: 1,934
  • sloc: sh: 12,139; ansic: 11,446; makefile: 240
file content (89 lines) | stat: -rw-r--r-- 6,423 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>screen.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3-rc2 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>screen.h</h1><a href="screen_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/* This software is subject to the terms of the Common Public License</span>
00002 <span class="comment">   You must accept the terms of this license to use this software.</span>
00003 <span class="comment"></span>
00004 <span class="comment">   Copyright (C) 2002, International Business Machines Corporation</span>
00005 <span class="comment">   and others.  All Rights Reserved.</span>
00006 <span class="comment"></span>
00007 <span class="comment">   Further information about Common Public License Version 0.5 is obtained</span>
00008 <span class="comment">   from url http://oss.software.ibm.com/developer/opensource/license-cpl.html</span>
00009 <span class="comment">*/</span>
00014 <span class="preprocessor">#ifndef __VTSCREEN_H__</span>
00015 <span class="preprocessor"></span><span class="preprocessor">#define __VTSCREEN_H__</span>
00016 <span class="preprocessor"></span>
<a name="l00017"></a><a class="code" href="screen_8h.html#a0">00017</a> <span class="preprocessor">#define UK_CHARSET 'A'</span>
00018 <span class="preprocessor"></span>
<a name="l00019"></a><a class="code" href="screen_8h.html#a1">00019</a> <span class="preprocessor">#define ASCII_CHARSET 'B'</span>
00020 <span class="preprocessor"></span>
<a name="l00021"></a><a class="code" href="screen_8h.html#a2">00021</a> <span class="preprocessor">#define SPECIAL_GRAPHICS '0'</span>
00022 <span class="preprocessor"></span>
00025 <span class="keyword">enum</span> {
00026     OFF,
00027     ON
00028 };
00029 
00036 <span class="keyword">enum</span> {
00037     MOUSE_OFF,
00038     X10_MOUSE,
00039     VT200_MOUSE
00040 };
00041 
00048 <span class="keyword">enum</span> {
00049     SELECTION_CHAR,
00050     SELECTION_WORD,
00051     SELECTION_LINE
00052 };
00053 
<a name="l00061"></a><a class="code" href="struct__VTScreenView.html">00061</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a>
00062 {
00063   <span class="keywordtype">void</span> *<a class="code" href="struct__VTScreenView.html#m0">object</a>;
00065   void (*draw_text)(<span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a> *view,int col, int row,
00066                     char *mbstring, int length,int width);
00077   void (*update_cursor_position)(<span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a> *view,int col, int row);
00085   void (*set_rendition)(<span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a> *view,
00086                         int bold, int blink,
00087                         int inverse, int underline,
00088                         int foreground, int background,
00089                         char charset);
00105   void (*clear_rect)(<span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a> *view,int s_col,
00106                      int s_row, int e_col, int e_row);
00115   void (*swap_video)(<span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a> *view);
00123   void (*ring)(<span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a> *view);
00129   void (*resize_request)(<span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a> *view, int cols, int rows);
00142   void (*notify_osc)(<span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a> *view, int type,
00143                      char *params, int n_params);
00159   void (*update_scrollbar)(<span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a> *view, int max,
00160                            int top, int shown);
00170   void (*scroll_view)(<span class="keyword">struct </span><a class="code" href="struct__VTScreenView.html">_VTScreenView</a> *view, int dest_row,
00171                       int src_row, int num_line); 
00180 } <a class="code" href="struct__VTScreenView.html">VTScreenView</a>;
<a name="l00183"></a><a class="code" href="screen_8h.html#a3">00183</a> <span class="preprocessor">#define VTScreenView_init(view) \</span>
00184 <span class="preprocessor">do \</span>
00185 <span class="preprocessor">{ \</span>
00186 <span class="preprocessor">  view-&gt;object = NULL; \</span>
00187 <span class="preprocessor">  view-&gt;draw_text = NULL; \</span>
00188 <span class="preprocessor">  view-&gt;clear_rect = NULL; \</span>
00189 <span class="preprocessor">  view-&gt;set_rendition = NULL; \</span>
00190 <span class="preprocessor">  view-&gt;swap_video = NULL; \</span>
00191 <span class="preprocessor">  view-&gt;resize_request = NULL; \</span>
00192 <span class="preprocessor">  view-&gt;update_cursor_position = NULL; \</span>
00193 <span class="preprocessor">  view-&gt;ring = NULL; \</span>
00194 <span class="preprocessor">  view-&gt;notify_osc = NULL; \</span>
00195 <span class="preprocessor">  view-&gt;update_scrollbar = NULL; \</span>
00196 <span class="preprocessor">  view-&gt;scroll_view = NULL; \</span>
00197 <span class="preprocessor">} while(0)</span>
00198 <span class="preprocessor"></span>
00203 <span class="preprocessor">#endif</span>
</pre></div><hr><address style="align: right;"><small>Generated on Sun Dec 29 16:55:32 2002 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.3-rc2 </small></address>
</body>
</html>