core.lua (27fac8ff4c078b950b250ee2fbd7e5a0c3eed663) | core.lua (39006570a401ef5fb6d7d8029089fb11280bfd24) |
---|---|
1-- 2-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 3-- All rights reserved. 4-- 5-- Redistribution and use in source and binary forms, with or without 6-- modification, are permitted provided that the following conditions 7-- are met: 8-- 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27-- 28 29local core = {}; 30 31-- Commonly appearing constants 32core.KEY_ENTER = 13; 33core.KEY_BACKSPACE = 127; 34 | 1-- 2-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 3-- All rights reserved. 4-- 5-- Redistribution and use in source and binary forms, with or without 6-- modification, are permitted provided that the following conditions 7-- are met: 8-- 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27-- 28 29local core = {}; 30 31-- Commonly appearing constants 32core.KEY_ENTER = 13; 33core.KEY_BACKSPACE = 127; 34 |
35core.KEYSTR_ESCAPE = "\027"; 36 |
|
35function core.setVerbose(b) 36 if (b == nil) then 37 b = not core.verbose; 38 end 39 40 if (b == true) then 41 loader.setenv("boot_verbose", "YES"); 42 else --- 131 unchanged lines hidden --- | 37function core.setVerbose(b) 38 if (b == nil) then 39 b = not core.verbose; 40 end 41 42 if (b == true) then 43 loader.setenv("boot_verbose", "YES"); 44 else --- 131 unchanged lines hidden --- |