I am using OpenCobolIDE and just trying to play around with the external terminal to know how to use it for a later project but I am having a bit of trouble with trying to clear the terminal screen.
What I am trying to do is:
- display anything
- ask for an input
- clear the screen
- display something else
- and ask for another input
Here is the code I am struggling with:
WORKING-STORAGE SECTION.
01 WG300-NUMBER PICTURE 9.
PROCEDURE DIVISION.
MAIN-PROCEDURE SECTION.
DISPLAY "GIVE NUMBER".
ACCEPT WG300-NUMBER.
DISPLAY " " ERASE SCREEN.
DISPLAY "ADDED".
ACCEPT WG300-NUMBER.
STOP RUN.
The output is
C:\Users\Cyberman\bin
GIVE NUMBER
_
After giving a value then the next screen is
_DDED
This is overwriting what was displayed. I'm just not sure how to fix it. I have tried using
SCREEN SECTION.
01 CLEAR-SCREEN.
02 BLANK SCREEN.
With no luck.