소스 검색

set number of rows/cols to match real tty

Daniel Sheffield 2 달 전
부모
커밋
ef80a67a82
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      capture.sh

+ 1 - 0
capture.sh

@@ -44,6 +44,7 @@ then
 	socat PTY,rawer,link="$PTY" EXEC:"$(shell_escape tee -a "$DAT" "$OUT" "$tty")" &
 	socat="$!"
 	while ! [ -e "$PTY" ]; do sleep 0.01; done
+	stty -F "$PTY" rows "$LINES" cols "$COLUMNS"
 	exec 1> "$PTY"
 else
 	exec 1> >(tee -a "$DAT" "$OUT")