Home
last modified time | relevance | path

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

12345678910>>...12

/titanic_50/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Ddisplay.c81 display(win, text, size) in display() argument
82 register xwin_t *win; in display()
93 xscroll(win, 0);
100 if (*text == win->cerase) {
101 wmove(win->x_win, win->x_line, max(--win->x_col, 0));
102 getyx(win->x_win, win->x_line, win->x_col);
103 waddch(win->x_win, ' ');
104 wmove(win->x_win, win->x_line, win->x_col);
105 getyx(win->x_win, win->x_line, win->x_col);
114 if (*text == win->werase) {
[all …]
/titanic_50/usr/src/ucblib/libcurses/
H A Dnewwin.c42 WINDOW *win; in newwin() local
56 if ((win = makenew(nl, nc, by, bx)) == NULL) in newwin()
58 if ((win->_firstch = SMALLOC(nl * sizeof (win->_firstch[0]))) == NULL) { in newwin()
59 free(win->_y); in newwin()
60 free(win); in newwin()
63 if ((win->_lastch = SMALLOC(nl * sizeof (win->_lastch[0]))) == NULL) { in newwin()
64 free(win->_y); in newwin()
65 free(win->_firstch); in newwin()
66 free(win); in newwin()
69 win->_nextp = win; in newwin()
[all …]
H A Drefresh.c48 wrefresh(WINDOW *win) in wrefresh() argument
68 _win = win; in wrefresh()
69 curwin = (win == curscr); in wrefresh()
71 if (win->_clear || curscr->_clear || curwin) { in wrefresh()
72 if ((win->_flags & _FULLWIN) || curscr->_clear) { in wrefresh()
82 (void) touchwin(win); in wrefresh()
84 win->_clear = FALSE; in wrefresh()
87 if (win->_curx != 0) in wrefresh()
93 fprintf(outf, "REFRESH(%0.2o): curwin = %d\n", win, curwin); in wrefresh()
96 for (wy = 0; wy < win->_maxy; wy++) { in wrefresh()
[all …]
H A Daddch.c32 waddch(WINDOW *win, char c) in waddch() argument
37 x = win->_curx; in waddch()
38 y = win->_cury; in waddch()
45 if (waddch(win, ' ') == ERR) in waddch()
52 " lastch = %d\n", y, x, win->_firstch[y], in waddch()
53 win->_lastch[y]); in waddch()
55 if (win->_flags & _STANDOUT) in waddch()
57 set_ch(win, y, x, c); in waddch()
58 win->_y[y][x++] = c; in waddch()
59 if (x >= win->_maxx) { in waddch()
[all …]
H A Dinsertln.c33 winsertln(WINDOW *win) in winsertln() argument
40 fprintf(outf, "INSERTLN(%0.2o)\n", win); in winsertln()
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()
45 if (win->_orig == NULL) 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()
51 if (win->_orig == NULL) in winsertln()
[all …]
H A Ddeleteln.c33 wdeleteln(WINDOW *win) in wdeleteln() argument
40 fprintf(outf, "DELETELN(%0.2o)\n", win); in wdeleteln()
42 temp = win->_y[win->_cury]; in wdeleteln()
43 for (y = win->_cury; y < win->_maxy - 1; y++) { in wdeleteln()
44 if (win->_orig == NULL) 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()
[all …]
H A Dmvwin.c31 mvwin(WINDOW *win, int by, int bx) in mvwin() argument
36 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()
[all …]
H A Dtouchwin.c32 touchwin(WINDOW *win) in touchwin() argument
37 fprintf(outf, "TOUCHWIN(%0.2o)\n", win); in touchwin()
39 maxy = win->_maxy; in touchwin()
41 (void) touchline(win, y, 0, win->_maxx - 1); in touchwin()
50 touchline(WINDOW *win, int y, int sx, int ex) in touchline() argument
53 fprintf(outf, "TOUCHLINE(%0.2o, %d, %d, %d)\n", win, y, sx, ex); in touchline()
55 win->_firstch[y], win->_lastch[y]); in touchline()
57 sx += win->_ch_off; in touchline()
58 ex += win->_ch_off; in touchline()
59 if (win->_firstch[y] == _NOCHANGE) { 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()
/titanic_50/usr/src/lib/libcurses/screen/
H A Dmakenew.c55 WINDOW *win; in _makenew() local
63 if ((win = (WINDOW *) malloc(sizeof (WINDOW))) == NULL) in _makenew()
65 if ((win->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == NULL) in _makenew()
68 if ((_y16update) && ((win->_y16 = (_ochtype **) in _makenew()
73 if ((win->_firstch = (short *) malloc(2 * nlines * sizeof (short))) in _makenew()
76 if ((_y16update) && (win->_y16 != NULL)) in _makenew()
77 free((char *) win->_y16); in _makenew()
80 free((char *) win->_y); in _makenew()
82 free((char *) win); in _makenew()
90 win->_lastch = win->_firstch + nlines; in _makenew()
[all …]
H A Dwaddch.c53 waddch(WINDOW *win, chtype c) in waddch() argument
55 short x = win->_curx; in waddch()
56 short y = win->_cury; in waddch()
60 bool savimmed = win->_immed; in waddch()
61 bool savsync = win->_sync; in waddch()
63 win->_immed = win->_sync = FALSE; in waddch()
73 win->_insmode = FALSE; in waddch()
74 if (_scrmax > 1 && _mbvalid(win) == ERR) in waddch()
77 rv = _mbaddch(win, rawattrs, RBYTE(rawc)); in waddch()
78 win->_immed = savimmed; in waddch()
[all …]
H A Dmbaddch.c43 _mbclrch(WINDOW *win, int y, int x) in _mbclrch() argument
49 wcp = win->_y[y]; in _mbclrch()
62 if (ep > wcp + win->_maxx) in _mbclrch()
67 if ((x = (int)(wp - wcp)) < win->_firstch[y]) in _mbclrch()
69 win->_firstch[y] = (short)x; in _mbclrch()
71 if ((x = (int)(ep - wcp) - 1) > win->_lastch[y]) in _mbclrch()
73 win->_lastch[y] = (short)x; in _mbclrch()
77 *wp = win->_bkgd; in _mbclrch()
91 _mbvalid(WINDOW *win) in _mbvalid() argument
99 x = win->_curx; in _mbvalid()
[all …]
H A Dwinsdelln.c55 winsdelln(WINDOW *win, int id) in winsdelln() argument
79 if ((win->_cury >= win->_tmarg) && (win->_cury <= win->_bmarg)) in winsdelln()
80 endy = win->_bmarg + 1; in winsdelln()
82 endy = win->_maxy; in winsdelln()
91 if ((num_lines = win->_cury - endy) > id) in winsdelln()
103 to = win->_cury; in winsdelln()
109 if ((num_lines = endy - win->_cury) < id) in winsdelln()
114 num_lines = fr - (win->_cury - 1); in winsdelln()
126 quick = ((win->_ndescs <= 0) && (win->_parent == NULL)); in winsdelln()
128 begch = win->_firstch; in winsdelln()
[all …]
H A Dwinsnstr.c56 winsnstr(WINDOW *win, char *tsp, int n) in winsnstr() argument
65 win->_nbyte = -1; in winsnstr()
66 win->_insmode = TRUE; in winsnstr()
67 if (_scrmax > 1 && _mbvalid(win) == ERR) in winsnstr()
74 endx = win->_curx; in winsnstr()
75 maxx = win->_maxx; in winsnstr()
107 if ((len = endx - win->_curx) <= 0) in winsnstr()
114 cury = win->_cury; in winsnstr()
116 if (_mbinsshift(win, len) == ERR) in winsnstr()
120 wcp = win->_y[cury] + win->_curx; in winsnstr()
[all …]
H A Dwclrtobot.c49 wclrtobot(WINDOW *win) in wclrtobot() argument
52 int cury = win->_cury; in wclrtobot()
53 short curx = win->_curx; in wclrtobot()
55 if (win != curscr) { in wclrtobot()
56 savimmed = win->_immed; in wclrtobot()
57 savsync = win->_sync; in wclrtobot()
58 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()
[all …]
H A Dwaddnstr.c50 waddnstr(WINDOW *win, char *tstr, int i) in waddnstr() argument
53 short maxx_1 = win->_maxx - 1, cury = win->_cury, in waddnstr()
54 curx = win->_curx; in waddnstr()
55 chtype **_y = win->_y; in waddnstr()
56 bool savimmed = win->_immed, in waddnstr()
57 savsync = win->_sync; in waddnstr()
64 if (win == stdscr) in waddnstr()
67 fprintf(outf, "waddnstr(%o, ", win); in waddnstr()
73 win->_nbyte = -1; in waddnstr()
74 win->_insmode = FALSE; in waddnstr()
[all …]
H A Dwinsch.c51 winsch(WINDOW *win, chtype c) in winsch() argument
53 short curx = win->_curx; in winsch()
54 int n, cury = win->_cury; in winsch()
62 win->_insmode = TRUE; in winsch()
63 if (_scrmax > 1 && (rv = _mbvalid(win)) == ERR) in winsch()
67 rv = _mbaddch(win, A_NORMAL, RBYTE(c)); in winsch()
70 win->_nbyte = -1; in winsch()
71 curx = win->_curx; in winsch()
75 return (waddch(win, c)); in winsch()
79 if (cury >= (win->_maxy-1) || cury == win->_bmarg) in winsch()
[all …]
H A Dwscrl.c49 wscrl(WINDOW *win, int n) in wscrl() argument
56 if (win == stdscr) in wscrl()
59 if (win == curscr) in wscrl()
62 fprintf(outf, "scroll(%x, %d)\n", win, n); in wscrl()
64 if (!win->_scroll || (win->_flags & _ISPAD)) in wscrl()
67 savimmed = win->_immed; in wscrl()
68 savsync = win->_sync; 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()
[all …]
H A Dwclrtoeol.c51 wclrtoeol(WINDOW *win) in wclrtoeol() argument
53 int y = win->_cury; in wclrtoeol()
54 int x = win->_curx; in wclrtoeol()
55 int maxx = win->_maxx; in wclrtoeol()
59 if (win != curscr) { in wclrtoeol()
60 win->_nbyte = -1; in wclrtoeol()
62 if (ISMBIT(win->_y[y][x])) { in wclrtoeol()
63 win->_insmode = TRUE; in wclrtoeol()
64 if (_mbvalid(win) == ERR) in wclrtoeol()
66 x = win->_curx; in wclrtoeol()
[all …]
H A Dwdelch.c53 wdelch(WINDOW *win) in wdelch() argument
57 int cury = win->_cury; in wdelch()
58 short curx = win->_curx; in wdelch()
62 end = &win->_y[cury][win->_maxx - 1]; in wdelch()
63 temp2 = &win->_y[cury][curx + 1]; in wdelch()
67 win->_nbyte = -1; in wdelch()
70 win->_insmode = TRUE; in wdelch()
71 if (_mbvalid(win) == ERR) in wdelch()
73 curx = win->_curx; in wdelch()
74 temp1 = &win->_y[cury][curx]; 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()
66 SEPARATE_READ) || ((win = _makenew(maxy = win_nums[2], maxx = in getwin()
71 if (_image(win) == ERR) { in getwin()
72 win = (WINDOW *) NULL; in getwin()
75 save_fch = win->_firstch; in getwin()
77 if (fread(&(win->_flags), 1, nelt, filep) != nelt) in getwin()
80 win->_firstch = save_fch; in getwin()
[all …]
H A Dwgetwstr.c42 wgetwstr(WINDOW *win, wchar_t *str) in wgetwstr() argument
44 return ((wgetnwstr(win, str, LENGTH) == ERR) ? ERR : OK); in wgetwstr()
48 wgetnwstr(WINDOW *win, wchar_t *str, int n) in wgetnwstr() argument
72 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()
84 rownum[cpos] = win->_cury; in wgetnwstr()
85 colnum[cpos] = win->_curx; in wgetnwstr()
[all …]
H A Dwgetstr.c52 wgetstr(WINDOW *win, char *str) in wgetstr() argument
54 return ((wgetnstr(win, str, LENGTH) == ERR) ? ERR : OK); in wgetstr()
58 wgetnstr(WINDOW *win, char *str, int n) in wgetnstr() argument
87 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()
99 rownum[cpos] = win->_cury; in wgetnstr()
100 colnum[cpos] = win->_curx; in wgetnstr()
[all …]
H A Dwhline.c47 whline(WINDOW *win, chtype horch, int num_chars) in whline() argument
49 short cury = win->_cury, curx = win->_curx; in whline()
50 chtype a, *fp = &(win->_y[cury][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()
61 memSset(fp, horch | win->_attrs, num_chars); in whline()
62 if (curx < win->_firstch[cury]) in whline()
63 win->_firstch[cury] = curx; in whline()
64 if ((curx += (num_chars - 1)) > win->_lastch[cury]) in whline()
[all …]
H A Dwbkgd.c50 wbkgd(WINDOW *win, chtype nbkgd) in wbkgd() argument
64 if (nbkgd == win->_bkgd) in wbkgd()
67 obkgdc = _CHAR(win->_bkgd); in wbkgd()
68 obkgda = _ATTR(win->_bkgd); in wbkgd()
83 win->_bkgd = nbkgd; in wbkgd()
91 if ((acolor = (win->_attrs & A_COLOR)) != 0) { 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()
[all …]

12345678910>>...12