aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/minicurses.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-10-23 19:59:52 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-10-23 21:20:19 +0530
commit96565c7e55bc3d97a1d4232fe974091dd45f5fe9 (patch)
tree5b6de2b3e755e09848bf3169384bd5854a59f1b7 /yt_dlp/minicurses.py
parentec11a9f4a26e8225b195e5f91bd0b72b008d0c3a (diff)
downloadhypervideo-pre-96565c7e55bc3d97a1d4232fe974091dd45f5fe9.tar.lz
hypervideo-pre-96565c7e55bc3d97a1d4232fe974091dd45f5fe9.tar.xz
hypervideo-pre-96565c7e55bc3d97a1d4232fe974091dd45f5fe9.zip
[cleanup] Add keyword automatically to SearchIE descriptions
and some minor cleanup of docs
Diffstat (limited to 'yt_dlp/minicurses.py')
-rw-r--r--yt_dlp/minicurses.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/yt_dlp/minicurses.py b/yt_dlp/minicurses.py
index 38fdb5bc6..699b1158a 100644
--- a/yt_dlp/minicurses.py
+++ b/yt_dlp/minicurses.py
@@ -31,6 +31,11 @@ _TEXT_STYLES = {
def format_text(text, f):
+ '''
+ @param f String representation of formatting to apply in the form:
+ [style] [light] font_color [on [light] bg_color]
+ Eg: "red", "bold green on light blue"
+ '''
f = f.upper()
tokens = f.strip().split()