-1
モニタの解像度を行と列に変換します。あなたは端末エミュレータウィンドウの操作コントロールを使用しているのでモニターの解像度を行と列に変換しますか?
次のコードは、(XTerm Control Sequencesを参照)、これまで私が持っているもの
python << EOF
import subprocess
import sys
results = subprocess.Popen(['xrandr'],stdout=subprocess.PIPE).communicate()[0].split("current")[1].split(",")[0]
width = results.split("x")[0].strip()
height = results.split("x")[1].strip()
print width + "x" + height
row = width
col = height
sys.stdout.write("\x1b[8;{rows};{cols}t".format(rows=row, cols=col))
print """
TEST
"""
EOF