2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-03 12:13:25 +00:00

fix: update to work with latest ansikit

This commit is contained in:
TorchedSammy 2021-04-05 17:26:55 -04:00
parent 807ec15faa
commit 271ea946eb

4
lua.go
View File

@ -12,7 +12,7 @@ import (
var minimalconf = ` var minimalconf = `
ansikit = require 'ansikit' ansikit = require 'ansikit'
prompt(ansikit.text( prompt(ansikit.format(
'{blue}%u {cyan}%d {green}{reset} ' '{blue}%u {cyan}%d {green}{reset} '
)) ))
` `
@ -64,7 +64,7 @@ func LuaInit() {
err = l.DoFile(homedir + "/.hilbishrc.lua") err = l.DoFile(homedir + "/.hilbishrc.lua")
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, err, fmt.Fprintln(os.Stderr, err,
"An error has occured while loading your config! Falling back to minimal default config.\n") "\nAn error has occured while loading your config! Falling back to minimal default config.\n")
l.DoString(minimalconf) l.DoString(minimalconf)
} }