You can't... If you're trying to watch a movie, then you're not concentrating on programming.
I suggest you watch the movie, then do some programming...
Actually, you probably should do the programming first, and when you're done, THEN watch the movie.