mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-30 05:46:31 -04:00
Increased text wrapping safety tolerance
This commit is contained in:
@@ -29,7 +29,7 @@ def entry_list_gen(): # generates and prints a list of all folders and entries
|
||||
if _real <= get_terminal_size()[0]:
|
||||
_width = len(' '.join(_entry_list))
|
||||
else:
|
||||
_width = (len(' '.join(_entry_list)) / (_real / get_terminal_size()[0]) - 25)
|
||||
_width = (len(' '.join(_entry_list)) / (_real / get_terminal_size()[0]) - 50)
|
||||
print(fill(' '.join(_entry_list), width=_width))
|
||||
for _root, _directories, _files in walk(path.expanduser('~/.password-pasture')):
|
||||
for _dir in _directories:
|
||||
@@ -48,7 +48,7 @@ def entry_list_gen(): # generates and prints a list of all folders and entries
|
||||
if _real <= get_terminal_size()[0]:
|
||||
_width = len(' '.join(_entry_list))
|
||||
else:
|
||||
_width = (len(' '.join(_entry_list))/(_real/get_terminal_size()[0]) - 25)
|
||||
_width = (len(' '.join(_entry_list))/(_real/get_terminal_size()[0]) - 50)
|
||||
print(fill(' '.join(_entry_list), width=_width))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user