The function does not return to next line after printing the characters. If you want to add a newline character, use console.writeln() instead.
console.write(...)function
Writes to the console using console.stdout. Contrary to console.stdout:write(), console.write() can write more than one string, each string is separated with a space character.
Parameters
...
Strings to write to the console, separated by commas. If the argument is not a string, the function converts it internally using the tostring function.
Return value
The function returns no value.Example
--! luart-extensions
import console
-- prints to the console without returning to line,
-- so that the next characters entered will be printed just after
console.write("What's your name ? ")
local name = console.readln()
console.write("\nHi "..name.." !")