Ask coding questions

← Back to all posts
Text in Console Different Than Code
MisterMr

Can you explain why this is happening and how to fix this?

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
MisterMr
Comments
hotnewtop
Coder100

It is called line wrapping.
If the text is too long, the text wraps, regardless of word.

But the input function is also pretty glitchy, here is a fixed version:

MisterMr

@Coder100 thank you. ill try it out

MisterMr

@MisterMr It worked! Thank you!

MisterMr

@MisterMr Actually it didn't work. It worked at first but then it glitches and line wraps again.

MisterMr
Coder100

@MisterMr well yeah
you never even used my function

Coder100

what you are supposed to do is something like this:

@MisterMr

MisterMr

@Coder100 i did that

MisterMr

It works but when you press backspace, it deletes the line

MisterMr

@MisterMr Wait i fixed it

thank you