Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

IIRC you could resize the standard cmd console easily, just type "mode 160" (or whatever width you want). I don't have a Windows installation around to check it, but maybe someone can confirm?


Yes, that is correct.

Display mode: MODE CON[:] [COLS=c] [LINES=n]


Hey!!! This works in PowerShell (non-ISE)!!!! Breaks my 112 column limit, despite a default setting of 200.

Added this to the end my Microsoft.PowerShell_profile.ps1 in my $HOME\Documents\WindowsPowerShell directory. (run: "notepad $PROFILE" in PS)

  MODE CON COLS=200
  Clear-Host (I get some artifacts)


All functionality used to reside in conhost.exe, no matter which character mode application you used (command prompt or PowerShell), which is why a lot of commands would work for both character modes. This is not how things work now (though a lot of commands are still shared, like “mode 120,120”) as conhost.exe now just decides if it should give you the legacy console host or the new one (with things like buffer improvements and word wrapping).

There are a lot of subtle improvements I think many are not aware of, like, if you paste in text with smart quotes they will be changed to straight quotes.


One of those subtle improvements is honoring a Ctrl-L. I like to be able to clear the screen like that.


TIL. Thanks very much.


You could also previously use the console properties page (accessible from the system menu of the console).


Huh. Apparently yes. I think I'm in love with you now. Carry on.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: