mlockall(2) + tty/framebuffer based graphics should do the trick