Made dfusion not stop df on input.

develop
Warmist 2012-11-28 22:13:28 +02:00
parent 01966167f6
commit 2c9b560872
2 changed files with 3 additions and 3 deletions

@ -220,7 +220,7 @@ function SimpleMenu:display()
local ans local ans
repeat repeat
local r local r
r=io.stdin:read() r=dfhack.lineedit()
if r==nil then return end if r==nil then return end
if r=='q' then return end if r=='q' then return end
ans=tonumber(r) ans=tonumber(r)

@ -26,7 +26,7 @@ function setrace(name)
if name == nil then if name == nil then
print("Type new race's token name in full caps (q to quit):") print("Type new race's token name in full caps (q to quit):")
repeat repeat
local entry=io.stdin:read() local entry=dfhack.lineedit()
if entry=="q" then if entry=="q" then
return return
end end
@ -48,7 +48,7 @@ function GiveSentience(names)
ids={} ids={}
print("Type race's token name in full caps to give sentience to:") print("Type race's token name in full caps to give sentience to:")
repeat repeat
id=io.stdin:read() id=dfhack.lineedit()
id=RaceTable[entry] id=RaceTable[entry]
if id~=nil then if id~=nil then
table.insert(ids,id) table.insert(ids,id)