python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Clear wrapped lines with curses
When I run the following code in bash, in a terminal that's not too wide (currently my terminal is 97 columns wide), I don't see the expected behavior
# foo.sh
tput sc # save cursor
for i in $(seq 10...
Robert T. McGibbon
Votes: 0
Answers: 0
How to delete everything after the cursor?
I want to delete everything after the cursor; not just the current line, but every remaining characters after the current position.
For example of tput sc; ll; tput rc:
root@test:~# tput sc; ll; tput ...

Chris
Votes: 0
Answers: 1