Threw together a quick plugin that monkey-patches exec.py so that you can send input to programs run with Ctrl+B:
github.com/eric-wieser/build-with-input
(note that the sublime package manager is currently broken WRT external packages - you’ll have to do it manually)