Home
last modified time | relevance | path

Searched refs:win (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Ddisplay.c102 getyx(win->x_win, win->x_line, win->x_col);
104 wmove(win->x_win, win->x_line, win->x_col);
105 getyx(win->x_win, win->x_line, win->x_col);
135 getyx(win->x_win, win->x_line, win->x_col);
142 getyx(win->x_win, win->x_line, win->x_col);
195 getyx(win->x_win, win->x_line, win->x_col);
217 getyx(win->x_win, win->x_line, win->x_col);
229 getyx(win->x_win, win->x_line, win->x_col);
274 wmove(win->x_win, win->x_line, win->x_col);
276 wmove(win->x_win, (win->x_line + 1) % win->x_nlines, win->x_col);
[all …]
/illumos-gate/usr/src/ucblib/libcurses/
H A Dnewwin.c42 WINDOW *win; in newwin() local
60 free(win); in newwin()
66 free(win); in newwin()
69 win->_nextp = win; in newwin()
81 free(win); in newwin()
85 for (sp = win->_y[i]; sp < win->_y[i] + nc; ) in newwin()
180 win->_cury = win->_curx = 0; in makenew()
187 win->_scroll = win->_leave = FALSE; in makenew()
207 if (win->_begx + win->_maxx == COLS) { in _swflags_()
212 if (win->_maxy == LINES && win->_begy == 0) in _swflags_()
[all …]
H A Drefresh.c105 if (win->_firstch[wy] >= win->_ch_off) in wrefresh()
106 win->_firstch[wy] = win->_maxx + in wrefresh()
108 if (win->_lastch[wy] < win->_maxx + in wrefresh()
110 win->_lastch[wy] = win->_ch_off; in wrefresh()
121 domvcur(ly, lx, win->_cury, win->_curx); in wrefresh()
134 win->_cury = win->_curx = 0; in wrefresh()
137 win->_curx + win->_begx); in wrefresh()
160 wx = win->_firstch[wy] - win->_ch_off; in makech()
165 lch = win->_lastch[wy] - win->_ch_off; in makech()
260 ly = win->_begy+win->_cury; in makech()
[all …]
H A Daddch.c37 x = win->_curx; in waddch()
38 y = win->_cury; in waddch()
53 win->_lastch[y]); in waddch()
57 set_ch(win, y, x, c); in waddch()
58 win->_y[y][x++] = c; in waddch()
63 if (win->_scroll) { in waddch()
106 x += win->_ch_off; in set_ch()
108 win->_firstch[y] = win->_lastch[y] = (short)x; in set_ch()
115 win->_firstch[y], win->_lastch[y], in set_ch()
116 win->_firstch[y] - win->_ch_off, in set_ch()
[all …]
H A Dinsertln.c33 winsertln(WINDOW *win) in winsertln() argument
42 if (win->_orig == NULL) in winsertln()
43 temp = win->_y[win->_maxy - 1]; in winsertln()
44 for (y = win->_maxy - 1; y > win->_cury; --y) { in winsertln()
46 win->_y[y] = win->_y[y - 1]; in winsertln()
48 (void) memmove(win->_y[y], win->_y[y-1], win->_maxx); in winsertln()
49 (void) touchline(win, y, 0, win->_maxx - 1); in winsertln()
52 win->_y[y] = temp; in winsertln()
54 temp = win->_y[y]; in winsertln()
57 (void) touchline(win, y, 0, win->_maxx - 1); in winsertln()
[all …]
H A Ddeleteln.c33 wdeleteln(WINDOW *win) in wdeleteln() argument
42 temp = win->_y[win->_cury]; in wdeleteln()
43 for (y = win->_cury; y < win->_maxy - 1; y++) { in wdeleteln()
45 win->_y[y] = win->_y[y + 1]; in wdeleteln()
47 (void) memmove(win->_y[y], win->_y[y+1], win->_maxx); in wdeleteln()
48 (void) touchline(win, y, 0, win->_maxx - 1); in wdeleteln()
50 if (win->_orig == NULL) in wdeleteln()
51 win->_y[y] = temp; in wdeleteln()
53 temp = win->_y[y]; in wdeleteln()
56 (void) touchline(win, y, 0, win->_maxx - 1); in wdeleteln()
[all …]
H A Dmvwin.c36 if (by + win->_maxy > LINES || bx + win->_maxx > COLS) in mvwin()
38 dy = by - win->_begy; in mvwin()
39 dx = bx - win->_begx; in mvwin()
40 orig = win->_orig; in mvwin()
42 orig = win; in mvwin()
44 win->_begy += dy; in mvwin()
45 win->_begx += dx; in mvwin()
46 _swflags_(win); in mvwin()
47 win = win->_nextp; in mvwin()
56 _swflags_(win); in mvwin()
[all …]
H A Dtouchwin.c32 touchwin(WINDOW *win) in touchwin() argument
39 maxy = win->_maxy; in touchwin()
41 (void) touchline(win, y, 0, win->_maxx - 1); in touchwin()
55 win->_firstch[y], win->_lastch[y]); in touchline()
57 sx += win->_ch_off; in touchline()
58 ex += win->_ch_off; in touchline()
60 win->_firstch[y] = (short)sx; in touchline()
61 win->_lastch[y] = (short)ex; in touchline()
63 if (win->_firstch[y] > sx) in touchline()
65 if (win->_lastch[y] < ex) in touchline()
[all …]
H A Dinsch.c32 winsch(WINDOW *win, char c) in winsch() argument
37 end = &win->_y[win->_cury][win->_curx]; in winsch()
38 temp1 = &win->_y[win->_cury][win->_maxx - 1]; in winsch()
43 (void) touchline(win, win->_cury, win->_curx, win->_maxx - 1); in winsch()
44 if (win->_cury == LINES - 1 && win->_y[LINES-1][COLS-1] != ' ') in winsch()
45 if (win->_scroll) { in winsch()
46 (void) wrefresh(win); in winsch()
47 (void) scroll(win); in winsch()
48 win->_cury--; in winsch()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmakenew.c55 WINDOW *win; in _makenew() local
90 win->_lastch = win->_firstch + nlines; in _makenew()
92 win->_cury = win->_curx = 0; in _makenew()
103 win->_leave = win->_scroll = win->_use_idl = win->_use_keypad = in _makenew()
104 win->_notimeout = win->_immed = win->_sync = FALSE; in _makenew()
106 win->_ndescs = win->_tmarg = 0; in _makenew()
109 win->_delay = win->_parx = win->_pary = -1; in _makenew()
112 win->_parent = win->_padwin = (WINDOW *) NULL; in _makenew()
125 win->_index = 0; in _makenew()
126 win->_nbyte = -1; in _makenew()
[all …]
H A Dwaddch.c61 win->_immed = win->_sync = FALSE; in waddch()
91 win->_curx = x; in waddch()
117 x = win->_curx; in waddch()
118 y = win->_cury; in waddch()
132 x = win->_curx; in waddch()
139 if ((c = _WCHAR(win, c)|rawattrs) != win->_y[y][x]) { in waddch()
189 win->_firstch[y], win->_lastch[y]); in waddch()
194 win->_cury = y; in waddch()
195 win->_curx = x; in waddch()
199 if (win->_sync) in waddch()
[all …]
H A Dmbaddch.c49 wcp = win->_y[y]; in _mbclrch()
99 x = win->_curx; in _mbvalid()
100 wcp = win->_y[win->_cury]; in _mbvalid()
186 if (win->_index < win->_nbyte) in _mbaddch()
200 if ((win->_curx + len) > win->_maxx && in _mbaddch()
201 (win->_insmode || waddch(win, '\n') == ERR)) in _mbaddch()
204 y = win->_cury; in _mbaddch()
205 x = win->_curx; in _mbaddch()
248 if ((win->_curx += len) >= win->_maxx) { in _mbaddch()
249 if (y >= (win->_maxy-1) || y == win->_bmarg) { in _mbaddch()
[all …]
H A Dwinsdelln.c79 if ((win->_cury >= win->_tmarg) && (win->_cury <= win->_bmarg)) in winsdelln()
103 to = win->_cury; in winsdelln()
126 quick = ((win->_ndescs <= 0) && (win->_parent == NULL)); in winsdelln()
136 win->_y[to] = win->_y[fr]; in winsdelln()
183 win->_immed = win->_sync = FALSE; in winsdelln()
184 x = win->_curx; in winsdelln()
185 y = win->_cury; in winsdelln()
187 win->_curx = 0; in winsdelln()
208 if (win->_sync) in winsdelln()
209 wsyncup(win); in winsdelln()
[all …]
H A Dwinsnstr.c65 win->_nbyte = -1; in winsnstr()
74 endx = win->_curx; in winsnstr()
120 wcp = win->_y[cury] + win->_curx; in winsnstr()
129 win->_scroll = win->_sync; in winsnstr()
135 wcp = win->_y[cury] + win->_curx; in winsnstr()
139 (void) _mbclrch(win, cury, win->_curx); in winsnstr()
155 if (win->_firstch[cury] > win->_curx) in winsnstr()
156 win->_firstch[cury] = win->_curx; in winsnstr()
165 if (win->_sync) in winsnstr()
166 wsyncup(win); in winsnstr()
[all …]
H A Dwclrtobot.c58 win->_immed = win->_sync = FALSE; in wclrtobot()
62 if (cury >= win->_tmarg && cury <= win->_bmarg) in wclrtobot()
63 win->_cury = win->_bmarg; in wclrtobot()
65 win->_cury = win->_maxy - 1; in wclrtobot()
67 win->_curx = 0; in wclrtobot()
68 for (; win->_cury > cury; win->_cury--) in wclrtobot()
70 win->_curx = curx; in wclrtobot()
73 if (win == curscr) in wclrtobot()
79 if (win->_sync) in wclrtobot()
80 wsyncup(win); in wclrtobot()
[all …]
H A Dwaddnstr.c53 short maxx_1 = win->_maxx - 1, cury = win->_cury, in waddnstr()
54 curx = win->_curx; in waddnstr()
64 if (win == stdscr) in waddnstr()
73 win->_nbyte = -1; in waddnstr()
77 win->_immed = win->_sync = FALSE; in waddnstr()
86 curx = win->_curx; in waddnstr()
146 win->_curx = curx; in waddnstr()
150 win->_curx = curx; in waddnstr()
153 if (win->_sync) in waddnstr()
154 wsyncup(win); in waddnstr()
[all …]
H A Dwinsch.c53 short curx = win->_curx; in winsch()
62 win->_insmode = TRUE; in winsch()
70 win->_nbyte = -1; in winsch()
71 curx = win->_curx; in winsch()
79 if (cury >= (win->_maxy-1) || cury == win->_bmarg) in winsch()
82 win->_cury++; in winsch()
83 win->_curx = 0; in winsch()
122 win->_lastch[cury] = win->_maxx-1; in winsch()
126 if (win->_sync) in winsch()
127 wsyncup(win); in winsch()
[all …]
H A Dwscrl.c64 if (!win->_scroll || (win->_flags & _ISPAD)) in wscrl()
69 win->_immed = win->_sync = FALSE; in wscrl()
71 curx = win->_curx; cury = win->_cury; in wscrl()
73 if (cury >= win->_tmarg && cury <= win->_bmarg) in wscrl()
74 win->_cury = win->_tmarg; in wscrl()
76 win->_cury = 0; in wscrl()
79 win->_curx = curx; in wscrl()
80 win->_cury = cury; in wscrl()
84 if (win->_sync) in wscrl()
85 wsyncup(win); in wscrl()
[all …]
H A Dwclrtoeol.c53 int y = win->_cury; in wclrtoeol()
54 int x = win->_curx; in wclrtoeol()
59 if (win != curscr) { in wclrtoeol()
60 win->_nbyte = -1; in wclrtoeol()
66 x = win->_curx; in wclrtoeol()
79 memSset(&win->_y[y][x], win->_bkgd, maxx - x); in wclrtoeol()
80 maxx = win->_maxx; in wclrtoeol()
135 win->_firstch[y], win->_lastch[y], win->_firstch[y+1]); in wclrtoeol()
144 if (win->_sync) in wclrtoeol()
145 wsyncup(win); in wclrtoeol()
[all …]
H A Dwdelch.c53 wdelch(WINDOW *win) in wdelch() argument
57 int cury = win->_cury; in wdelch()
62 end = &win->_y[cury][win->_maxx - 1]; in wdelch()
67 win->_nbyte = -1; in wdelch()
70 win->_insmode = TRUE; in wdelch()
73 curx = win->_curx; in wdelch()
97 (*_y16update)(win, 1, win->_maxx - curx, cury, curx); in wdelch()
100 win->_lastch[cury] = win->_maxx - 1; in wdelch()
106 if (win->_sync) in wdelch()
107 wsyncup(win); in wdelch()
[all …]
H A Dgetwin.c55 WINDOW *win = NULL; in getwin() local
60 nelt = sizeof (WINDOW) - sizeof (win->_y) - sizeof (win->_parent) - in getwin()
61 sizeof (win->_parx) - sizeof (win->_pary) - in getwin()
62 sizeof (win->_ndescs) - sizeof (win->_delay) - in getwin()
71 if (_image(win) == ERR) { in getwin()
72 win = (WINDOW *) NULL; in getwin()
84 wcp = win->_y; in getwin()
91 if (win != NULL) in getwin()
92 (void) delwin(win); in getwin()
98 win->_use_idl = win->_use_keypad = FALSE; in getwin()
[all …]
H A Dwgetwstr.c72 savsync = win->_sync; in wgetnwstr()
73 savimmed = win->_immed; in wgetnwstr()
74 savleave = win->_leave; in wgetnwstr()
75 win->_immed = win->_sync = win->_leave = FALSE; in wgetnwstr()
76 (void) wrefresh(win); in wgetnwstr()
88 ch = wgetwch(win); in wgetnwstr()
155 win->_curx = 0; in wgetnwstr()
156 if (win->_cury + 1 > win->_bmarg) in wgetnwstr()
159 win->_cury++; in wgetnwstr()
161 win->_sync = savsync; in wgetnwstr()
[all …]
H A Dwgetstr.c87 savsync = win->_sync; in wgetnstr()
88 savimmed = win->_immed; in wgetnstr()
89 savleave = win->_leave; in wgetnstr()
90 win->_immed = win->_sync = win->_leave = FALSE; in wgetnstr()
91 (void) wrefresh(win); in wgetnstr()
103 ch = wgetch(win); in wgetnstr()
197 win->_curx = 0; in wgetnstr()
198 if (win->_cury + 1 > win->_bmarg) in wgetnstr()
201 win->_cury++; in wgetnstr()
203 win->_sync = savsync; in wgetnstr()
[all …]
H A Dwhline.c49 short cury = win->_cury, curx = win->_curx; in whline()
55 if (num_chars > win->_maxx - curx) in whline()
56 num_chars = win->_maxx - curx; in whline()
60 horch = _WCHAR(win, horch) | a; in whline()
62 if (curx < win->_firstch[cury]) in whline()
63 win->_firstch[cury] = curx; in whline()
65 win->_lastch[cury] = curx; in whline()
66 win->_flags |= _WINCHANGED; in whline()
68 if (win->_sync) in whline()
69 wsyncup(win); in whline()
[all …]
H A Dwbkgd.c64 if (nbkgd == win->_bkgd) in wbkgd()
83 win->_bkgd = nbkgd; in wbkgd()
93 win->_attrs = _ATTR((win->_attrs & ~obkgda) | nbkgda); in wbkgd()
95 win->_attrs = _ATTR((win->_attrs & in wbkgd()
99 win->_attrs = _ATTR((win->_attrs & ~obkgda) | nbkgda); in wbkgd()
101 maxx = win->_maxx - 1; in wbkgd()
102 begch = win->_firstch; in wbkgd()
103 endch = win->_lastch; in wbkgd()
123 if (win->_sync) in wbkgd()
124 wsyncup(win); in wbkgd()
[all …]

12345678910>>...12