Weird symbols

Hello! So I have a code that will ask you for input and then will show the input to the user using print().

But my problem is that the host needs to use double quotes (demo: puts "hello").

But when you say, for example puts "hello" and then you use your left or right arrow key to move around, it will give you some question mark. I tried it running in Terminal (Hyper) and it says those weird symbols. For example: ^[[C (Which is the right arrow key).

Is there any way to avoid that? Or in case, disable that?

Images:

Xcode:
Image

Hyper:
(Cant add more images so I wrote that)

HYPER: This is actually the right arrow: ^[[C

So I have a code that will ask you for input

What call does it use to ask for input?

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

Terms of Service

Privacy Policy

Cookie Policy