MCJack123 / craftos2

A fast, modern, and feature-filled ComputerCraft emulator written in C++.
https://www.craftos-pc.cc
Other
217 stars 25 forks source link

Adding term.forceUpdate() function. #344

Open simadude opened 4 months ago

simadude commented 4 months ago

There is currently no way to syncronise when to freeze and unfreeze the terminal/monitor once a Lua program is finished drawing, so I've made this function to force it (just ignore that it's frozen) to render the contents of the terminal once. (A better name can be chosen if needed.)

The ROM should also now expect this function or else it will give an error "Redirect object is missing method forceUpdate."