N_COLS
int mouse_col = scr->mouse % N_COLS(dconf);
int mouse_row = scr->mouse / N_COLS(dconf);
scr->mouse = mouse_row * N_COLS(dconf) + mouse_col;
abs_end = N_COLS(dconf) * N_ROWS(dconf);
u_int mouse_col = scr->cpy_end % N_COLS(dconf);
u_int limit = current + (N_COLS(dconf) - mouse_col - 1);
u_int mouse_col = scr->mouse % N_COLS(dconf);
(N_COLS(dconf) - (scr->mouse % N_COLS(dconf)) - 1);
u_int limit = current - (scr->mouse % N_COLS(dconf));
u_int row = scr->mouse / N_COLS(dconf);
scr->cpy_start = row * N_COLS(dconf);
scr->cpy_end = scr->cpy_start + (N_COLS(dconf) - 1);
old_row = scr->cursor / N_COLS(dconf);
new_row = scr->mouse / N_COLS(dconf);
scr->cpy_end = new_row * N_COLS(dconf) + MAXCOL(dconf);
old_row = scr->cursor / N_COLS(dconf);
new_row = scr->mouse / N_COLS(dconf);
scr->cpy_start = new_row * N_COLS(dconf);
u_int buf_end = (N_COLS(dconf) + 1) * N_ROWS(dconf);
if (sel_cur % N_COLS(dconf) == MAXCOL(dconf)) {
#define WS_NCOLS(scr) N_COLS((scr)->scr_dconf)
#define MAXCOL(dconf) (N_COLS(dconf) - 1)
((scr)->sc->sc_accesscookie, (pos) / N_COLS((scr)->scr_dconf), \
(pos) % N_COLS((scr)->scr_dconf), cellp))
((dconf)->emulcookie, ((pos) / N_COLS(dconf)), \
((pos) % N_COLS(dconf)), (uc), (attr)))