(s *Shell)
| 680 | } |
| 681 | |
| 682 | func copyShellProgressBar(s *Shell) ProgressBar { |
| 683 | sp := s.progressBar.(*progressBarImpl) |
| 684 | p := newProgressBar(s) |
| 685 | p.Indeterminate(sp.indeterminate) |
| 686 | p.Display(sp.display) |
| 687 | p.Prefix(sp.prefix) |
| 688 | p.Suffix(sp.suffix) |
| 689 | p.Final(sp.final) |
| 690 | p.Interval(sp.interval) |
| 691 | return p |
| 692 | } |
| 693 | |
| 694 | func getPosition() (int, int, error) { |
| 695 | fd := int(os.Stdout.Fd()) |
no test coverage detected