Add support of pseudo TTYs