blob: 57a94d3ddaa0ccbe8d3b412f8fcf34bf922153b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
local rofi = {"rofi", "-dmenu", "-input", "/dev/null", "-password"}
local function assuan_send(t)
io.stdout:write(t .. "\n")
io.stdout:flush()
end
assuan_send("OK Please go ahead")
while true do
local line = io.stdin:read("*line")
if not line then break end
local ok = true
if line:match("^OPTION (.+)$") then
--OPTION grab
--OPTION ttyname=/dev/pts/1
--OPTION ttytype=tmux-256color
--OPTION lc-messages=C
--OPTI
else
assuan_send("ERR Invalid command")
end
end
|