@name console
@inputs Keyboard Console:wirelink
@outputs 
@persist Address Nocursor

Console:writeCell((Address + 1),999)
if (~Keyboard & Keyboard != 127 & Keyboard != 0 & Keyboard != 9 & Keyboard != 154 & Keyboard != 20 & Keyboard != 19 & Keyboard != 18 & Keyboard != 17)
{
Console:writeCell(Address,Keyboard)
Address = Address + 2
}


if (~Keyboard & Keyboard == 127){
Address = Address - 2
Console:writeCell(Address,0)
}

if (~Keyboard & Keyboard == 18){
Address = Address + 60
}

if (~Keyboard & Keyboard == 17){
Address = Address - 60
}

if (~Keyboard & Keyboard == 19){
Address = Address - 2
}
if (~Keyboard & Keyboard == 20){
Address = Address + 2
}

if (~Keyboard & Keyboard == 9){
Nocursor = !Nocursor
}

if (~Keyboard & Keyboard == 158){
Console:writeCell(2041,1)
Address = 0}
if (Address < 0){Address = 0}
if (Address > 1078){Address = 1078}
if (Nocursor == 0){Console:writeCell((Address + 1),999000)}
Console:writeCell(1078,999)
