menu.lua (a7cf056239ff1366cb231f8c6f516b023922bf4e) menu.lua (1504bce32d51612b355295155b69fc372309fbb9)
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

--- 252 unchanged lines hidden (view full) ---

261
262-- menu.autoboot();
263
264 cont = true;
265 while cont do
266 local key = io.getchar();
267
268 -- Special key behaviors
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

--- 252 unchanged lines hidden (view full) ---

261
262-- menu.autoboot();
263
264 cont = true;
265 while cont do
266 local key = io.getchar();
267
268 -- Special key behaviors
269 if (key == core.KEY_BACKSPACE) and (m ~= menu.welcome) then
269 if ((key == core.KEY_BACKSPACE) or (key == core.KEY_DELETE)) and
270 (m ~= menu.welcome) then
270 break
271 elseif (key == core.KEY_ENTER) then
272 core.boot();
273 -- Should not return
274 end
275
276 key = string.char(key)
277 -- check to see if key is an alias

--- 113 unchanged lines hidden ---
271 break
272 elseif (key == core.KEY_ENTER) then
273 core.boot();
274 -- Should not return
275 end
276
277 key = string.char(key)
278 -- check to see if key is an alias

--- 113 unchanged lines hidden ---