Commits
- Commit:
2f54e8f761eb748767ae4e443cbf881df4b34a74
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve draw_bar
cache tty_width to avoid calling ioctl in a loop and handle cases when
stdout is not a tty.
- Commit:
52586771172ed747dd0e1952283dbee9d3400448
- From:
- Omar Polo <op@omarpolo.com>
- Date:
adjust get to use walk_path
- Commit:
be727c17aab457ecfb1acc981c5fb82d2dc82c52
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make sure we don't draw a bar larger than the screen
if p->done goes up, way over p->max, we end up with perc being > 100.
in this case, reporting the correct percentage is fine, but drawing a
bar larger than the screen is not.
The bar could still "overflow" and occupy a second line, but only if
the percentage number takes more then 4 digits, so it's unlikely.
- Commit:
f4f42cd328771f335ec1dc15884f2bf337bdf36a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix cd
Walk can be successful in various conditions where cd has to fail.
For instance, we may have reached a file or we couldn't walk all the
required components. In these "soft-fail" cases, the walk has mutated
the fids, so to abort the cd we have to do a walk using a second fid
and then clunk the old or new one depending on if it was _completely_
successful or not.
Another option may be to track the number of walked path and attempt
to walk '..' the right amount of times, this would saves a Tclunk in
the case the walk succeeded and require a slightly bigger 9P packet to
be sent in the failure case. It would complicate the walk_path API
though, so I've not chosen this option.
- Commit:
63b9781e99a5b7519106753eb93d50fb568d4d4c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make pwdfid a variable
- Commit:
a77ed65d76c7a9ad255e397169a02cc1256b0f7b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix two bugs in expect
- looking for Terror doesn't make sense, it's Rerror
- consume the tag before reading the error string
- Commit:
6658888da36b684c02f27edaf6f7752b9db9a92c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify walk_path interface
- Commit:
17391a5db4bf92ad21c2da3d6d2b2f1205606dd3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ftp: draft `cd' command
- Commit:
983250eda8e0a63778e2066f73e46b34aeaf93df
- From:
- Omar Polo <op@omarpolo.com>
- Date:
implement barebone get
to implement the get command:
- implement do_stat and do_read
- implement a simple progress bar
- Commit:
db8967e939125bf527b94b2e694fb5c49fb916b6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add tstat
- Commit:
7f90dd26382fa7c5c0b1851a43be4e2038039faa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ls: use fmt_scaled to print file size
- Commit:
2d83561d6e2a77896fa4692620774c022dc74e7b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
import compat for fmt_scaled
- Commit:
812e093d72831bcdee1bdd1cfe361e097da33611
- From:
- Omar Polo <op@omarpolo.com>
- Date:
tweak ls output
- Commit:
fa4414d1b970df22fb4874e8c1846bc1209921df
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor stat parsing in its own function
- Commit:
28c4058467f20f3658726e4004511018aff322c9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt