command.com echo command

BlitzMax Forums/BlitzMax Programming/command.com echo command

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Do you mean outputting text to a console? If so, just use the Print command:

Print "What is your name?"
Local tmpInput$ = Input("> ")
Print "Hello " + tmpInput
The print command outputs text to StandardIO (á la echo). Conversely, the input command returns input from the console.

Building untitled1
Executing:untitled1.exe
What is your name?
> Kev
Hello Kev

Process complete

When running your program from the IDE it will appear in the BlitzMax output tab, but when the EXE is run from Windows Explorer, the text appears in the console.