Skip to content

Instantly share code, notes, and snippets.

@N64N64
N64N64 / client.lua
Last active August 27, 2017 07:57
OpenResty + Fengari debug console
local js = require 'js'.global
function js.window:onload()
local stdin = js.document:getElementById('stdin')
local stdout = js.document:getElementById('stdout')
stdin:focus()
local conn
local indicator = js.document:getElementById('connecting')
local connected = false
local remote = true
This file has been truncated, but you can view the full file.
var fengari_web_cli_lua =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
local ffi = require 'ffi'
local C = ffi.C
ffi.cdef[[
typedef void FILE;
FILE * fopen ( const char * filename, const char * mode );
char * fgets ( char * str, int num, FILE * stream );
int fclose ( FILE * stream );
]]
;File generated by rgblink
00:00B5 CopyData
00:0061 DisableLCD
00:007B EnableLCD
00:0082 ClearSprites
00:009D FarCopyData
00:008D HideSprites
00:2024 VBlank
00:2306 Timer