Subversion Repositories SvarDOS

Rev

Rev 2201 | Rev 2203 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2201 Rev 2202
Line 657... Line 657...
657
  /*** PARSING COMMAND LINE DONE *********************************************/
657
  /*** PARSING COMMAND LINE DONE *********************************************/
658
 
658
 
659
  /* if no filespec provided, then it's about the current directory */
659
  /* if no filespec provided, then it's about the current directory */
660
  if (req.filespecptr == NULL) req.filespecptr = ".";
660
  if (req.filespecptr == NULL) req.filespecptr = ".";
661
 
661
 
662
  availrows = screen_getheight() - 2;
662
  availrows = screen_getheight() - 1;
663
 
663
 
664
  /* special case: "DIR drive:" (truename() fails on "C:" under MS-DOS 6.0) */
664
  /* special case: "DIR drive:" (truename() fails on "C:" under MS-DOS 6.0) */
665
  if ((req.filespecptr[0] != 0) && (req.filespecptr[1] == ':') && (req.filespecptr[2] == 0)) {
665
  if ((req.filespecptr[0] != 0) && (req.filespecptr[1] == ':') && (req.filespecptr[2] == 0)) {
666
    if ((req.filespecptr[0] >= 'a') && (req.filespecptr[0] <= 'z')) {
666
    if ((req.filespecptr[0] >= 'a') && (req.filespecptr[0] <= 'z')) {
667
      buf->path[0] = req.filespecptr[0] - ('a' - 1);
667
      buf->path[0] = req.filespecptr[0] - ('a' - 1);
Line 684... Line 684...
684
      drv -= 'a';
684
      drv -= 'a';
685
    } else {
685
    } else {
686
      drv -= 'A';
686
      drv -= 'A';
687
    }
687
    }
688
    cmd_vol_internal(drv, buf->buff64);
688
    cmd_vol_internal(drv, buf->buff64);
-
 
689
    availrows -= 2;
689
  }
690
  }
690
 
691
 
691
  NEXT_ITER: /* re-entry point for /S recursing */
692
  NEXT_ITER: /* re-entry point for /S recursing */
692
 
693
 
693
  summary_fcount = 0;
694
  summary_fcount = 0;
Line 697... Line 698...
697
    sprintf(buf->buff64, svarlang_str(37,20)/*"Directory of %s"*/, buf->path);
698
    sprintf(buf->buff64, svarlang_str(37,20)/*"Directory of %s"*/, buf->path);
698
    /* trim at first '?', if any */
699
    /* trim at first '?', if any */
699
    for (i = 0; buf->buff64[i] != 0; i++) if (buf->buff64[i] == '?') buf->buff64[i] = 0;
700
    for (i = 0; buf->buff64[i] != 0; i++) if (buf->buff64[i] == '?') buf->buff64[i] = 0;
700
    outputnl(buf->buff64);
701
    outputnl(buf->buff64);
701
    outputnl("");
702
    outputnl("");
-
 
703
    if (req.flags & DIR_FLAG_PAUSE) {
-
 
704
      dir_pagination(&availrows);
702
    availrows -= 3;
705
      dir_pagination(&availrows);
-
 
706
    }
703
  }
707
  }
704
 
708
 
705
  /* if dir: append a backslash (also get its len) */
709
  /* if dir: append a backslash (also get its len) */
706
  i = path_appendbkslash_if_dir(buf->path);
710
  i = path_appendbkslash_if_dir(buf->path);
707
 
711