Print a string in the 25th line without new line [SOLVED]

New to FreeBASIC? Post your questions here.
Post Reply
exagonx
Posts: 315
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Print a string in the 25th line without new line [SOLVED]

Post by exagonx »

Hello guys, I was searching a way for print a string in the last line of the terminal/DOS text mode without give the return for new line.
When I try to do this, it automatically moves the entire text up, creating an infinite loop of one character.
I would like to print a character string in the last line of the terminal without it going to a new line.

Code: Select all

locate 25,1 : Print "hello"
locate 1,1: print "Top"
Last edited by exagonx on Jun 11, 2022 19:47, edited 1 time in total.
UEZ
Posts: 988
Joined: May 05, 2017 19:59
Location: Germany

Re: Print a string in the 25th line without new line

Post by UEZ »

When you add ";" to the end of the Print line

Code: Select all

locate 25,1 : Print "hello";
locate 1,1: print "Top";
Sleep
should do it.
exagonx
Posts: 315
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Re: Print a string in the 25th line without new line

Post by exagonx »

UEZ wrote: Jun 11, 2022 19:45 When you add ";" to the end of the Print line
Its work thank you
Post Reply