# Cboy / CodeOS Documentation

**URL:** <https://forum.makecode.com/t/cboy-codeos-documentation/10693>\
**Category:** Collaboration\
**Created:** [November 1, 2021, 9:15pm UTC](https://forum.makecode.com/t/cboy-codeos-documentation/10693 "2021-11-01T21:15:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![E-EnerG-Gamecentral](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/e-energ-gamecentral/32/5353_2.png) [@E-EnerG-Gamecentral](https://forum.makecode.com/u/E-EnerG-Gamecentral)\
**Post date:** [November 1, 2021, 9:15pm UTC](https://forum.makecode.com/t/cboy-codeos-documentation/10693/1 "2021-11-01T21:15:12Z")

</div>

Small Updates added to Cboy / CodeOS to refine it’s data.

---

<div class="post-metadata">

**Author:** ![E-EnerG-Gamecentral](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/e-energ-gamecentral/32/5353_2.png) [@E-EnerG-Gamecentral](https://forum.makecode.com/u/E-EnerG-Gamecentral)\
**Post date:** [November 1, 2021, 9:46pm UTC](https://forum.makecode.com/t/cboy-codeos-documentation/10693/2 "2021-11-01T21:46:21Z")

</div>

Instead of copying and pasting the link, I will copy and paste the source code for y’all  
You guys can test it out (JavaScript) but you guys will need the Settings and Text Sprite Extentions in order for the OS to function properly.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/a29ca6f81ad6ed9732410fcb77ed64d596f27512.png)

```auto
function remainderstorage () {

    Remainder = 80 - blockSettings.list().length

    return Remainder

}

let Remainder = 0

let maintextSprite = textsprite.create("CodeOS v0.01")

maintextSprite.setPosition(77, 10)

let textSprite = textsprite.create("" + blockSettings.readNumber("Storage") + " settings ")

textSprite.setPosition(77, 20)

game.onUpdateInterval(50, function () {

    spriteutils.setConsoleOverlay(false)

    blockSettings.writeNumber("Storage", blockSettings.list().length)

    blockSettings.writeNumber("MaxStorageSpace", 80)

    blockSettings.writeNumber("HardwareManager", remainderstorage())

    console.log("" + blockSettings.readNumber("Storage") + " settings " + ("" + blockSettings.readNumber("HardwareManager") + " settings left"))

})

forever(function () {

    textSprite.setText("" + blockSettings.readNumber("Storage") + " settings ")

    textSprite.setPosition(80, 20)

    pause(1000)

    textSprite.setText("" + blockSettings.readNumber("HardwareManager") + " settings left")

    textSprite.setPosition(77, 20)

    pause(1000)

})

```
