Live data from Hacker News

Ask HN: What do you love/hate about terminals? Would you change them?

news.ycombinator.com

21–30 of 204 posts

Re: Ask HN: What do you love/hate about terminals? Would you change them?

#21
post #17

On the lines of "just working", it'd be cool to have a shell which if I could accidentally cat a binary file and not have the shell be completely in-operable or have to run this long archaic command to get it working again. Maybe have something like "when I run the cat command, ignore all commands to the terminal until cat finishes".

What long archaic command are you running? 'clear; reset' usually does it for me.

Re: Ask HN: What do you love/hate about terminals? Would you change them?

#22
I use stock bash / Konsole and I am really missing a good text reflow when changing the size of the window.

If some command prints a line which gets wrapped because it is too long then I wish I could un-wrap it by making the terminal window wider and forcing some sort of re-layout.

Re: Ask HN: What do you love/hate about terminals? Would you change them?

#23

I think that the autocomplete story is abysmal. Modern IDEs can tell me exactly what can follow after a certain piece of text, and even the best tab completion in terminals is limited, ugly, and text-mode for no good reason. Some protocol for a real dropdown rendered in the style of the OS, plus a standard data format that allows tool builders to specify options, their meanings and the kinds of allowed parameters in…

>Modern IDEs can tell me exactly what can follow after a certain piece of text

I don't think that's computable in a terminal.

Re: Ask HN: What do you love/hate about terminals? Would you change them?

#24
post #17

On the lines of "just working", it'd be cool to have a shell which if I could accidentally cat a binary file and not have the shell be completely in-operable or have to run this long archaic command to get it working again. Maybe have something like "when I run the cat command, ignore all commands to the terminal until cat finishes".

Our draft already contains a command for "set terminal into ignore-escape-sequences mode". I added that last week when someone showed how to hide malicious code in "git diff" by using specifically crafted control sequences.

Re: Ask HN: What do you love/hate about terminals? Would you change them?

#25
post #17

On the lines of "just working", it'd be cool to have a shell which if I could accidentally cat a binary file and not have the shell be completely in-operable or have to run this long archaic command to get it working again. Maybe have something like "when I run the cat command, ignore all commands to the terminal until cat finishes".

What long archaic command are you running? 'clear; reset' usually does it for me.

Sometimes clear; reset works but other times I can't see what I'm typing, and so when I type it and hit enter it might clear the screen, sometimes it runs the command but the bash prompt is completely messed up. I use tmux a lot, so I usually use the reset code from this answer: https://unix.stackexchange.com/questions/49886/tmux-status-b...

stty sane; printf '\033k%s\033\\\033]2;%s\007' "`basename "$SHELL"`" "`uname -n`"; tput reset; tmux refresh

Re: Ask HN: What do you love/hate about terminals? Would you change them?

#27

Love: I think it's the best way to do things without GUI Hate: I cant use mouse for copy command or edit a line

Yes, changing the cursor position with the mouse while typing a command would be handy in some situations!

Re: Ask HN: What do you love/hate about terminals? Would you change them?

#28

I think that the autocomplete story is abysmal. Modern IDEs can tell me exactly what can follow after a certain piece of text, and even the best tab completion in terminals is limited, ugly, and text-mode for no good reason. Some protocol for a real dropdown rendered in the style of the OS, plus a standard data format that allows tool builders to specify options, their meanings and the kinds of allowed parameters in…

This. I would love to be able to type "[command] --[tab]" and have it list all the options, and/or common options, so when I'm learning 'tar' I don't have to start typing, realize I've forgotten the command, and then have to go use man or --help or go Google it.

Re: Ask HN: What do you love/hate about terminals? Would you change them?

#30
post #2

I love tab completion. I hate that the terminal and the browser are two different applications.

shivers thank god they are two different applications.

And i'd prefer the two very different functions remain separate programs, i don't need my terminal client to be vulnerable for browser issues (or vice versa).

Post reply on HN