LPOS¶
Implementation Note¶
⚠️ Not Implemented: This feature requires line printer hardware and is not implemented in this Python-based interpreter.
Behavior: Function always returns 0
Why: Line printers are obsolete hardware. There is no printer print head to track in modern systems. The function exists for compatibility with old BASIC programs but cannot provide meaningful position data.
Alternative: Use POS to get the current console print position, or track position manually when writing to files with PRINT#.
Historical Reference: The documentation below is preserved from the original MBASIC 5.21 manual for historical reference.
Syntax¶
Versions: Extended, Disk
Description¶
Returns the current position of the line printer print head within the line printer buffer. Does not necessarily give the physical position of the print head. X is a dummy argument.
Example¶
See Also¶
- POS - Get current cursor position
- LPRINT - Print to line printer
- LPRINT USING - Formatted print to line printer
- WIDTH LPRINT - Set line printer width
- PRINT - Print to console
- PRINT# - Write to file