map_set_scroll_end()

Purpose

Confines scroll output

Old name

#define set_scroll_end map_set_scroll_end

Syntax

void map_set_scroll_end(line_nr)

Parameters

int line_nr

Number of lines to which scrolling is limited

Description

The map_set_scroll_end() function confines the display of scrolling maps to the specified number of lines of the screen.

The terminal manager may disregard this function if the map cannot be placed in the specified area without overlapping other maps, even after all possible scrolling has been done.

This function works well with simple 'teletype' displays.

You can use this function when you want to scroll maps between a header map and bottom map.

The function prn_print() also uses the scrolling limit set with this function.

The number of lines on the screen is determined by the structure element user.scrn_depth. The limit can be reset by the following calls:

map_set_scroll_end(user.scrn_depth);

or,

clear_screen();