Supressing newline in an echo?

Raven434

Member
Hi,

I am not able to find a way in simple text file to supress a newline being added after an 'echo' command in a .txt file.

example:

echo Checking for widgets
inv widget

Gives an output of:
Checking for widgets

11 widget


I don't want that extra whitespace between the lines.

I would like no white space or even better a way to have it listed on the same line as the echo.

Thanks!
 

Raven434

Member
No.

I use:

echo kumquartz ; inv kumquartz
echo strawberyl ; inv strawberyl

I get:
kumquartz

kumquartz (8)
strawberyl

strawberyl (5)
 

Theraze

Active member
Well, the inv kumquartz shows what you're trying to echo... I think your best bet here is to blend ASH and CLI. If you're try to echo the inv line for kumquartz, should work with:
ashq string echoline = "kumquartz ("+item_amount($item[kumquartz])+")"; CLI_EXECUTE("echo "+echoline);
 
Top