I can't replicate your problem with going right after going left. I've attached my copy of FemtoBasic.spin
as a zip file in case something went wrong in the posting etc. The modifications I've made are in 2 places:
1) I've added a handful more constants for key codes (lines 46 through 52)
2) lines 204 through 270 contain the CON, DAT and PRI for the new getline method
The code is slightly modified from the original posted version:
1) using constants instead of numbers for key codes
2) using prebuild strings for cursor operations used more than once
3) now also understands the 'end' key (moves cursor to end of line)
Comments
I can't replicate your problem with going right after going left. I've attached my copy of FemtoBasic.spin
as a zip file in case something went wrong in the posting etc. The modifications I've made are in 2 places:
1) I've added a handful more constants for key codes (lines 46 through 52)
2) lines 204 through 270 contain the CON, DAT and PRI for the new getline method
The code is slightly modified from the original posted version:
1) using constants instead of numbers for key codes
2) using prebuild strings for cursor operations used more than once
3) now also understands the 'end' key (moves cursor to end of line)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
---
Jo