Skip to content

Instantly share code, notes, and snippets.

@non
Created October 21, 2022 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save non/c6edd149e2d72122117d5726096b66f5 to your computer and use it in GitHub Desktop.
Save non/c6edd149e2d72122117d5726096b66f5 to your computer and use it in GitHub Desktop.
patch that turns uxnbot.lua into uxnrepl.lua
--- uxnbot.lua 2022-10-20 21:33:58.783691604 -0400
+++ uxnrepl.lua 2022-10-20 21:33:14.229193549 -0400
@@ -1201,6 +1201,12 @@
end
end
local chat = require('chat')
+print('uxnrepl (ctrl-d to quit)')
+io.write('> ')
+io.flush()
for l in io.stdin:lines() do
print(chat(l))
+ io.write('> ')
+ io.flush()
end
+print('bye!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment