Just to make this work, you could write a kmem-writer program which would change the control-tty of your shell, along with any other important data. Maybe those new files called FIFO's (pipe with a name?) would be better than pseudo-tty's.