From owner-svn-src-head@freebsd.org Thu Feb 22 20:10:24 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5A52F273E2; Thu, 22 Feb 2018 20:10:24 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 58A11771EB; Thu, 22 Feb 2018 20:10:24 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 538F54852; Thu, 22 Feb 2018 20:10:24 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1MKAO87011988; Thu, 22 Feb 2018 20:10:24 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1MKAOPG011985; Thu, 22 Feb 2018 20:10:24 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <201802222010.w1MKAOPG011985@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Thu, 22 Feb 2018 20:10:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329836 - head/stand/lua X-SVN-Group: head X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: head/stand/lua X-SVN-Commit-Revision: 329836 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2018 20:10:24 -0000 Author: kevans Date: Thu Feb 22 20:10:23 2018 New Revision: 329836 URL: https://svnweb.freebsd.org/changeset/base/329836 Log: lualoader: Attend to some 80-col issues, pointed out by luacheck Graphics have a tendency to cause 80-col issues, so make an exception to our standard indentation guidelines for these graphics. This does not hamper readability too badly. Two 40-column strings of spaces is trivially replaced with string.rep(" ", 80) Modified: head/stand/lua/config.lua head/stand/lua/drawer.lua head/stand/lua/menu.lua Modified: head/stand/lua/config.lua ============================================================================== --- head/stand/lua/config.lua Thu Feb 22 20:09:21 2018 (r329835) +++ head/stand/lua/config.lua Thu Feb 22 20:10:23 2018 (r329836) @@ -336,7 +336,8 @@ function config.loadkernel(other_kernel) local try_load = function (names) for name in names:gmatch("([^;]+)%s*;?") do - local r = loader.perform("load " .. flags .. " " .. name) + local r = loader.perform("load " .. flags .. + " " .. name) if r == 0 then return name end Modified: head/stand/lua/drawer.lua ============================================================================== --- head/stand/lua/drawer.lua Thu Feb 22 20:09:21 2018 (r329835) +++ head/stand/lua/drawer.lua Thu Feb 22 20:10:23 2018 (r329836) @@ -65,109 +65,109 @@ local shift_brand_text = function(shift) end fbsd_logo = { - " ______ ____ _____ _____ ", - " | ____| | _ \\ / ____| __ \\ ", - " | |___ _ __ ___ ___ | |_) | (___ | | | |", - " | ___| '__/ _ \\/ _ \\| _ < \\___ \\| | | |", - " | | | | | __/ __/| |_) |____) | |__| |", - " | | | | | | || | | |", - " |_| |_| \\___|\\___||____/|_____/|_____/ " +" ______ ____ _____ _____ ", +" | ____| | _ \\ / ____| __ \\ ", +" | |___ _ __ ___ ___ | |_) | (___ | | | |", +" | ___| '__/ _ \\/ _ \\| _ < \\___ \\| | | |", +" | | | | | __/ __/| |_) |____) | |__| |", +" | | | | | | || | | |", +" |_| |_| \\___|\\___||____/|_____/|_____/ " } beastie_color = { - " \027[31m, ,", - " /( )`", - " \\ \\___ / |", - " /- \027[37m_\027[31m `-/ '", - " (\027[37m/\\/ \\\027[31m \\ /\\", - " \027[37m/ / |\027[31m ` \\", - " \027[34mO O \027[37m) \027[31m/ |", - " \027[37m`-^--'\027[31m`< '", - " (_.) _ ) /", - " `.___/` /", - " `-----' /", - " \027[33m<----.\027[31m __ / __ \\", - " \027[33m<----|====\027[31mO)))\027[33m==\027[31m) \\) /\027[33m====|", - " \027[33m<----'\027[31m `--' `.__,' \\", - " | |", - " \\ / /\\", - " \027[36m______\027[31m( (_ / \\______/", - " \027[36m,' ,-----' |", - " `--{__________)\027[37m" +" \027[31m, ,", +" /( )`", +" \\ \\___ / |", +" /- \027[37m_\027[31m `-/ '", +" (\027[37m/\\/ \\\027[31m \\ /\\", +" \027[37m/ / |\027[31m ` \\", +" \027[34mO O \027[37m) \027[31m/ |", +" \027[37m`-^--'\027[31m`< '", +" (_.) _ ) /", +" `.___/` /", +" `-----' /", +" \027[33m<----.\027[31m __ / __ \\", +" \027[33m<----|====\027[31mO)))\027[33m==\027[31m) \\) /\027[33m====|", +" \027[33m<----'\027[31m `--' `.__,' \\", +" | |", +" \\ / /\\", +" \027[36m______\027[31m( (_ / \\______/", +" \027[36m,' ,-----' |", +" `--{__________)\027[37m" } beastie = { - " , ,", - " /( )`", - " \\ \\___ / |", - " /- _ `-/ '", - " (/\\/ \\ \\ /\\", - " / / | ` \\", - " O O ) / |", - " `-^--'`< '", - " (_.) _ ) /", - " `.___/` /", - " `-----' /", - " <----. __ / __ \\", - " <----|====O)))==) \\) /====|", - " <----' `--' `.__,' \\", - " | |", - " \\ / /\\", - " ______( (_ / \\______/", - " ,' ,-----' |", - " `--{__________)" +" , ,", +" /( )`", +" \\ \\___ / |", +" /- _ `-/ '", +" (/\\/ \\ \\ /\\", +" / / | ` \\", +" O O ) / |", +" `-^--'`< '", +" (_.) _ ) /", +" `.___/` /", +" `-----' /", +" <----. __ / __ \\", +" <----|====O)))==) \\) /====|", +" <----' `--' `.__,' \\", +" | |", +" \\ / /\\", +" ______( (_ / \\______/", +" ,' ,-----' |", +" `--{__________)" } fbsd_logo_v = { - " ______", - " | ____| __ ___ ___ ", - " | |__ | '__/ _ \\/ _ \\", - " | __|| | | __/ __/", - " | | | | | | |", - " |_| |_| \\___|\\___|", - " ____ _____ _____", - " | _ \\ / ____| __ \\", - " | |_) | (___ | | | |", - " | _ < \\___ \\| | | |", - " | |_) |____) | |__| |", - " | | | |", - " |____/|_____/|_____/" +" ______", +" | ____| __ ___ ___ ", +" | |__ | '__/ _ \\/ _ \\", +" | __|| | | __/ __/", +" | | | | | | |", +" |_| |_| \\___|\\___|", +" ____ _____ _____", +" | _ \\ / ____| __ \\", +" | |_) | (___ | | | |", +" | _ < \\___ \\| | | |", +" | |_) |____) | |__| |", +" | | | |", +" |____/|_____/|_____/" } orb_color = { - " \027[31m``` \027[31;1m`\027[31m", - " s` `.....---...\027[31;1m....--.``` -/\027[31m", - " +o .--` \027[31;1m/y:` +.\027[31m", - " yo`:. \027[31;1m:o `+-\027[31m", - " y/ \027[31;1m-/` -o/\027[31m", - " .- \027[31;1m::/sy+:.\027[31m", - " / \027[31;1m`-- /\027[31m", - " `: \027[31;1m:`\027[31m", - " `: \027[31;1m:`\027[31m", - " / \027[31;1m/\027[31m", - " .- \027[31;1m-.\027[31m", - " -- \027[31;1m-.\027[31m", - " `:` \027[31;1m`:`", - " \027[31;1m.-- `--.", - " .---.....----.\027[37m" +" \027[31m``` \027[31;1m`\027[31m", +" s` `.....---...\027[31;1m....--.``` -/\027[31m", +" +o .--` \027[31;1m/y:` +.\027[31m", +" yo`:. \027[31;1m:o `+-\027[31m", +" y/ \027[31;1m-/` -o/\027[31m", +" .- \027[31;1m::/sy+:.\027[31m", +" / \027[31;1m`-- /\027[31m", +" `: \027[31;1m:`\027[31m", +" `: \027[31;1m:`\027[31m", +" / \027[31;1m/\027[31m", +" .- \027[31;1m-.\027[31m", +" -- \027[31;1m-.\027[31m", +" `:` \027[31;1m`:`", +" \027[31;1m.-- `--.", +" .---.....----.\027[37m" } orb = { - " ``` `", - " s` `.....---.......--.``` -/", - " +o .--` /y:` +.", - " yo`:. :o `+-", - " y/ -/` -o/", - " .- ::/sy+:.", - " / `-- /", - " `: :`", - " `: :`", - " / /", - " .- -.", - " -- -.", - " `:` `:`", - " .-- `--.", - " .---.....----." +" ``` `", +" s` `.....---.......--.``` -/", +" +o .--` /y:` +.", +" yo`:. :o `+-", +" y/ -/` -o/", +" .- ::/sy+:.", +" / `-- /", +" `: :`", +" `: :`", +" / /", +" .- -.", +" -- -.", +" `:` `:`", +" .-- `--.", +" .---.....----." } none = {""} Modified: head/stand/lua/menu.lua ============================================================================== --- head/stand/lua/menu.lua Thu Feb 22 20:09:21 2018 (r329835) +++ head/stand/lua/menu.lua Thu Feb 22 20:10:23 2018 (r329836) @@ -456,8 +456,7 @@ function menu.autoboot() else -- erase autoboot msg screen.setcursor(0, y) - print(" " - .. " ") + print(string.rep(" ", 80)) screen.defcursor() return ch end