- Aug
- 2,300
- 111
Hi,
I'm using
I have a need to clear a section of the console screen. I have written a program to do so;
I have CMD.EXE running in a TC tab, and when I run my program as such;
The screen is cleared in the indicated area.
When I run it in a TCC window, it does not clear the indicated area. It does nothing. I only have one copy of SCROLL.EXE that I am running from the exact same directory.
Is there a setting in TC that I have to set in order for my program to work as it does in CMD.EXE?
Joe
I'm using
Code:
TCC 11.00.39 Windows XP [Version 5.1.2600]
TCC Build 39 Windows XP Build 2600 Service Pack 3
Code:
#COMPILE EXE
#DIM ALL
FUNCTION PBMAIN () AS LONG
LOCAL Direction$
LOCAL LinesToScroll&
LOCAL y1&, x1&, y2&, x2&
Direction$ = COMMAND$(1)
LinesToScroll& = VAL(COMMAND$(2))
y1& = VAL(COMMAND$(3))
x1& = VAL(COMMAND$(4))
y2& = VAL(COMMAND$(5))
x2& = VAL(COMMAND$(6))
SELECT CASE UCASE$(Direction$)
CASE "UP"
SCROLL UP LinesToScroll&, y1&, x1&, y2&, x2&
CASE "DOWN"
SCROLL DOWN LinesToScroll&, y1&, x1&, y2&, x2&
CASE "LEFT"
SCROLL LEFT LinesToScroll&, y1&, x1&, y2&, x2&
CASE "RIGHT"
SCROLL RIGHT LinesToScroll&, y1&, x1&, y2&, x2&
CASE ELSE
SCROLL DOWN LinesToScroll&, y1&, x1&, y2&, x2&
END SELECT
END FUNCTION
Code:
scroll up 16 10 5 20 80
When I run it in a TCC window, it does not clear the indicated area. It does nothing. I only have one copy of SCROLL.EXE that I am running from the exact same directory.
Is there a setting in TC that I have to set in order for my program to work as it does in CMD.EXE?
Joe