疑似端末とは何か?
疑似端末は、制御側と従属側という 1 組の仮想デバイスであり、両者が一体となって実際のハードウェア端末をソフトウェアで模倣します。一方は端末エミュレーターや SSH サーバーのようなプログラムによって駆動され、もう一方はシェルやコマンドに渡されます。これにより、対話型プログラムは、人が物理的な端末で入力しているかのように振る舞えます。
なぜ重要なのか
CI で疑似端末を割り当てると、ツールは端末を検出するため、対話的に実行するときと同じように色や進捗を出力します。疑似端末がないことが、一部のコマンドが pipeline で実行されるときに対話的機能を無効にする理由です。
関連ガイド
What Is a Controlling Terminal?A controlling terminal is the terminal associated with a session that delivers keyboard signals and identifie…
What Is an ANSI Escape Code?An ANSI escape code is a special character sequence in a text stream that a terminal interprets to set colors…
What Is Line Buffering?Line buffering flushes output each time a newline is written, so complete lines appear promptly while still b…