Problem with running program in VS2015 using f5

In my console based program, I have a title or banner, whatever you want to call it. It's basic ascii art.

When I run the program by hitting ctrl + f5, everything works just fine.
When I run the program by hitting JUST f5, the banner gets all messed up, like it's putting in line breaks where it shouldn't or something like that.

Any advice?
I'm not sure what you're suggesting...

Are you suggesting that the console width is changing in these different methods of launch? As far as I know, console width doesn't effect line breaks. Line breaks are achieved, as far as I know, by receiving a command to drop a line, not by reaching the width of the console.
Are you suggesting that the console width is changing in these different methods of launch?

Yes.


As far as I know, console width doesn't effect line breaks.

It doesn't. It does affect the.. uh.. width, though. Which, in turn, affects line wrapping (which kind of looks like line breaks.)
Try changing the width of the console window during a regular run. The text will wrap differently. It'll look like a line break, even if it actually isn't.

Which is just what the guy above me said. That's what I get for typing a response, leaving my computer open, and not refreshing to make sure someone else hadn't said the exact same thing.
Last edited on
Ok, I'll give it a shot. That seems so weird to me though still. So it isn't wrapping when I hit ctrl + f5 but it IS wrapping when I hit f5?

This seems strange but I'll look into it. Mainly it seems strange because the banner I mentioned isn't wider than the width of the console, so I don't see any reason it would wrap.
Last edited on
Ok so I don't yet have the problem sorted out, but I have it more or less solved.

You guys were right, it was a problem with word wrap. I didn't widen the console or turn off word wrap, but I did erase the spaces at the end of the banner and that fixed the issue.

Thanks fellas. Or perhaps ladies
Topic archived. No new replies allowed.