Lessons Learned

My drop-site for interesting snippets and tips. If it's useful to you as well, great!

Browse by Tags

Tagged Content List
  • Blog Post: Rehash: Playing with Window Size

    http://blogs.msdn.com/b/timid/archive/2011/06/23/playing-with-window-size.aspx gave the core magic for messing with the console window size. Since then, I’ve seen functions that allow the user to set it to arbitrary values, but I found myself wanting to grow and shrink the window size by some specified...
  • Blog Post: Nicely Wrapping a Line of text to STDOUT

    In case you didn't know, $host gives data about the scripting host, including the window containing the script's output. This in turn gives us the width of the window: $Host.UI.RawUI.WindowSize.Width From there, we can function Break-Line { # synopsis:: # [-help] # # Description...
Page 1 of 1 (2 items)