News for hackers. Stuff that matters.
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by kabdib on Sunday November 03, 2013 @02:23PM (#6664576)
The "terminal" on MacOS X. It has:

- tabs

- cut and paste that actually works

- various ways to focus windows

- hey, search!

... and a bunch of other stuff. While CMD.EXE has its feet firmly rooted in 1982 or so.

Yeah, I know you can buy more whizzy shells. But MS really has no excuse for letting the NT console system rot as much as it has. Given that their programmers use it /all the time/, I find it hard to believe that someone hasn't written something better. (PowerShell overshot the mark, and wound up being unusable).

Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by manojlds on Monday November 04, 2013 @01:45AM (#6667244)
So all your complaints are against the terminal emulator, which everyone agrees is bad. Use something like ConEmu. Here's Scott Hanselman on ConEmu - http://www.hanselman.com/blog/ConEmuTheWindowsTerminalConsol...

> PowerShell overshot the mark, and wound up being unusable

You haven't still any points against Powershell and continue to pile up on it.

Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by eropple on Monday November 04, 2013 @03:39AM (#6667561)
ConEmu can't fully replicate the CSRSS terminal behavior. It breaks pretty grossly when using advanced console functionality that works correctly in CSRSS's own terminal.
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by msie on Sunday November 03, 2013 @03:38PM (#6664924)
Aside from good cut&paste behaviour, one of the biggest problems with cmd.exe is you cannot resize the window horizontally larger than its set size by dragging on the window side. I do this when I see wrapped text from the output of a command. And if you experience wrapped text in a window smaller than its max size, enlarging the window doesn't reflow the text! Oh I see the same problem happens in Powershell too. :-(
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by to3m on Sunday November 03, 2013 @07:08PM (#6665811)
Powershell and the command prompt use the same underlying console subsystem, that handles character-mode programs running and displaying their output in a window. It's a core part of Windows, rather than something supplied by each program.

The console system doesn't provide a TTY, as in Unix, but instead uses a CGA/MDA text mode metaphor: a matrix of (character,colour) pairs. This leaves no information about the text that's been printed, per se - it's more like the text equivalent of a bitmap. No carriage returns, no tabs, just an arrangement of characters that happened to have been put in the right places. If you widen the screen, there's not much Windows can do except for leave the new area blank, because it has no idea at all which line breaks are significant and which were just wrapped. (And indeed, if you resize the buffer in the console window's properties, this blanking is exactly what it does.)

There's sort-of nothing wrong with this system, in that it makes sense for a certain style of text-mode GUI console program, that were at one point exceedingly popular in MS-DOS - but unfortunately, it's not so hot for the TTY style of console program that everybody uses these days :)

(Fingers crossed for a much-needed shakeup, but this nonsense has stuck around for so long - I don't think that console properties dialog has changed one pixel since Windows NT 4 - that it's probably a bit late now. Meanwhile, one solution might be to run cmd.exe with a better class of terminal emulator - emacs will do this.)

Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by p4bl0 on Sunday November 03, 2013 @04:58PM (#6665302)
You are mixing the shell and the terminal. (But you're probably right that neither of them is good on Windows.)
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by yuhong on Sunday November 03, 2013 @02:31PM (#6664620)
I think CONHOST/CSRSS is to blame for this not CMD.
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by kabdib on Sunday November 03, 2013 @08:04PM (#6666045)
As far as I can tell, they're joined at the hip.

You /could/ redo one without redoing the other. No problem. But the result would be poor. :-/

Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by derleth on Sunday November 03, 2013 @04:47PM (#6665249)
So it isn't a shell. It's more like xterm, then, right?
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by wiml on Sunday November 03, 2013 @05:08PM (#6665346)
Yes. In fact it's called Terminal.app; it's just a terminal emulator, but one that doesn't particularly suck. The shell is ordinary bash (or ksh or zsh or whatever; I forget what the default is).