Skip to content

Conversation

@ThomasWaldmann
Copy link
Contributor

shows original, compressed and deduped size plus path name.

output is 79 chars wide, so 80x24 terminal does not wrap/scroll.

long path names are shortened (in a rather simplistic way).

output happens when a new item is started, but not more often than 5/s
(thus, not every pathname is shown)

at the end, the output line is cleared but not scrolled, so it basically vanishes.

shows original, compressed and deduped size plus path name.

output is 79 chars wide, so 80x24 terminal does not wrap/scroll.

long path names are shortened (in a rather simplistic way).

output happens when a new item is started, but not more often than 5/s
(thus, not every pathname is shown)

at the end, the output line is cleared but not scrolled, so it basically vanishes.
@anarcat
Copy link

anarcat commented Mar 24, 2015

can we get a screenshot / copy-paste of what this looks like?

@ThomasWaldmann
Copy link
Contributor Author

sure, here it is (window size is 80x24) - first image is while backup is running, second image is after completion. The one line you see is always overwritten (no scrolling).

(O)riginal size (accumulated), (C)ompressed size (accumulated), (D)eduplicated size (accumulated), current Path/Filename.

Space is a bit limited, must be 1 line and <= 79 chars, thus the very brief labelling.

attic-progress

attic-after

@anarcat
Copy link

anarcat commented Mar 24, 2015

regarding the window size, programs running in a terminal will receive a signal(7) (SIGWINCH in Sun/4.3BSD and linux). Then there's a ioctl to probe the new window size (e.g. this) - but I am not sure how that translates in Python.

@anarcat
Copy link

anarcat commented Mar 24, 2015

ah and yes, that is of course platform-specific, which may mean messing around with (n)curses:

http://stackoverflow.com/questions/5161552/python-curses-handling-window-terminal-resize
http://stackoverflow.com/questions/6418678/resize-the-terminal-with-python

fun stuff.

@ThomasWaldmann
Copy link
Contributor Author

closing this pull request, seems unwanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants