HomeSort by: relevance | last modified time | path
    Searched refs:LINES (Results 1 - 25 of 61) sorted by relevancy

1 2 3

  /src/games/battlestar/
fly.c 46 #define MIDR (LINES/2 - 1)
89 row = rnd(LINES - 3) + 1;
194 r = rnd(LINES - 3) + 1;
198 mvaddstr(LINES - 1 - 1, 21, "TORPEDOES FUEL TIME");
234 move(LINES - 1, 24);
236 for (n = LINES - 1 - 2; n >= MIDR + 1; n--) {
242 for (n = LINES - 1 - 2; n >= MIDR + 1; n--) {
259 if (row + dr <= LINES - 3 && row + dr > 0)
279 move(LINES - 1, 24);
281 move(LINES - 1, 42)
    [all...]
  /src/usr.bin/pr/
pr.h 49 #define LINES 66
  /src/games/colorbars/
colorbars.c 70 if (COLS < 45 || LINES < 10) {
90 labeloffsety = (LINES - 1 - labelwidth) / 2;
100 for (int line = 0; line < LINES - 1; line++)
114 mvprintw(LINES - 1, 0, "ANSI Color chart - Press any key to exit: ");
  /src/games/cribbage/
cribcur.h 46 # define MSG_Y (LINES - (Y_SCORE_SZ + 1))
  /src/games/hangman/
main.c 95 mvcur(0, COLS - 1, LINES - 1, 0);
  /src/lib/libcurses/
cr_put.c 52 * are done here as well as formatting lines (printing of control characters,
124 if (outline > LINES - 1) {
125 destline -= outline - (LINES - 1);
126 outline = LINES - 1;
129 if (destline >= LINES) {
131 destline = LINES - 1;
132 if (outline < LINES - 1) {
139 while (l >= LINES) {
286 k = (LINES - 1) - destline;
290 outline = LINES - 1
    [all...]
insch.c 131 if (win->cury == LINES - 1 &&
132 (win->alines[LINES - 1]->line[COLS - 1].ch != ' ' ||
133 win->alines[LINES - 1]->line[COLS - 1].attr != attr)) {
screen.c 77 old_screen->LINES = LINES;
94 LINES = new->LINES;
115 __CTRACE(__CTRACE_SCREEN, "set_term: LINES = %d, COLS = %d\n",
116 LINES, COLS);
229 __CTRACE(__CTRACE_SCREEN, "newterm: LINES = %d, COLS = %d\n",
230 LINES, COLS);
setterm.c 83 /* lines and cols will have been setup correctly by ti_setupterm(3). */
84 screen->LINES = t_lines(screen->term);
99 /* Set lines equal to 1. */
100 screen->LINES = 1;
121 LINES = screen->LINES;
127 "setterm: LINES = %d, COLS = %d, TABSIZE = %d\n",
128 LINES, COLS, TABSIZE);
245 LINES = screen->LINES;
    [all...]
resize.c 84 if (nlines > LINES)
85 nlines = LINES;
93 if (win->begy > LINES)
95 if (win->begy + nlines > LINES)
98 nlines += LINES - win->begy;
139 (nlines != _cursesi_screen->LINES ||
200 _cursesi_screen->LINES = nlines;
202 LINES = nlines;
205 /* tweak the flags now that we have updated the LINES and COLS */
305 * Point line pointers to line space, and lines themselves int
    [all...]
tstp.c 143 LINES = win.ws_row;
268 * If the application didn't update LINES and COLS,
276 if (win.ws_row != LINES) {
277 LINES = win.ws_row;
286 * We need to make local copies of LINES and COLS, otherwise we
289 nlines = LINES;
ripoffline.c 69 * Returns the number of ripped lines from the screen.
89 * Rips lines from the screen by creating a WINDOW per ripoffline call.
91 * this implementation allows for N lines if needed.
102 rbot = LINES;
136 * Called from resizeterm to ensure the ripped off lines are correctly
142 int rbot = screen->LINES, i, nlines, ret = OK;
165 * Displays the ripped off lines from initscr.
  /src/usr.bin/make/unit-tests/
directive-include-guard.mk 26 # test case and writes some lines of text to that file. That file is then
32 LINES.variable-ifndef= \
43 LINES.variable-ifndef-reuse= \
53 LINES.variable-ifndef-zero= \
63 LINES.variable-ifndef-one= \
69 # Comments and empty lines do not affect the multiple-inclusion guard.
71 LINES.comments= \
86 LINES.variable-if= \
97 LINES.variable-if-reuse= \
107 LINES.variable-if-triple-negation=
    [all...]
  /src/games/rain/
rain.c 63 static long lines; variable in typeref:typename:long
109 ypos[j] = random() % lines + 2;
116 if (is_term_resized(LINES, COLS)) {
117 resizeterm(LINES, COLS);
121 y = random() % lines + 2;
157 lines = LINES - 4;
159 if (lines == 0) lines++;
  /src/lib/libcurses/PSD.doc/
twinkle1.c 89 mvcur(0, COLS - 1, LINES - 1, 0);
125 case 0: /* alternating lines */
128 if (x >= LINES && y >= NCOLS)
twinkle2.c 125 mvcur(0, COLS - 1, LINES - 1, 0);
193 case 0: /* alternating lines */
196 if (x >= LINES && y >= NCOLS)
  /src/games/worm/
worm.c 129 if (COLS < 18 || LINES < 5) {
133 * anything much if fewer than 5 lines.
140 if ((start_len <= 0) || (start_len > ((LINES-3) * (COLS-2)) / 3))
143 tv = newwin(LINES-1, COLS-1, 1, 0);
178 head->y = LINES / 2;
236 if (visible_len == (LINES-3) * (COLS-3) - 1) {
244 bp->y = rnd(LINES-3)+ 1;
  /src/lib/libcurses/EXAMPLES/
view.c 18 * Thus, typing `5n' should scroll forward 5 lines in the file.
85 ," -n NUM specify maximum number of lines (default 1000)"
362 if ((lptr - my_lines) < (length - LINES + 1))
399 if (length > LINES)
400 lptr = my_lines + length - LINES + 1;
492 sprintf(temp, "%s (%3dx%3d) col %d ", tag, LINES, COLS, shift);
507 for (i = 1; i < LINES; i++) {
524 setscrreg(1, LINES - 1);
  /src/games/robots/
main.c 160 if (LINES != Y_SIZE || COLS != X_SIZE) {
161 if (LINES < Y_SIZE || COLS < X_SIZE) {
  /src/usr.bin/talk/
init_disp.c 76 my_win.x_nlines = LINES / 2;
82 his_win.x_nlines = LINES / 2 - 1;
io.c 122 move(LINES-1, 0);
  /src/games/cgram/
cgram.c 172 static struct stringarray lines; variable in typeref:struct:stringarray
185 return (int)lines.v[cursor_y].len;
198 return lines.v[cursor_y].s[cursor_x - 1];
208 return lines.v[cursor_y].s[cursor_x];
221 stringarray_add(&lines, &line);
235 stringarray_dup(&sollines, &lines);
237 extent_y = (int)lines.num;
239 extent_x = imax(extent_x, (int)lines.v[i].len);
285 for (char *p = lines.v[y].s; *p != '\0'; p++) {
302 for (int y = 0; y < (int)lines.num; y++)
    [all...]
  /src/tests/usr.bin/indent/
edge_cases.c 87 use enum qw(FNAME LINES TEXT PHYSLINES CHANGED BEFORE AFTER EXTRA);
90 my ($class, $fname, $lines, $text, $physlines) = @_;
91 my ($self) = ([$fname, $lines, $text, $physlines, false, [], [], {}]);
121 use enum qw (FNAME LINES TEXT PHYSLINES CHANGED BEFORE AFTER EXTRA);
125 my($class, $fname, $lines, $text, $physlines) = @_;
126 my($self) = ([$fname, $lines, $text, $physlines, false, [], [], {
139 // $ Preprocessing lines are mostly preserved.
  /src/games/sail/
player.h 69 #define SCROLL_B (LINES-1)
  /src/games/atc/
graphics.c 132 input = newwin(INPUT_LINES, COLS - PLANE_COLS, LINES - INPUT_LINES, 0);
133 credit = newwin(INPUT_LINES, PLANE_COLS, LINES - INPUT_LINES,
135 planes = newwin(LINES - INPUT_LINES, PLANE_COLS, 0, COLS - PLANE_COLS);
183 * Draw the lines first, since people like to draw lines
363 (void)wmove(planes, LINES - INPUT_LINES - 1, 0);

Completed in 138 milliseconds

1 2 3