Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
tty である stdout に書き込む perl スクリプトがあります。そのttyのタブにいくつのスペースがあるかを判断する方法はありますか?
terminfoの「it」機能が必要です。
use Term::Terminfo; my $ti = Term::Terminfo->new; $tabsize = $ti->getnum( "it" );