CR command after DEBUG Comment
tucson.warren
Posts: 8
Help, I'm new to basic stamp programming and purchased the Parallax BS2 project board with instruction book. The instruction book does not address very well exactly what the protocall for using the CR command at the end of a DEBUG comment statement is. Sometimes in there example program the command is: ,CR,CR, or ,CR,CR or just a single ,CR. Why all the different configurations? Can anyone explaine how the various combinations od CR and comma's work. I would really appreciate any input I can get. Thank You for your help. Warren
Comments
Well, that isn't 100% correct. There is also LF, the linefeed. The DEBUG screen that comes up when you run a program, it automatically moves the cursor down one line and also back to the left edge of the screen. Some other terminal programs treat those as separate operations, and a program to deal with that kind of terminal has to include both CR and LF. Or else you have to find an option in the terminal program's configuration that will do both when either arrives.
This can be done to enhance readability when there is too much stuff to fit comfortably on one line or in order to visualize columnar alignment.
-Phil