smpl
One shitty thing can be better than another shitty thing.
If you're thinking of the EU, it's probably just the vogonlike bureaucracy, so in about the time that Windows 12 comes out, they'll be ready. Can't say it bothers me, if Microsoft is attempting to take marketshare from Google, though.
I must admit I copy paste the link to the terminal, so it's not a seamless experience. I don't watch enough videos to have done anything other than write a wrapper script with my preferred settings for youtube videos and to convert invidious links to youtube links.
I just tried running mpv --idle=yes --force-window=yes
from the terminal and drag a youtube link to the window. It plays like it should. yt-dlp
is installed locally for my user in ~/.local/bin
and that directory is appended to the PATH
environment variable. I also have yt-dlp
symlinked to youtube-dl
for mpv to pick it up. I guess what's missing is my preferred options for youtube videos, which I could set up in ~/.config/mpv/mpv.conf
. Everytime some site breaks, you run yt-dlp -U
to update and cross your fingers.
I always play youtube videos with mpv.
You can save and restore the cursor too with s
and u
, so that your example could be done from an interactive terminal like this.
$ echo -en " 1) option A\n 2) option B\n 3) option C\n\E[s"
1) option A
» 2) option B
3) option C
$ echo -en "\E[3F»\E[u\E[2K"
It doesn't look to me like you want to remove lines. It looks like you want to move the cursor to a position and write a character.
You would probably want to move up two rows to column one and print the marker like this \E[2F»
. If you want to delete option B and C and write them again it'll be something like this echo -e "\E[2F\E[2K» 2) option B\n\E[2K 3) option C"
.
See more in man console_codes
Also see the tput
and terminfo
manpages. You find the capabilities in terminfo and you use them with tput, like fx. moving the cursor to row 10 column 10 with tput cup 10 10
, where cup is described in the terminfo manpage.
Which version was that? I've just tested the most recent version (21.2) with QEMU and it works with secure boot.
In addition to GRUB_SAVEDEFAULT
you also need to set GRUB_DEFAULT=saved
.
You should probably follow these instructions from the Fedora Wiki: Reinstalling GRUB.