Tizer1000
Tizer1000

Reputation: 934

Disable "Wrap text output on resize" from console screen buffer size settings programmatically (C)

I cant figure out how to disable wrapping with C code using window.h

Anyone know how to do this?

Thanks.

enter image description here

Upvotes: 0

Views: 2120

Answers (2)

Abolfazl Pourmohammad
Abolfazl Pourmohammad

Reputation: 21

This is not c++-related problem. It is related to your command prompt. If you are a windows user, right-click on command-prompt's title and choose properties and follow the picture below. enter image description here

Upvotes: 0

Swordfish
Swordfish

Reputation: 13144

Have a look at SetConsoleMode() and at the flags ENABLE_WRAP_AT_EOL_OUTPUT and DISABLE_NEWLINE_AUTO_RETURN.

Upvotes: 4

Related Questions