1diff --git a/samcli/commands/_utils/table_print.py b/samcli/commands/_utils/table_print.py
2index de63af29..a9d0f2fe 100644
3--- a/samcli/commands/_utils/table_print.py
4+++ b/samcli/commands/_utils/table_print.py
5@@ -7,6 +7,7 @@ from functools import wraps
6 from typing import Sized
7
8 import click
9+import shutil
10
11 MIN_OFFSET = 20
12
13@@ -30,7 +31,7 @@ def pprint_column_names(
14
15 def pprint_wrap(func):
16 # Calculate terminal width, number of columns in the table
17- width, _ = click.get_terminal_size()
18+ width, _ = shutil.get_terminal_size()
19 # For UX purposes, set a minimum width for the table to be usable
20 # and usable_width keeps margins in mind.
21 width = max(width, min_width)