Using getbufmode() for a second...
use __flbf() instead of getbufmode