Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用真棒从用户那里检索一个字符串。我将使用这个字符串来动态创建一个新标签。我只需要一些我可以调用的函数,它将从键盘输入并返回输入的文本。
这样的事情应该可以帮助您入门:
awful.prompt.run({ prompt = "Magic: " }, mypromptbox[mouse.screen].widget, function(text) naughty.notify({ text = "you entered: " .. text }) end))