Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit 397d256

Browse files
author
js-d-coder
committed
update lsi to use shutil to get terminal size
1 parent fce408a commit 397d256

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ but if you aren't one of them, here you go.
1414
import argparse
1515
import os
1616
import sys
17+
import shutil
1718

1819
# get size of the terminal for output in table format
19-
terminalRowSize, terminalColumnSize = os.popen('stty size', 'r').read().split()
20+
terminalRowSize, terminalColumnSize = shutil.get_terminal_size()
2021

2122
parser = argparse.ArgumentParser(description=
2223
"""ls command alternative.

0 commit comments

Comments
 (0)