Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QUESTION WITH TERMPUTS

Status
Not open for further replies.

Volkmaniac

Technical User
Mar 19, 2003
104
US
Is there anyway I can specify where termputs places information on the terminal screen? I'm using ProComm and I want to place the read line directly after the >>. In other words, I want it to put the data exactly where the cursor is located. I tried using locate for the cursor and it didn't work.

proc main
string Line ; Line to write to screen.
integer therat = 1
if fopen 0 "S:\xxxxxxxxx\xxxxxx\test.txt" READ

while not feof 0 ; Loop while not end of f
fgets 0 Line ; Get line from file.

termputs therow 1 Line ; Put line from file onto
therow++ ; Increment row counter
endwhile

fclose 0 ; Close file opened for

else
errormsg "Couldn't open file!"
endif
endproc


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top