Home
last modified time | relevance | path

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

12345

/original-bsd/usr.bin/talk/
H A Ddisplay.c56 getyx(win->x_win, win->x_line, win->x_col);
58 wmove(win->x_win, win->x_line, win->x_col);
59 getyx(win->x_win, win->x_line, win->x_col);
89 getyx(win->x_win, win->x_line, win->x_col);
97 getyx(win->x_win, win->x_line, win->x_col);
113 getyx(win->x_win, win->x_line, win->x_col);
120 getyx(win->x_win, win->x_line, win->x_col);
157 win->x_line = (win->x_line + 1) % win->x_nlines;
159 wmove(win->x_win, win->x_line, win->x_col);
161 wmove(win->x_win, (win->x_line + 1) % win->x_nlines, win->x_col);
[all …]
/original-bsd/old/talk/talk/
H A Ddisplay.c61 getyx(win->x_win, win->x_line, win->x_col);
63 wmove(win->x_win, win->x_line, win->x_col);
64 getyx(win->x_win, win->x_line, win->x_col);
94 getyx(win->x_win, win->x_line, win->x_col);
101 getyx(win->x_win, win->x_line, win->x_col);
117 getyx(win->x_win, win->x_line, win->x_col);
124 getyx(win->x_win, win->x_line, win->x_col);
164 win->x_line = (win->x_line + 1) % win->x_nlines;
166 wmove(win->x_win, win->x_line, win->x_col);
168 wmove(win->x_win, (win->x_line + 1) % win->x_nlines, win->x_col);
[all …]
/original-bsd/lib/libcurses/
H A Dnewwin.c43 win->nextp = win;
60 return (win);
91 for (lp = win->lspace, i = 0; i < win->maxy; i++, lp++)
107 win->ch_off = win->begx - orig->begx;
140 if ((win = malloc(sizeof(*win))) == NULL)
150 free(win);
154 free (win);
188 win->cury = win->curx = 0;
211 if (win->begx + win->maxx == COLS) {
213 if (win->begx == 0 && win->maxy == LINES && win->begy == 0)
[all …]
H A Dtouchwin.c20 WINDOW *win; in touchline()
32 touchwin(win) in touchwin() argument
40 maxy = win->maxy;
42 __touchline(win, y, 0, win->maxx - 1, 1);
48 __touchwin(win) in __touchwin() argument
56 maxy = win->maxy;
58 __touchline(win, y, 0, win->maxx - 1, 0);
71 *win->lines[y]->firstchp, *win->lines[y]->lastchp);
75 sx += win->ch_off;
76 ex += win->ch_off;
[all …]
H A Dinsertln.c21 winsertln(win) in winsertln() argument
22 register WINDOW *win; in winsertln()
31 if (win->orig == NULL)
32 temp = win->lines[win->maxy - 1];
33 for (y = win->maxy - 1; y > win->cury; --y) {
37 win->lines[y] = win->lines[y - 1];
42 __touchline(win, y, 0, win->maxx - 1, 0);
44 if (win->orig == NULL)
45 win->lines[y] = temp;
52 __touchline(win, y, 0, win->maxx - 1, 0);
[all …]
H A Ddeleteln.c21 wdeleteln(win) in wdeleteln() argument
22 register WINDOW *win; in wdeleteln()
30 temp = win->lines[win->cury];
31 for (y = win->cury; y < win->maxy - 1; y++) {
35 win->lines[y] = win->lines[y + 1];
40 __touchline(win, y, 0, win->maxx - 1, 0);
43 if (win->orig == NULL)
44 win->lines[y] = temp;
46 temp = win->lines[y];
52 __touchline(win, y, 0, win->maxx - 1, 0);
[all …]
H A Dmvwin.c19 mvwin(win, by, bx) in mvwin() argument
26 if (by + win->maxy > LINES || bx + win->maxx > COLS)
30 orig = win->orig;
32 orig = win;
34 win->begy += dy;
36 __swflags(win);
37 win = win->nextp;
44 win->begy = by;
45 win->begx = bx;
46 __swflags(win);
[all …]
H A Drefresh.c159 domvcur(ly, lx, win->cury, win->curx);
171 win->cury = win->curx = 0;
173 domvcur(ly, lx, win->cury + win->begy,
174 win->curx + win->begx);
175 curscr->cury = win->cury + win->begy;
176 curscr->curx = win->curx + win->begx;
343 win->begy + win->maxy - 1,
344 win->begx + win->maxx - 1);
346 ly = win->begy + win->maxy - 1;
347 lx = win->begx + win->maxx - 1;
[all …]
H A Dinsch.c21 winsch(win, ch) in winsch() argument
22 register WINDOW *win; in winsch()
28 end = &win->lines[win->cury]->line[win->curx];
29 temp1 = &win->lines[win->cury]->line[win->maxx - 1];
37 __touchline(win, win->cury, win->curx, win->maxx - 1, 0);
38 if (win->cury == LINES - 1 &&
40 win->lines[LINES -1]->line[COLS - 1].attr != 0))
41 if (win->flags & __SCROLLOK) {
42 wrefresh(win);
43 scroll(win);
[all …]
H A Daddbytes.c14 #define SYNCH_IN {y = win->cury; x = win->curx;}
15 #define SYNCH_OUT {win->cury = y; win->curx = x;}
23 register WINDOW *win; in __waddbytes()
53 lp = win->lines[y];
59 scroll(win);
61 lp = win->lines[y];
67 lp = win->lines[y];
79 y, x, *win->lines[y]->firstchp, *win->lines[y]->lastchp);
104 if (x == win->maxx - 1)
110 y, x, *win->lines[y]->firstchp, *win->lines[y]->lastchp);
[all …]
H A Dgetch.c19 wgetch(win) in wgetch() argument
20 register WINDOW *win; in wgetch()
24 if (!(win->flags & __SCROLLOK) && (win->flags & __FULLWIN)
25 && win->curx == win->maxx - 1 && win->cury == win->maxy - 1)
43 win->cury + win->begy, win->curx + win->begx, inp);
44 waddch(win, inp);
H A Dclrtoeol.c19 wclrtoeol(win) in wclrtoeol() argument
20 register WINDOW *win; in wclrtoeol()
25 y = win->cury;
26 x = win->curx;
28 if (y < win->maxy - 1) {
34 end = &win->lines[y]->line[win->maxx];
36 maxx = &win->lines[y]->line[x];
41 minx = sp - win->lines[y]->line;
47 minx, maxx - win->lines[y]->line, *win->lines[y]->firstchp,
48 *win->lines[y]->lastchp);
[all …]
H A Ddelwin.c21 delwin(win) in delwin() argument
22 register WINDOW *win; in delwin()
27 if (win->orig == NULL) {
32 free(win->lspace);
33 free(win->wspace);
34 free(win->lines);
35 wp = win->nextp;
36 while (wp != win) {
48 for (wp = win->nextp; wp->nextp != win; wp = wp->nextp)
50 wp->nextp = win->nextp;
[all …]
H A Ddelch.c21 wdelch(win) in wdelch() argument
22 register WINDOW *win; in wdelch()
26 end = &win->lines[win->cury]->line[win->maxx - 1];
27 temp1 = &win->lines[win->cury]->line[win->curx];
35 __touchline(win, win->cury, win->curx, win->maxx - 1, 0);
H A Dclrtobot.c19 wclrtobot(win) in wclrtobot() argument
20 register WINDOW *win; in wclrtobot()
25 if (win->lines[win->cury]->flags & __ISPASTEOL) {
26 starty = win->cury + 1;
29 starty = win->cury;
30 startx = win->curx;
32 for (y = starty; y < win->maxy; y++) {
34 end = &win->lines[y]->line[win->maxx];
35 for (sp = &win->lines[y]->line[startx]; sp < end; sp++)
39 minx = sp - win->lines[y]->line;
[all …]
H A Did_subwins.c22 register WINDOW *win; local
26 for (win = orig->nextp; win != orig; win = win->nextp) {
31 if (win->begy + win->maxy <= realy)
35 for (y = realy - win->begy; y < win->maxy; y++, oy++)
36 win->lines[y]->line =
37 &orig->lines[oy]->line[win->ch_off];
H A Dscroll.c19 scroll(win) in scroll() argument
20 register WINDOW *win; in scroll()
25 __CTRACE("scroll: (%0.2o)\n", win);
28 if (!(win->flags & __SCROLLOK))
31 getyx(win, oy, ox);
32 wmove(win, 0, 0);
33 wdeleteln(win);
34 wmove(win, oy, ox);
36 if (win == curscr) {
39 win->curx = 0;
H A Dbox.c20 box(win, vert, hor) in box() argument
21 register WINDOW *win; in box()
27 endx = win->maxx;
28 endy = win->maxy - 1;
29 fp = win->lines[0]->line;
30 lp = win->lines[endy]->line;
38 win->lines[i]->line[0].ch = vert;
39 win->lines[i]->line[endx].ch = vert;
40 win->lines[i]->line[0].attr &= ~__STANDOUT;
43 if (!(win->flags & __SCROLLOK) && (win->flags & __SCROLLWIN)) {
[all …]
H A Dmove.c19 wmove(win, y, x) in wmove() argument
20 register WINDOW *win; in wmove()
29 if (x >= win->maxx || y >= win->maxy)
31 win->curx = x;
32 win->lines[win->cury]->flags &= ~__ISPASTEOL;
33 win->cury = y;
34 win->lines[y]->flags &= ~__ISPASTEOL;
H A Dprintw.c63 wprintw(win, fmt, va_alist) in wprintw()
64 WINDOW *win; in wprintw()
77 ret = vwprintw(win, fmt, ap);
117 mvwprintw(win, y, x, fmt, va_alist) in mvwprintw()
118 register WINDOW *win; in mvwprintw()
132 if (wmove(win, y, x) != OK)
135 ret = vwprintw(win, fmt, ap);
149 register WINDOW *win; local
153 if (waddch(win, *buf++) == ERR)
163 vwprintw(win, fmt, ap) in vwprintw() argument
[all …]
H A Derase.c19 werase(win) in werase() argument
20 register WINDOW *win; in werase()
27 __CTRACE("werase: (%0.2o)\n", win);
29 for (y = 0; y < win->maxy; y++) {
31 start = win->lines[y]->line;
32 end = &start[win->maxx];
42 __touchline(win, y, minx, maxx - win->lines[y]->line,
H A Dstandout.c19 wstandout(win) in wstandout() argument
20 WINDOW *win; in wstandout()
27 win->flags |= __WSTANDOUT;
36 wstandend(win) in wstandend() argument
37 WINDOW *win; in wstandend()
39 win->flags &= ~__WSTANDOUT;
H A Dscanw.c56 wscanw(WINDOW *win, const char *fmt, ...) in wscanw() argument
58 wscanw(win, fmt, va_alist) in wscanw()
59 WINDOW *win; in wscanw()
72 ret = vwscanw(win, fmt, ap);
109 mvwscanw(register WINDOW * win, register int y, register int x, in mvwscanw() argument
112 mvwscanw(win, y, x, fmt, va_alist) in mvwscanw()
113 register WINDOW *win; in mvwscanw()
129 ret = vwscanw(win, fmt, ap);
139 vwscanw(win, fmt, ap) in vwscanw() argument
140 WINDOW *win; in vwscanw()
[all …]
/original-bsd/games/boggle/boggle/
H A Dhelp.c27 WINDOW *win; in help() local
32 win = newwin(0, 0, 0, 0); in help()
33 clearok(win, 1); in help()
49 wprintw(win, "%s", buf); in help()
55 wmove(win, nlines - 1, 0); in help()
56 wprintw(win, in help()
58 wrefresh(win); in help()
61 wclear(win); in help()
66 wmove(win, nlines - 1, 0); in help()
68 wrefresh(win); in help()
[all …]
/original-bsd/old/pcc/lint/llibs/
H A Dllib-lcurses40 box(win,vert,hor) WINDOW *win; int vert, hor; {}
41 delwin(win) WINDOW *win; {}
130 scroll(win) WINDOW *win; { return 0; }
135 wclear(win) WINDOW *win; { return 0; }
136 wclrtobot(win) WINDOW *win; { return 0; }
137 wclrtoeol(win) WINDOW *win; { return 0; }
138 wdeleteln(win) WINDOW *win; { return 0; }
139 werase(win) WINDOW *win; { return 0; }
140 wgetch(win) WINDOW *win; { return '0'; }
142 winsertln(win) WINDOW *win; { return 0; }
[all …]

12345