Figure 1: Using ptys to hook an xterm to a legacy system