Home
last modified time | relevance | path

Searched refs:sc_height (Results 1 – 15 of 15) sorted by relevance

/freebsd/contrib/less/
H A Dposition.c27 extern int sc_width, sc_height;
45 sindex = sc_height - 2; in position()
48 sindex = sc_height - 1; in position()
51 sindex = sc_height - shell_lines; in position()
54 sindex = (sc_height - 1) / 2; in position()
72 for (i = 1; i < sc_height; i++) in add_forw_pos()
75 table[sc_height - 1] = pos; in add_forw_pos()
88 for (i = sc_height - 1; i > 0; i--) in add_back_pos()
100 for (i = 0; i < sc_height; i++) in pos_clear()
111 if (sc_height <= table_size) in pos_init()
[all …]
H A Dforwback.c33 extern int sc_width, sc_height;
191 for (ln = 0; ln < sc_height-1; ++ln) in overlay_header()
245 do_repaint = (only_last && n > sc_height-1) || in forw()
246 (forw_scroll >= 0 && n > forw_scroll && n != sc_height-1); in forw()
249 if (top_scroll && n >= sc_height - 1 && pos != NULL_POSITION && pos != ch_length()) in forw()
328 if (!first_line && sc_height >= 3 && empty_lines(3, sc_height-1) && in forw()
401 do_repaint = (n > get_back_scroll() || (only_last && n > sc_height-1) || header_lines > 0); in back()
425 if (sc_height >= 3 && empty_lines(0, sc_height-3) && in back()
426 !empty_lines(sc_height-1, sc_height-1) && in back()
427 !empty_lines(sc_height-2, sc_height-2)) in back()
[all …]
H A Djump.c20 extern int sc_width, sc_height;
64 jump_loc(ch_zero(), sc_height-1); in jump_forw()
67 jump_loc(pos, sc_height-1); in jump_forw()
68 if (position(sc_height-1) != end_pos) in jump_forw()
87 jump_line_loc(end-1, sc_height-1); in jump_forw_buffered()
303 forw(sc_height-sindex+nline-1, bpos, TRUE, FALSE, FALSE, FALSE, 0); in jump_loc()
325 forw(sc_height-1, pos, TRUE, FALSE, FALSE, FALSE, sindex-nline); in jump_loc()
334 for (nline = sindex; nline < sc_height - 1; nline++) in jump_loc()
369 back(sc_height-1, pos, TRUE, FALSE, FALSE, FALSE); in jump_loc()
H A Dscreen.c159 extern int sc_height;
294 public int sc_width, sc_height; /* Height & width of screen */ variable
954 sc_height = sys_height; in scrsize()
956 sc_height = atoi(s); in scrsize()
959 sc_height = n; in scrsize()
964 sc_height = (height < 0) ? sc_height + height : height; in scrsize()
967 if (sc_height <= 0) in scrsize()
968 sc_height = DEF_SC_HEIGHT; in scrsize()
995 if (shell_lines >= sc_height) in screen_size_changed()
996 shell_lines = sc_height - 1; in screen_size_changed()
[all …]
H A Dsignal.c31 extern int sc_width, sc_height;
291 old_height = sc_height; in psignals()
293 if (sc_width != old_width || sc_height != old_height) in psignals()
H A Dprompt.c28 extern int sc_height;
196 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1) in curr_byte()
290 #define PAGE_NUM(linenum) ((((linenum) - 1) / (sc_height - header_lines - 1)) + 1) in protochar()
309 if (linenum > 0 && sc_height > header_lines + 1) in protochar()
H A Doptfunc.c36 extern int sc_height;
245 jump_sline = (int) muldiv(sc_height, jump_sline_fraction, NUM_FRAC_DENOM); in calc_jump_sline()
248 jump_sline += sc_height; in calc_jump_sline()
253 if (jump_sline >= sc_height) in calc_jump_sline()
254 jump_sline = sc_height - 1; in calc_jump_sline()
1454 return (sc_height - header_lines + swindow); in get_swindow()
H A Dlinenum.c68 extern int sc_height;
459 while (pos == NULL_POSITION && where >= 0 && where < sc_height) in currline()
H A Dmark.c15 extern int sc_height;
191 cmark(m, curr_ifile, pos, sc_height-1); in getmark()
H A Dsearch.c39 extern int sc_height;
299 for (sindex = TOP; sindex < TOP + sc_height-1; sindex++) in repaint_hilite()
366 for (sindex = TOP; sindex < TOP + sc_height-1; sindex++) in clear_attn()
1168 sindex = sc_height-1; /* BOTTOM_PLUS_ONE */ in search_pos()
1179 sindex = sc_height-1; /* BOTTOM_PLUS_ONE */ in search_pos()
1203 if (++sindex >= sc_height) in search_pos()
1540 size_t sheight = (size_t) (sc_height - sindex_from_sline(jump_sline)); in search_range()
H A Ddecode.c40 extern int sc_height;
711 if (y < sc_height-1 && y == last_click_y) in mouse_button_left()
733 if (!down && y < sc_height-1) in mouse_button_right()
H A Dline.c106 extern int sc_width, sc_height;
1971 for (sindex = TOP; sindex < sc_height-1; sindex++) in longest_line_width()
1974 for (; sindex < sc_height-1 && pos != NULL_POSITION; sindex++) in longest_line_width()
H A Dcommand.c28 extern int sc_height;
/freebsd/sys/powerpc/ofw/
H A Dofw_syscons.c276 if (OF_getproplen(node, "height") != sizeof(sc->sc_height) || in ofwfb_configure()
284 OF_getprop(node, "height", &sc->sc_height, sizeof(sc->sc_height)); in ofwfb_configure()
313 bus_space_map(sc->sc_tag, fb_phys, sc->sc_height * in ofwfb_configure()
327 sc->sc_stride*sc->sc_height) in ofwfb_configure()
394 vi->vi_height = sc->sc_height/sc->sc_font_height - 2*cborder; in ofwfb_init()
406 sc->sc_ymargin = (sc->sc_height - (vi->vi_height * vi->vi_cheight))/2; in ofwfb_init()
550 addr = (uint8_t *) sc->sc_addr + (sc->sc_height - sc->sc_ymargin)*sc->sc_stride; in ofwfb_set_border8()
560 for (i = 0; i < sc->sc_height - 2*sc->sc_xmargin; i++) { in ofwfb_set_border8()
643 end = (sc->sc_stride/4) * sc->sc_height; in ofwfb_blank_display8()
668 for (i = 0; i < (sc->sc_stride/4)*sc->sc_height; i++) in ofwfb_blank_display32()
[all …]
H A Dofw_syscons.h41 int sc_height; member