News for hackers. Stuff that matters.
Re:Ask HN: What do you love/hate about terminals? Would you ... by gaius on Wednesday December 27, 2017 @06:52AM (#16014236)
Are you confusing the terminal and the shell there?
Re:Ask HN: What do you love/hate about terminals? Would you ... by duiker101 on Wednesday December 27, 2017 @06:56AM (#16014251)
Your question makes me realise I don't really know the difference and could confuse it myself. Can quickly you clear that up for me?
Re:Ask HN: What do you love/hate about terminals? Would you ... by gaius on Wednesday December 27, 2017 @07:04AM (#16014277)
Well, the terminal is a piece of software that emulates a literal terminal - a hardware DEC VT100 for example. This was a device with a screen and a keyboard but no CPU that sat on your desk and was connected over a serial line to a shared computer like a VAX.

https://en.wikipedia.org/wiki/VT100

I actually used these, a later model, in the mid-late '90's:

https://en.wikipedia.org/wiki/VT220

The classic green text on black background look comes from these, tho' I always preferred amber.

A shell is the software that reads input from the keyboard, takes some action, which might be to run another program, and sends that output back to the screen. The terminal emulator you are using eg. xterm or PuTTY relays from your hardware keyboard on your PC to the shell, then renders what the shell sends back to it. The kernel's TTY drivers are the glue between them - TTY once meaning "teletype". In the old days between the VT on your desk and the VAX back in the machine room there would be LAT https://en.wikipedia.org/wiki/Local_Area_Transport

So it's a decoupled system, with the Unix philosophy of doing one thing well, and you are free to swap the terminal you use (xterm, rxvt, whatever) and the shell you prefer (csh, bash, zsh, etc) as you please, which you couldn't do if it were a monolithic program like CMD.EXE.

Re:Ask HN: What do you love/hate about terminals? Would you ... by joombaga on Wednesday December 27, 2017 @07:40AM (#16014413)
I wouldn't call CMD.exe monolithic, nor is it really a terminal emulator. It's just a command line interpreter that uses the same API as any other Windows console. I.e. bash.exe is a console application, and does not use CMD.exe.
Re:Ask HN: What do you love/hate about terminals? Would you ... by duiker101 on Wednesday December 27, 2017 @09:17AM (#16014839)
Very interesting! Thanks for the explanation