Lines Matching refs:w
55 wscrl(WINDOW *w, int n) in wscrl() argument
59 if (!(w->_flags & W_CAN_SCROLL)) in wscrl()
65 if (w->_parent) { in wscrl()
72 for (row = w->_top; row < w->_bottom; row++) { in wscrl()
73 if (row < w->_bottom - n) { in wscrl()
74 if (!w->_line[row+n][0]._f) { in wscrl()
79 (void) __m_cc_erase(w, row + n, in wscrl()
86 first = __m_cc_first(w, row + n, in wscrl()
87 w->_maxx - 1); in wscrl()
88 save = w->_line[row + n][first]; in wscrl()
89 (void) __m_cc_erase(w, row + n, in wscrl()
91 w->_line[row + n][first] = save; in wscrl()
92 (void) memcpy(w->_line[row], in wscrl()
93 w->_line[row + n], in wscrl()
94 sizeof (cchar_t) * w->_maxx); in wscrl()
96 (void) __m_cc_erase(w, row, 0, in wscrl()
97 w->_bottom -1, w->_maxx - 1); in wscrl()
111 start = w->_top; in wscrl()
112 finish = w->_top + n - 1; in wscrl()
113 to = w->_bottom; in wscrl()
115 start = w->_bottom + n; in wscrl()
116 finish = w->_bottom - 1; in wscrl()
117 to = w->_top; in wscrl()
121 (void) __m_cc_erase(w, start, 0, finish, w->_maxx - 1); in wscrl()
124 (void) __m_ptr_move((void **) w->_line, w->_maxy, in wscrl()
128 if ((w->_flags & W_FULL_WINDOW) && in wscrl()
129 w->_top == 0 && w->_bottom == w->_maxy) in wscrl()
130 w->_scroll += (short) n; in wscrl()
132 w->_scroll = 0; in wscrl()
134 (void) wtouchln(w, 0, w->_maxy, 1); in wscrl()
135 wtouchln_hard(w, 0, w->_maxy); in wscrl()
138 w->_flags |= W_FLUSH; in wscrl()
141 WSYNC(w); in wscrl()
143 return (WFLUSH(w)); in wscrl()