Small tweaks.

This commit is contained in:
Josh 2023-06-28 16:25:32 -04:00
parent 916586006e
commit 248f622fbe
5 changed files with 12 additions and 8 deletions

View File

@ -1,4 +1,3 @@
c
 _ _
(_\_)
(_ <_{}

View File

@ -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

View File

@ -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

View File

@ -17,7 +17,6 @@ check() {
if [ $? == 0 ]
then
echo $OUTPUT | sed 's/ .*/ articles/;s/^/ /'
break
else
echo " ..."
fi

2
xon.py
View File

@ -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)