Searched refs:win (Results 1 - 25 of 211) sorted by path

123456789

/freebsd-9.3-release/bin/ls/
H A Dls.c157 struct winsize win; local
173 else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) != -1 &&
174 win.ws_col > 0)
175 termwidth = win.ws_col;
/freebsd-9.3-release/bin/stty/
H A Dkey.c137 print(&ip->t, &ip->win, ip->ldisc, BSD);
159 ip->win.ws_col = atoi(ip->arg);
189 print(&ip->t, &ip->win, ip->ldisc, BSD);
253 ip->win.ws_row = atoi(ip->arg);
276 (void)printf("%d %d\n", ip->win.ws_row, ip->win.ws_col);
H A Dstty.c101 if (ioctl(i.fd, TIOCGWINSZ, &i.win) < 0)
113 print(&i.t, &i.win, i.ldisc, fmt);
116 gprint(&i.t, &i.win, i.ldisc);
152 if (i.wset && ioctl(i.fd, TIOCSWINSZ, &i.win) < 0)
H A Dstty.h44 struct winsize win; /* window info */ member in struct:info
/freebsd-9.3-release/contrib/binutils/bfd/
H A Delflink.c10963 goto win;
10971 win:
/freebsd-9.3-release/contrib/dialog/
H A Darrows.c34 #define add_acs(win, code) wadd_wch(win, W ## code)
36 #define add_acs(win, code) waddch(win, dlg_boxchar(code))
71 dlg_draw_helpline(WINDOW *win, bool decorations) argument
77 && (bottom = getmaxy(win) - 1) > 0) {
81 int avail = (getmaxx(win) - other - 2);
85 getyx(win, cur_y, cur_x);
87 (void) wmove(win, bottom, other + (avail - limit) / 2);
88 waddch(win, '[');
97 dlg_draw_arrows2(WINDOW *win, int top_arrow, int bottom_arrow, int x, int top, int bottom, chtype attr, chtype borderattr) argument
154 dlg_draw_scrollbar(WINDOW *win, long first_data, long this_data, long next_data, long total_data, int left, int right, int top, int bottom, chtype attr, chtype borderattr) argument
244 dlg_draw_arrows(WINDOW *win, int top_arrow, int bottom_arrow, int x, int top, int bottom) argument
[all...]
H A Dbuttons.c93 print_button(WINDOW *win, char *label, int y, int x, int selected) argument
106 (void) wmove(win, y, x);
107 wattrset(win, selected
110 (void) waddstr(win, "<");
111 wattrset(win, label_attr);
123 wattrset(win, key_attr);
130 wattrset(win, key_attr);
135 wattrset(win, label_attr);
139 waddnstr(win, label + first, last - first);
141 wattrset(win, selecte
248 dlg_draw_buttons(WINDOW *win, int y, int x, const char **labels, int selected, int vertical, int limit) argument
[all...]
H A Dchecklist.c44 print_arrows(WINDOW *win, argument
52 dlg_draw_scrollbar(win,
70 print_item(WINDOW *win, argument
76 chtype save = dlg_get_attrs(win);
84 wattrset(win, menubox_attr);
85 (void) wmove(win, choice, 0);
87 (void) waddch(win, ' ');
89 (void) wmove(win, choice, check_x);
90 wattrset(win, selected ? check_selected_attr : check_attr);
91 (void) wprintw(win,
[all...]
H A Ddialog.h223 #define getbegyx(win,y,x) (y = (win)?(win)->_begy:ERR, x = (win)?(win)->_begx:ERR)
228 #define getmaxyx(win,y,x) (y = (win)?(win)->_maxy:ERR, x = (win)?(win)
373 WINDOW *win; member in struct:_dlg_callback
[all...]
H A Ddlg_keys.c31 WINDOW *win; /* window on which widget gets input */ variable
44 dlg_register_window(WINDOW *win, const char *name, DLG_KEYS_BINDING * binding) argument
49 if (p->win == win && !strcmp(p->name, name)) {
56 p->win = win;
68 * definitions, depending on whether 'win' is null.
71 key_is_bound(WINDOW *win, const char *name, int curses_key, int function_key) argument
76 if (p->win == win
101 dlg_register_buttons(WINDOW *win, const char *name, const char **buttons) argument
153 dlg_unregister_window(WINDOW *win) argument
189 dlg_lookup_key(WINDOW *win, int curses_key, int *fkey) argument
[all...]
H A Deditbox.c134 display_one(WINDOW *win, argument
144 dlg_show_string(win,
152 getmaxx(win),
163 display_all(WINDOW *win, argument
170 int limit = getmaxy(win);
173 dlg_attr_clear(win, getmaxy(win), getmaxx(win), dialog_attr);
177 if (!display_one(win, list[row],
H A Dformbox.c55 in_window(WINDOW *win, int scrollamt, int y) argument
57 return (y >= scrollamt && y - scrollamt < getmaxy(win));
61 ok_move(WINDOW *win, int scrollamt, int y, int x) argument
63 return in_window(win, scrollamt, y)
64 && (wmove(win, y - scrollamt, x) != ERR);
68 move_past(WINDOW *win, int y, int x) argument
70 if (wmove(win, y, x) == ERR)
71 wmove(win, y, getmaxx(win) - 1);
78 print_item(WINDOW *win, DIALOG_FORMITE argument
135 print_form(WINDOW *win, DIALOG_FORMITEM * item, int total, int scrollamt, int choice) argument
195 tab_next(WINDOW *win, DIALOG_FORMITEM item[], int item_no, int stepsize, int *choice, int *scrollamt) argument
260 scroll_next(WINDOW *win, DIALOG_FORMITEM item[], int stepsize, int *choice, int *scrollamt) argument
[all...]
H A Dfselect.c75 WINDOW *win; /* this window */ member in struct:__anon928
90 init_list(LIST * list, WINDOW *par, WINDOW *win, int mousex) argument
93 list->win = win;
100 dlg_mouse_mkbigregion(getbegy(win), getbegx(win),
101 getmaxy(win), getmaxx(win),
137 init_list(list, list->par, list->win, list->mousex);
162 int high = getmaxy(list->win);
[all...]
H A Dguage.c120 WINDOW *dialog = obj->obj.win;
310 obj->obj.win = dialog;
366 ch = dlg_getc(obj->obj.win, &fkey);
H A Dinputstr.c675 dlg_show_string(WINDOW *win, argument
685 x_last = MIN(x_last + x_base, getmaxx(win)) - x_base;
689 (void) wmove(win, y_base, x_base);
690 wrefresh(win);
703 wattrset(win, attr);
704 (void) wmove(win, y_base, x_base);
711 waddch(win, '*');
715 waddch(win, ' ');
717 waddch(win, ch);
726 waddch(win, ' ');
[all...]
H A Dmenubox.c52 print_arrows(WINDOW *win, argument
60 dlg_draw_scrollbar(win,
77 print_tag(WINDOW *win, argument
97 (void) wmove(win, my_y, tag_x);
98 wattrset(win, selected ? tag_key_selected_attr : tag_key_attr);
100 (void) waddnstr(win, item->name, prefix);
102 wattrset(win, selected ? tag_selected_attr : tag_attr);
106 (void) waddnstr(win, item->name + indx[1], indx[limit] - indx[1]);
114 print_item(WINDOW *win, argument
120 chtype save = dlg_get_attrs(win);
186 input_menu_edit(WINDOW *win, DIALOG_LISTITEM * items, int choice, char **resultp) argument
[all...]
H A Dmixedgauge.c109 WINDOW *win = dlg->dialog; local
125 if (win) {
129 if (win != 0)
130 getyx(win, last_y, last_x);
142 (void) wmove(win, y, 2 * MARGIN);
143 dlg_print_text(win, dlg->list[item].name, lm, &attr);
145 (void) wmove(win, y, lm);
146 (void) waddch(win, '[');
147 (void) wmove(win, y, lm + (cells - (int) strlen(status)) / 2);
149 (void) wmove(win,
187 mydraw_mixed_box(WINDOW *win, int y, int x, int height, int width, chtype boxchar, chtype borderchar) argument
[all...]
H A Dmousewget.c28 mouse_wgetch(WINDOW *win, int *fkey, bool ignore_errs) argument
35 key = dlg_getc(win, fkey);
82 dlg_mouse_wgetch(WINDOW *win, int *fkey) argument
84 return mouse_wgetch(win, fkey, TRUE);
88 dlg_mouse_wgetch_nowait(WINDOW *win, int *fkey) argument
90 return mouse_wgetch(win, fkey, FALSE);
H A Dprogressbox.c87 print_line(MY_OBJ * obj, WINDOW *win, int row, int width) argument
92 (void) wmove(win, row, 0); /* move cursor to correct line */
93 (void) waddch(win, ' ');
95 (void) waddnstr(win, line, MIN((int) strlen(line), width - 2));
98 waddstr(win, line);
101 getyx(win, y, x);
104 (void) waddch(win, ' ');
225 obj->obj.win = dialog;
H A Dtailbox.c84 print_line(MY_OBJ * obj, WINDOW *win, int row, int width) argument
89 (void) wmove(win, row, 0); /* move cursor to correct line */
90 (void) waddch(win, ' ');
92 (void) waddnstr(win, line, MIN((int) strlen(line), width - 2));
95 waddstr(win, line);
98 getyx(win, y, x);
101 (void) waddch(win, ' ');
183 int high = getmaxy(obj->obj.win) - (2 * MARGIN + (obj->obj.bg_task ? 1 : 3));
196 getyx(obj->obj.win, cur_y, cur_x);
202 (void) wmove(obj->obj.win, cur_
[all...]
H A Dtextbox.c423 print_position(MY_OBJ * obj, WINDOW *win, int height, int width) argument
435 dlg_draw_scrollbar(win,
H A Dtrace.c52 dlg_trace_win(WINDOW *win) argument
57 int rc = getmaxy(win);
58 int cc = getmaxx(win);
62 rc, cc, getbegy(win), getbegx(win));
64 getyx(win, y, x);
68 ch = mvwinch(win, j, k) & (A_CHARTEXT | A_ALTCHARSET);
79 wmove(win, y, x);
H A Dui_getc.c71 wtimeout(p->win, WTIMEOUT_VAL);
99 dlg_del_window(p->win);
126 handle_inputs(WINDOW *win) argument
134 getyx(win, cur_y, cur_x);
148 (void) wmove(win, cur_y, cur_x); /* Restore cursor position */
149 wrefresh(win);
246 dlg_raise_window(WINDOW *win) argument
248 touchwin(win);
249 wmove(win, getcury(win), getcur
306 really_getch(WINDOW *win, int *fkey) argument
398 dlg_getc(WINDOW *win, int *fkey) argument
[all...]
H A Dutil.c153 dlg_attr_clear(WINDOW *win, int height, int width, chtype attr) argument
157 wattrset(win, attr);
159 (void) wmove(win, i, 0);
161 (void) waddch(win, ' ');
163 (void) touchwin(win);
426 dlg_get_attrs(WINDOW *win) argument
430 result = (chtype) getattrs(win);
434 wattr_get(win, &my_result, &my_pair, NULL);
476 define_color(WINDOW *win, int foreground) argument
478 chtype attrs = dlg_get_attrs(win);
563 dlg_print_text(WINDOW *win, const char *txt, int cols, chtype *attr) argument
674 dlg_print_line(WINDOW *win, chtype *attr, const char *prompt, int lm, int rm, int *x) argument
787 justify_text(WINDOW *win, const char *prompt, int limit_y, int limit_x, int *high, int *wide) argument
855 dlg_print_autowrap(WINDOW *win, const char *prompt, int height, int width) argument
872 dlg_print_scrolled(WINDOW *win, const char *prompt, int offset, int height, int width, int pauseopt) argument
1257 dlg_get_cell_attrs(WINDOW *win) argument
1294 dlg_draw_box(WINDOW *win, int y, int x, int height, int width, chtype boxchar, chtype borderchar) argument
1327 find_window(WINDOW *win) argument
1352 in_window(WINDOW *win, int y, int x) argument
1439 WINDOW *win = dw->shadow; local
1537 dlg_draw_shadow(WINDOW *win, int y, int x, int height, int width) argument
1832 dlg_draw_title(WINDOW *win, const char *title) argument
1847 dlg_draw_bottom_box(WINDOW *win) argument
1870 dlg_del_window(WINDOW *win) argument
1933 WINDOW *win; local
1960 dlg_move_window(WINDOW *win, int height, int width, int y, int x) argument
1992 WINDOW *win; local
2186 dlg_set_focus(WINDOW *parent, WINDOW *win) argument
2435 getbegx(WINDOW *win) argument
2442 getbegy(WINDOW *win) argument
2452 getcurx(WINDOW *win) argument
2459 getcury(WINDOW *win) argument
2469 getmaxx(WINDOW *win) argument
2476 getmaxy(WINDOW *win) argument
2486 getparx(WINDOW *win) argument
2493 getpary(WINDOW *win) argument
[all...]
/freebsd-9.3-release/contrib/gcc/
H A Dc-typeck.c3174 int win = lvalue_p (ref);
3176 if (!win)
3179 return win;
3158 int win = lvalue_p (ref); local

Completed in 381 milliseconds

123456789