richpl / PyBasic

Simple interactive BASIC interpreter written in Python
GNU General Public License v3.0
170 stars 46 forks source link

2nd tab option #47

Closed RetiredWizard closed 3 years ago

RetiredWizard commented 3 years ago

I think this is the better solution...

brickbots commented 3 years ago

I like the dual behavior here... in print context and outside. I've not dug into enough of these basic programs to understand the 'canonical' behavior, and it probably varies a bit as it's pretty screen specific, but this seems like a useful bit of functionality!

RetiredWizard commented 3 years ago

I just fired up Chipmunk Basic and tested it out. Chipmunk gives an error if you try and use the TAB function in an assignment or conditional statement. So at least in the case of Chipmunk, this PR wouldn't break any vintage stuff :)