Hacker Newsnew | past | comments | ask | show | jobs | submit | captainhat's commentslogin

Many ISPs use limited-duration promotional rates to sign up new customers, after which a discounted rate returns to a higher rate. We can debate the pros/cons of that practice as a marketing tactic, but that's not the same as the unfair charging practice described in the article. As far as I know, Comcast does not engage in forcing customers to rent equipment.


"c-u" only works in the terminal.


True, but c-k also works and so does, c-a, so with c-a, c-k you can get the same effect with not too much more effort.


Not really because unlike c-u, the c-a c-k combo deletes the whole line, while I actually wanted to delete only the rest of the line.

My workaround is ⇧⌘→ followed by Backspace but that always feels a little awkward to me.


You might be confusing c-u with c-k? c-u deletes the entire line regardless of where the cursor is (in terminal).

outside of terminal, c-a goes to beginning of line, and c-k deletes from the current cursor to the end of the line.

Perhaps you should try c-k instead of ⇧⌘→.


You’re right, I confused it but my point still stands. What I really meant to say:

Not really because unlike c-u, the c-a c-k combo deletes the whole line, while I actually wanted to delete only the part of the line up to the cursor. My workaround is ⇧⌘← followed by Backspace but that always feels a little awkward to me.


Ahhh yes, in that case I don't think there's a readline hotkey for that. However what I do is just command+backspace (no shift)


TIL!


No. C-u deletes between the beginning of the line and where the cursor is. In iterm at least.


I tested in both iTerm and Terminal and c-u for me deletes the entire line regardless of cursor... hmm


I can confirm that C-u has the behavior I described for me. Running Mojave. It's very useful at times in terminal as a sort of "reflected" C-k shortcut.

The way it behaves for me matches the description here: https://man7.org/linux/man-pages/man3/readline.3.html


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

Search: