porting terminal class