Lines Matching refs:show_pad_info
30 struct struct_pad_info show_pad_info;
53 show_pad_info.line=0;
54 show_pad_info.col=0;
55 show_pad_info.display_lines=LINES-TITLE_WIN_LINES-SHOW_WIN_LINES-COMMAND_WIN_LINES-2;
56 show_pad_info.display_cols=COLS;
57 show_pad_info.max_line=show_pad_info.display_lines-1;show_pad_info.max_col=show_pad_info.display_cols-1;
58 show_pad_info.disable_output=0;
109 current_page=show_pad_info.line/show_pad_info.display_lines+1;
110 if (show_pad_info.line%show_pad_info.display_lines)
112 total_pages=show_pad_info.max_line/show_pad_info.display_lines+1;
127 if (show_pad_info.disable_output)
130 if (show_pad_info.max_line < show_pad_info.display_lines-1) {
131 for (i=show_pad_info.max_line+1;i<show_pad_info.display_lines;i++) {
135 left=0;right=show_pad_info.display_cols-1;
136 top=TITLE_WIN_LINES+SHOW_WIN_LINES+1;bottom=top+show_pad_info.display_lines-1;
138 if (show_pad_info.line > show_pad_info.max_line-show_pad_info.display_lines+1)
139 show_pad_info.line=show_pad_info.max_line-show_pad_info.display_lines+1;
141 if (show_pad_info.line < 0)
142 show_pad_info.line=0;
145 prefresh (show_pad,show_pad_info.line,show_pad_info.col,top,left,show_pad_info.display_lines-1,show_pad_info.display_cols-1);
147 prefresh (show_pad,show_pad_info.line,show_pad_info.col,top,left,top+show_pad_info.display_lines-1,left+show_pad_info.display_cols-1);
216 show_pad_info.display_lines=LINES-TITLE_WIN_LINES-SHOW_WIN_LINES-COMMAND_WIN_LINES-2;
217 show_pad_info.display_cols=COLS;