Posted 10 August 2013 - 08:43 AM
Hey,
I'm doing some coroutine stuff, and I'm running the shell while another program is running in the background.
I can switch between them with pressing TAB. Everything works great, except that I can still type stuff to the screen.
I have overwritten the read an write functions, so it won't print anything of them, but I can't find out how I can block read().
Can anyone help me block read() so it won't do anything as long as a bool is true?
I'm doing some coroutine stuff, and I'm running the shell while another program is running in the background.
I can switch between them with pressing TAB. Everything works great, except that I can still type stuff to the screen.
I have overwritten the read an write functions, so it won't print anything of them, but I can't find out how I can block read().
Can anyone help me block read() so it won't do anything as long as a bool is true?