문제

I'm implementing the game of life, using console output. So far it's looking good:

Before

However, when I make the width of the output larger than the with of the console, this happens:

After

Instead of letting the lines run offscreen, it inserts a newline. Is there a way to turn this off?

I'm on a small laptop, so changing the console width doesn't really help.

도움이 되었습니까?

해결책

I think you have to get and set the maximum length of the screen.

So you get the length.

If you need more space you can set the windows size :) Dont forget to set the BufferSize too

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top