Small tweaks.
This commit is contained in:
parent
916586006e
commit
248f622fbe
|
@ -1,4 +1,3 @@
|
||||||
c
|
|
||||||
[38;5;231m _ _
|
[38;5;231m _ _
|
||||||
(_\_)
|
(_\_)
|
||||||
(_ [38;5;226m<_{}[38;5;231m
|
(_ [38;5;226m<_{}[38;5;231m
|
||||||
|
|
|
@ -4,6 +4,9 @@ local lfs = require("lfs")
|
||||||
|
|
||||||
local luadir = arg[0]:match("@?(.*/)");
|
local luadir = arg[0]:match("@?(.*/)");
|
||||||
|
|
||||||
|
-- Clear
|
||||||
|
print("\27[H\27[2J\27[3J")
|
||||||
|
|
||||||
-- Print out flower from text file
|
-- Print out flower from text file
|
||||||
local flower = io.open(luadir .. "flower.txt", "r");
|
local flower = io.open(luadir .. "flower.txt", "r");
|
||||||
if (flower ~= nil) then
|
if (flower ~= nil) then
|
||||||
|
|
|
@ -97,9 +97,11 @@
|
||||||
|
|
||||||
(define flower (readFile "~/.scripts/flower.txt"))
|
(define flower (readFile "~/.scripts/flower.txt"))
|
||||||
|
|
||||||
|
;; Define ansi break
|
||||||
|
(define ansi "\33[")
|
||||||
|
|
||||||
;; Clear terminal
|
;; Clear terminal
|
||||||
;; Not working?
|
(display (string-append ansi "H" ansi "2J" ansi "3J"))
|
||||||
; (display "\33[1J")
|
|
||||||
|
|
||||||
;; For each line of flowerfile, print line.
|
;; For each line of flowerfile, print line.
|
||||||
(for-each (lambda (line)
|
(for-each (lambda (line)
|
||||||
|
@ -109,9 +111,10 @@
|
||||||
(newline)
|
(newline)
|
||||||
|
|
||||||
;; Bar color output
|
;; Bar color output
|
||||||
(define barFmt "\33[37m - ")
|
(define barFmt (string-append ansi "37m - "))
|
||||||
(define col1 "\33[36m")
|
|
||||||
(define col2 "\33[34m")
|
(define col1 (string-append ansi "36m"))
|
||||||
|
(define col2 (string-append ansi "34m"))
|
||||||
|
|
||||||
;; Defining list of all outputs to loop through.
|
;; Defining list of all outputs to loop through.
|
||||||
(define outList
|
(define outList
|
||||||
|
|
|
@ -17,7 +17,6 @@ check() {
|
||||||
if [ $? == 0 ]
|
if [ $? == 0 ]
|
||||||
then
|
then
|
||||||
echo $OUTPUT | sed 's/ .*/ articles/;s/^/ /'
|
echo $OUTPUT | sed 's/ .*/ articles/;s/^/ /'
|
||||||
break
|
|
||||||
else
|
else
|
||||||
echo " ..."
|
echo " ..."
|
||||||
fi
|
fi
|
||||||
|
|
2
xon.py
2
xon.py
|
@ -14,7 +14,7 @@ xon_api = "https://xonotic.lifeisabug.com/endpoint/json"
|
||||||
|
|
||||||
# Create table
|
# Create table
|
||||||
console = Console()
|
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("", justify="right", max_width=6)
|
||||||
servlist.add_column("Server", justify="left", ratio=0.1, no_wrap=True)
|
servlist.add_column("Server", justify="left", ratio=0.1, no_wrap=True)
|
||||||
servlist.add_column("Mode", justify="center", max_width=6)
|
servlist.add_column("Mode", justify="center", max_width=6)
|
||||||
|
|
Loading…
Reference in a new issue