Tag: capture terminal input and output