Table of Contents

CSRLIN

Returns, as an integer, the line number where the console cursor is at

Implemented by: GWBASIC, MSX, QBasic, VBDOS, FreeBASIC

With variations:

Also written as:

Usage

Found from later versions of Microsoft BASIC onwards, "CurSoR LINe" can be either implemented as a function (as in MSX BASIC or as a special variable (as in GWBASIC). Usage is the same: attributed to a numerical variable, it returns the integer number of the current vertical coordinate of the text cursor.

IF CSRLIN = 1 THEN PRINT "Top of screen"

The topmost line number is 1 in GWBASIC; its manual says that 25 is the maximum value and does not tell what happens if the screen has more lines, up to 43 in some special modes of the IBM-PC and compatibles.

Variations

Examples

Comments

Similar keywords

In other languages...

References