def begin():
if _isatty:
global _pager
global _file
_pager = subprocess.Popen(['less', '-F', '-R', '-S', '-X', '-K'],
stdin=subprocess.PIPE, stdout=sys.stdout)
_file = io.TextIOWrapper(_pager.stdin, 'UTF-8')