I have a console application. Sometimes, the display can be remote, so there's a proxy design pattern is used to create a virtual console class also defined. Next, I have some header configuration for the console, with SetCursor and WriteLine("Type R to read the configuration file."), etc. I'd like to write a DisplayHeader() method and pass in a reference to the console or vConsole, as is appropriate, but I can't use the Console class in this way. For now, all the header information is repeated, and it kind of stinks. (Like code-smell, like I'm doing something wrong but I'm too ignorant or trapped in my mindset that I can't see it.)
Anyone else ever try to make a proxy console for remoting before?
What I have tried:
I've tried dinking copious amounts of various distilled spirits and even a few hallucinogens to boost my imagination, I've tried reading up on the Console class, which can't be inherited, but honestly, I'm too ignorant to search google (though I've tried) in a way that produces meaningful results (that is, results that don't include proxy design pattern, Console Class, and how to send remote commands).