Skip to content

Commit c80d29c

Browse files
committed
Add ATTR file
1 parent 4d005ce commit c80d29c

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

docs/library/attr.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
##Requirements
2+
3+
ATTR is a library function to be included with the following command:
4+
5+
```
6+
#include <attr.bas>
7+
```
8+
9+
##Description
10+
`ATTR(row, col)`
11+
12+
Returns the ATTR (color attribute) of the given screen coordinate at the given row and column.
13+
14+
15+
##Sample usage
16+
17+
```
18+
#include <attr.bas>
19+
20+
PRINT AT 9, 10;PAPER 4; "A"
21+
LET s = ATTR$(9, 10)
22+
PRINT AT 0, 0; "The attribute of screen position 9, 10 is "; s
23+
```
24+
25+
##Remarks
26+
27+
* This function extends the one in Sinclair BASIC (and it's compatible with it) since it also allows rows 22 and 23.
28+
29+
30+
31+
##See also
32+
33+
* [ CSRLIN ](../csrlin.md)
34+
* [ POS](../pos.md)
35+
* [ AT ](../at.md)

0 commit comments

Comments
 (0)