Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/at.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ It can be used both as a [PRINT modifier](print#modifiers.md) and a [variable de

* [PRINT](print.md)
* [DIM](dim.md) - Variable Declarations
* [POS](pos.md)
* [CSRLIN](csrlin.md)
* [POS](library/pos.md)
* [CSRLIN](library/csrlin.md)
4 changes: 2 additions & 2 deletions docs/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Here are some alternative functions using faster integer and fixed output.
* [clearBox.bas](library/clearbox.md)
<br /> Sub to clear a subset of the screen - a window defined with a character box.

* [crslin.bas](csrlin.md)
* [crslin.bas](library/csrlin.md)
<br /> Function to get the current cursor vertical co-ordinate.

* [fastPlot.bas](library/fastplot.md)
Expand All @@ -58,7 +58,7 @@ instead of just character positions. (20% faster per character, but much larger
<br /> Function to mirror the bits in a byte - the basis of printing, say a left facing sprite,
if all you have are right facing graphics stored.

* [pos.bas](pos.md)
* [pos.bas](library/pos.md)
<br /> Function to get the current cursor horizontal co-ordinate.

* [windowPaint.bas](library/windowpaint.md)
Expand Down
35 changes: 35 additions & 0 deletions docs/library/attr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
##Requirements

ATTR is a library function to be included with the following command:

```
#include <attr.bas>
```

##Description
`ATTR(row, col)`

Returns the ATTR (color attribute) of the given screen coordinate at the given row and column.


##Sample usage

```
#include <attr.bas>

PRINT AT 9, 10;PAPER 4; "A"
LET s = ATTR$(9, 10)
PRINT AT 0, 0; "The attribute of screen position 9, 10 is "; s
```

##Remarks

* This function extends the one in Sinclair BASIC (and it's compatible with it) since it also allows rows 22 and 23.



##See also

* [ CSRLIN ](csrlin.md)
* [ POS](pos.md)
* [ AT ](../at.md)
2 changes: 1 addition & 1 deletion docs/csrlin.md → docs/library/csrlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ CSRLIN is a library function to be included with the following command:
##See also

* [ POS](pos.md)
* [ AT ](at.md)
* [ AT ](../at.md)
2 changes: 1 addition & 1 deletion docs/pos.md → docs/library/pos.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ POS is a library function to be included with the following directive:

##See also

* [ AT ](at.md)
* [ AT ](../at.md)
* [ CSRLIN](csrlin.md)
File renamed without changes.