0

I'm using getline to grab a string to use in my program, but I don't need getline to print out the input user entered. I want it to be like that:

server returned: like so
_

actual result:

like so
server returned: like so
_

How do I make getline not to "mirror" the input? Thanks in advance.

K1tty
  • 13
  • 3
  • well, in my program `std::getline(std::cin, input)` returns an input that user entered – K1tty Jul 21 '20 at 21:50
  • 1
    @molbdnilo you're right, `getline` has nothing to do with displaying the entered text. But the link identified by ChrisMM shows platform-specific answers for at least 2 platforms. – Mark Ransom Jul 21 '20 at 21:56

0 Answers0