get terminal width. FIXME: enqueue must be async