question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Application.Begin` should set `toplevel`'s size to the console size

See original GitHub issue
		[Fact, AutoInitShutdown]
		public void Begin_Sets_Application_Top_To_Console_Size()
		{
			Assert.Equal (new Rect (0, 0, 80, 25), Application.Top.Frame);

			((FakeDriver)Application.Driver).SetBufferSize (5, 5);
			Application.Begin (Application.Top);
			// BUGBUG: v2 - This test should pass; it does not currently
			Assert.Equal (new Rect (0, 0, 5, 5), Application.Top.Frame);
		}

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
BDispcommented, Apr 4, 2023

Sorry I didn’t look in this. Yes make sense and is a great fix. Thanks.

	// View implements ISupportInitializeNotification which is derived from ISupportInitialize
	if (!toplevel.IsInitialized) {
                toplevel.Frame = new Rect (0, 0, Driver.Cols, Driver.Rows);
		toplevel.BeginInit ();
		toplevel.EndInit ();
	}
0reactions
tigcommented, Apr 16, 2023

This was fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to increase the size of the console window in C#? - ...
Right-click it, Properties, Layout tab. Adjust the Width property of the screen buffer and window size. ... But this is not maximising the...
Read more >
How to set size of mate-panel via command line (not ...
Try this: gsettings set org.mate.panel.toplevel:/org/mate/panel/toplevels/bottom/ size 45. That should set the value you want.
Read more >
Application with multiple screens #127 - gui-cs/Terminal.Gui
I've spent some time trying to do the same thing. You will need Terminal.Gui.dll built from source (or wait till NuGet refresh), ...
Read more >
Terminal/Console User Interface in .NET Core
This is easy, you can keep everything fixed, but nowadays terminal emulators and console sizes could vary and users customize them.
Read more >
Console.SetBufferSize(Int32, Int32) Method (System)
Sets the height and width of the screen buffer area to the specified values.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found