You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-- Import
|
|
local libmodal = require('libmodal')
|
|
|
|
-- Define commands through a dictionary.
|
|
local commands = {
|
|
['new'] = 'tabnew',
|
|
['close'] = 'tabclose',
|
|
['last'] = 'tablast',
|
|
['exit'] = libmodal.utils.api.mode_exit
|
|
}
|
|
|
|
-- Begin the prompt.
|
|
libmodal.prompt.enter('FOO', commands)
|