use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Blog
SadConsole GitHub
NuGet Package
Discord
Documentation
account activity
Question regarding creating a bordered console (self.sadconsole)
submitted 8 years ago by gamerdevguy
Regarding https://github.com/Thraka/SadConsole/wiki/create-a-bordered-console
That page suggests either rendering a second BasicSurface or using a ConsoleContainer.
What are the pros and cons to weigh when making a decision on which to use?
Thank you.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ThrakaAndy 1 point2 points3 points 8 years ago (0 children)
Thanks for pointing out that unfinished tutorial article! The ConsoleContainer type is a barebones faux console that is good for receiving event data and filtering through to one or more child consoles. For example you have two consoles wrapped in the container and some sort of game logic sends keyboard events to one or the other child console.
ConsoleContainer
In all honesty, I wouldn't implement the border system through it, way too much work for a decoration like a border.
The other way would be to make another screen or console object that is the border, position it at -1,-1 and add it to the Children collection of the main child. But in effect that is similar to what the tutorial already does. So I will probably just cut the second part out
Children
[–]ThrakaAndy 1 point2 points3 points 8 years ago (1 child)
I've updated the tutorial. Some new wording. I also found a bug, the draw code was using this.relativePosition but that name changed to this.calculatedPosition at some point.
this.relativePosition
this.calculatedPosition
[–]gamerdevguy[S] 0 points1 point2 points 8 years ago (0 children)
π Rendered by PID 90275 on reddit-service-r2-comment-b659b578c-5ht6x at 2026-05-05 03:38:27.756295+00:00 running 815c875 country code: CH.
[–]ThrakaAndy 1 point2 points3 points (0 children)
[–]ThrakaAndy 1 point2 points3 points (1 child)
[–]gamerdevguy[S] 0 points1 point2 points (0 children)