9 ms·
Btw did anyone noticed that in windows 10 you can resize cmd.exe to more than 80 characters width! When I first saw it I almost cried.
by dvh 10y ago
Btw did anyone noticed that in windows 10 you can resize cmd.exe to more than 80 characters width! When I first saw it I almost cried.
- rhapsodic 10y agoI've been able to do that in versions of Windows going back as far as I can remember.
- cmdrfred 10y agoThey made the option easier to find.
- herbst 10y agoCorrect me if i am wrong, but all i remember is you could edit the width somewhere in the options. But there was no way to change the width _on the fly_ (assuming thats something it does now)
- beagle3 10y agoOlder versions could resize the window with a drag, but the underlying buffer required a menu option, which was very awkward. In Win10, you can resize the buffer with a drag as well.
- ihalip 10y agoI don't remember ever not having that feature, so it must be around ever since XP. Right click window -> Properties -> Layout.
- sapphire_tomb 10y agoOP means you can drag the window wider - no need to alter properties anywhere ;)
- krylon 10y agoMy work laptop still runs Windows 7 - and will for the foreseeable future - but that is one of the things that make me curious about Windows 10. It is, of course, easy to ridicule Microsoft for how long it took them to change this, but I think better late than never. (On older versions of Windows, ConEmu[1] does that, too, but it's third-party software, of course. It also supports tabs!) [1] https://conemu.github.io/ https://conemu.github.io/
- yitchelle 10y agoSince conemu is mentioned, I'll chimed in with cmder[1]. It builds ontop of conemu and has git-for-windows integrated as well. [1] - http://cmder.net/ http://cmder.net/
- aq3cn 10y agocmder developer also says: > If you have trouble with anything I am happy to help. But you will have much better chances to find solutions on the pages of the upstream projects. Those are: Console emulator ~ Conemu (https://conemu.github.io/) Cmd.exe enhancements ~ clink (https://mridgers.github.io/clink/) Unix tools on windows ~ git for windows (https://git-for-windows.github.io/)
- krylon 10y agoThank you very much! I'll give that a try!
- herbst 10y agoSeriously? I wonder how they managed to do that, i am sure that required a whole engineer team for a whole month!
- minikites 10y agohttps://technet.microsoft.com/en-us/library/dn167709.aspx https://technet.microsoft.com/en-us/library/dn167709.aspx > Every idea for a feature starts out with an imaginary deficit of -100 points. That means it has to demonstrate a significant net-positive effect on the product as a whole in order to emerge as being truly worthy of consideration.
- herbst 10y agoThat is actually pretty interesting, thanks for linking! I still dont understand how this was not "fixed" years ago, sure some config windows have fixed widths because it makes sense, but something as a terminal obviously needs the ability to grow (or shrink), especially after they introduced sticky windows and people actually used "tiling"
- to3m 10y agoThe idea that the console screen is an MxN matrix is pretty embedded in the API... it's not a MDA display adapter metaphor, not a Unix-style typewriter. I'm guessing they just felt they had bigger fish to fry. (Everybody I know that uses the console window a lot has always just set the window to 120x9999 or 160x9999 or whatever and forgotten about it. It's one of those things that's obviously kind of lame, but after a while you just forget about it.)
- pmoleri 10y agoAnd you can use Ctrl+C Ctrl+V :) If you upgraded from a previous Windows you need to disable legacy mode.
- eumoria 10y agoalso CTRL+V pastes by default now, but yea you're no longer locked into half the screen by default. I wonder why that's been like that for so long? Must be some reason...
- Already__Taken 10y agoConsole GUI applications. Pretty much any tweak to conhost ever and they'd implode. I don't know what's changed now but they've rolled that policy away. Maybe virtualization?
- Someone 10y agoThey may have decided that the number of people running console programs with a GUI is low enough now. I don't know whether it still was necessary, but the removal of support for 16-bit applications from 64-bit Windows 7 will not have hurt there.
- deviate_X 10y agoLol you could always have done this by setting the command prompt properties -> since at least 3.51 ;)
- erikbye 10y agoDrag-resize (affecting buffer, as well) is nice, finally. And you can change opacity in properties, making your window transparent. What I really like though: you can now use Shift + arrow keys to select text and C-c/C-p to copy/paste.
- Senji 10y agoIf you're going to use CMD/PS on windows you might go whole hog and install ConEmu. Then load it up with Cygwin, and DosBox. ConEmu can even integrate stuff like Putty.
- josteink 10y ago> ConEmu can even integrate stuff like Putty. If you're going to use ConEmu, just go ahead and use the straight & regular OpenSSH command-line ssh tool. Then you get all the standard niceties you can stash away for global reuse in ~/.ssh/config. I don't miss PuTTY one bit.
- rocqua 10y agoOoh, could I use this to get ECDSA keys with configurable rounds of hash functions? I might switch from putty to ConEmu with OpenSSH then. Presuming I can get ConEmu's look close enough to my putty.
- Senji 10y agoConEmu is endlessly modifiable. You can inject dll hooks into it if you so wish even.
- erikbye 10y agoThanks for that suggestion. I am well aware of these options, and if I used Windows at home, I could utilize these. However, I only use Windows when I have to, which is at work. The environment in which I work, you can absolutely not install software like this, as you would be breaking security protocols (and the law). So this explains the joy I feel over small improvements like those mentioned above.
- jkn 10y agoIIRC 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?
- taneq 10y agoHuh. Apparently yes. I think I'm in love with you now. Carry on.
- erikbye 10y agoYes, that is correct. Display mode: MODE CON[:] [COLS=c] [LINES=n]
- mfukar 10y agoTIL. Thanks very much.
- orbitingpluto 10y agoHey!!! 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)
- erikbye 10y agoAll 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.
- 10y ago
- nailer 10y agoMost Windows terminal people use ConEmu rather than the inbuilt terminal apps - it's like iTerm2 vs Terminal.app on MacOS. ConEmu adds Unix style cut and paste, tabs, etc. Add openssh, PSReadLine and PSCX and you've got a proper terminal setup. Also MS should really improve the inbuilt apps to do this stuff.
- scraft 10y agoWhilst I am glad to hear about ConEmu; I have to disagree, I use windows cmd.exe very regularly, and know lots of other people that do, and I have never used ConEmu before! I might give it a try now I know about it.
- WorldMaker 10y agoCmder is a good configuration bundle for ConEmu and a better place for new users to start.
- nailer 10y agoCmder seems cool but it's ConEmu + Clink + git for windows. - Clink is for cmd what PSReadline is for posh. - posh-git does what git for windows does (I personally don't like git info in my prompt, so use neither, and have a custom, Unixy-one)
- UK-AL 10y agoI highly recommend ConEmu, I've used it for awhile.
- keithnz 10y agocon emu makes the linix subsystem shell a lot nicer too, in fact has an inbuilt ubuntu theme that makes most colors sane
- pixelcloud 10y agoConEmu si really nice simply because you can have tabs, split pane and good color schemes. 've never gotten to the level that some people need, so ConEmu + bash = everything I was using on OSX.
- alexc05 10y agoI have been waiting for that for years - now if they would only add TABS to real powershell (as opposed to powershell ISE) or if they can add colors to powershell ISE I will be super-duper-bonus happy.
- hashhar 10y agoThey have 24-bit colour support in the latest Insider build.
- agumonkey 10y agoAren't we glad it's 2016 ?
- aq3cn 10y agoIt also support transparency and lot more features. Install sysinternals, chocolatey (a package manager, https://chocolatey.org https://chocolatey.org) and python, you are good to go.
- zouhair 10y agoAlternatively you can use ConEmu[0] [0]:https://conemu.github.io/ https://conemu.github.io/
- rspeer 10y agoI've found ConEmu's xterm emulation to be frustratingly buggy if I'm ssh-ing into a Linux machine and running tmux, vim, or really anything with colors or a status bar. mintty [1] works a lot better for me. (mintty is also the console that's packaged with Git for Windows.) [1] https://mintty.github.io/ https://mintty.github.io/
- imron 10y agoYou could do this since at least XP! You just needed to go in to the properties of the window and increase the screen buffer size (both width and height). It's one of the first things I'd do upon installing a Windows machine.
- JeffreySnover 10y agoWe are incapable of sustained error. 25+ years was enough. :-) Jeffrey Snover [MSFT]
- friendzis 10y agoYou could do it at least in Win7, maybe earlier, do not have anything older to test with. Click on icon (right click on top bar) --> properties --> layout. You can edit both window size and buffer size