Python 3, 181 175 171171 162
a=0
s=lambda x:"a=%d"%(x!=-1and x!=256and x)
while 1:
print(">>")
for i in input(">>"):u,b,o=s(a+1),s(a*a),"print(a)";exec(dict(i=u,x=u,d=s(a-1),s=b,k=b,o=o,c=o).get(i,""))
This outputs a newline after theThis outputs a newline after the Not anymore!>>
, but the OP didn't say that wasn't allowed.
Thanks to >>GlitchMr
, but the OP didn't say that wasn't allowed.minitech
and golfer9338
!