Expand pseudo terminal data structure size

Expand from 8 to 16 bits for more than 256 sizes