mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 16:47:14 -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]:
|
if _real <= get_terminal_size()[0]:
|
||||||
_width = len(' '.join(_entry_list))
|
_width = len(' '.join(_entry_list))
|
||||||
else:
|
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))
|
print(fill(' '.join(_entry_list), width=_width))
|
||||||
for _root, _directories, _files in walk(path.expanduser('~/.password-pasture')):
|
for _root, _directories, _files in walk(path.expanduser('~/.password-pasture')):
|
||||||
for _dir in _directories:
|
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]:
|
if _real <= get_terminal_size()[0]:
|
||||||
_width = len(' '.join(_entry_list))
|
_width = len(' '.join(_entry_list))
|
||||||
else:
|
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))
|
print(fill(' '.join(_entry_list), width=_width))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user