This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local cartesi = require("cartesi") | |
| local jsonrpc = require("cartesi.jsonrpc") | |
| local poll = require("posix.poll") | |
| local unistd = require("posix.unistd") | |
| local termio = require("posix.termio") | |
| local fcntl = require("posix.fcntl") | |
| -- set terminal to raw mode | |
| local ttyname = assert(unistd.ttyname()) | |
| local tty_fd = assert(fcntl.open(ttyname, fcntl.O_RDWR | fcntl.O_NOCTTY | fcntl.O_NONBLOCK)) |
OlderNewer