diff --git a/flower.txt b/flower.txt index 0025b69..75d818c 100644 --- a/flower.txt +++ b/flower.txt @@ -1,4 +1,3 @@ -c  _ _ (_\_) (_ <_{} diff --git a/flowerfetch.lua b/flowerfetch.lua index 403678c..5c382f0 100755 --- a/flowerfetch.lua +++ b/flowerfetch.lua @@ -4,6 +4,9 @@ local lfs = require("lfs") local luadir = arg[0]:match("@?(.*/)"); +-- Clear +print("\27[H\27[2J\27[3J") + -- Print out flower from text file local flower = io.open(luadir .. "flower.txt", "r"); if (flower ~= nil) then diff --git a/flowerfetch.scm b/flowerfetch.scm index 8de5b7a..71284e9 100755 --- a/flowerfetch.scm +++ b/flowerfetch.scm @@ -97,9 +97,11 @@ (define flower (readFile "~/.scripts/flower.txt")) +;; Define ansi break +(define ansi "\33[") + ;; Clear terminal -;; Not working? -; (display "\33[1J") +(display (string-append ansi "H" ansi "2J" ansi "3J")) ;; For each line of flowerfile, print line. (for-each (lambda (line) @@ -109,9 +111,10 @@ (newline) ;; Bar color output -(define barFmt "\33[37m - ") -(define col1 "\33[36m") -(define col2 "\33[34m") +(define barFmt (string-append ansi "37m - ")) + +(define col1 (string-append ansi "36m")) +(define col2 (string-append ansi "34m")) ;; Defining list of all outputs to loop through. (define outList diff --git a/get_newsboat.sh b/get_newsboat.sh index 71b0d40..f339145 100755 --- a/get_newsboat.sh +++ b/get_newsboat.sh @@ -17,7 +17,6 @@ check() { if [ $? == 0 ] then echo $OUTPUT | sed 's/ .*/ articles/;s/^/ /' - break else echo " ..." fi diff --git a/xon.py b/xon.py index ddc0ce0..3bcd9f9 100755 --- a/xon.py +++ b/xon.py @@ -14,7 +14,7 @@ xon_api = "https://xonotic.lifeisabug.com/endpoint/json" # Create table console = Console() -servlist = Table(show_header=True, expand=True, header_style="bold cyan") +servlist = Table(show_header=True, expand=True, header_style="bold blue") servlist.add_column("", justify="right", max_width=6) servlist.add_column("Server", justify="left", ratio=0.1, no_wrap=True) servlist.add_column("Mode", justify="center", max_width=6)