Date: Fri, 2 Mar 2018 03:05:36 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r330263 - head/stand/lua Message-ID: <201803020305.w2235a9s079022@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Fri Mar 2 03:05:36 2018 New Revision: 330263 URL: https://svnweb.freebsd.org/changeset/base/330263 Log: lualoader: Use string literal \xNN instead of string.char() Modified: head/stand/lua/drawer.lua Modified: head/stand/lua/drawer.lua ============================================================================== --- head/stand/lua/drawer.lua Fri Mar 2 02:39:41 2018 (r330262) +++ head/stand/lua/drawer.lua Fri Mar 2 03:05:36 2018 (r330263) @@ -313,13 +313,13 @@ function drawer.drawbox() local w = drawer.box_pos_dim.w local h = drawer.box_pos_dim.h - local hl = string.char(0xCD) - local vl = string.char(0xBA) + local hl = "\xCD" + local vl = "\xBA" - local tl = string.char(0xC9) - local bl = string.char(0xC8) - local tr = string.char(0xBB) - local br = string.char(0xBC) + local tl = "\xC9" + local bl = "\xC8" + local tr = "\xBB" + local br = "\xBC" screen.setcursor(x, y); print(tl) screen.setcursor(x, y+h); print(bl)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803020305.w2235a9s079022>