Subversion Repositories SvarDOS

Rev

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

Rev 479 Rev 480
Line 646... Line 646...
646
    envsiz *= 16;
646
    envsiz *= 16;
647
    printf("rmod_inpbuff at %04X:%04X, env_seg at %04X:0000 (env_size = %u bytes)\r\n", rmod->rmodseg, RMOD_OFFSET_INPBUFF, *rmod_envseg, envsiz);
647
    printf("rmod_inpbuff at %04X:%04X, env_seg at %04X:0000 (env_size = %u bytes)\r\n", rmod->rmodseg, RMOD_OFFSET_INPBUFF, *rmod_envseg, envsiz);
648
  }*/
648
  }*/
649
 
649
 
650
  do {
650
  do {
-
 
651
    /* terminate previous command with a CR/LF if ECHO ON (but not during BAT processing) */
651
    if (rmod->flags & FLAG_ECHOFLAG) outputnl(""); /* terminate the previous command with a CR/LF */
652
    if ((rmod->flags & FLAG_ECHOFLAG) && (rmod->batfile[0] != 0)) outputnl("");
652
 
653
 
653
    SKIP_NEWLINE:
654
    SKIP_NEWLINE:
654
 
655
 
655
    /* cancel any redirections that may have been set up before */
656
    /* cancel any redirections that may have been set up before */
656
    redir_revert();
657
    redir_revert();
Line 674... Line 675...
674
        /* restore echo flag as it was before running the bat file */
675
        /* restore echo flag as it was before running the bat file */
675
        rmod->flags &= ~FLAG_ECHOFLAG;
676
        rmod->flags &= ~FLAG_ECHOFLAG;
676
        if (rmod->flags & FLAG_ECHO_BEFORE_BAT) rmod->flags |= FLAG_ECHOFLAG;
677
        if (rmod->flags & FLAG_ECHO_BEFORE_BAT) rmod->flags |= FLAG_ECHOFLAG;
677
        continue;
678
        continue;
678
      }
679
      }
-
 
680
      /* skip any leading spaces */
-
 
681
      while (*cmdline == ' ') cmdline++;
679
      /* output prompt and command on screen if echo on and command is not
682
      /* output prompt and command on screen if echo on and command is not
680
       * inhibiting it with the @ prefix */
683
       * inhibiting it with the @ prefix */
681
      if ((rmod->flags & FLAG_ECHOFLAG) && (cmdline[0] != '@')) {
684
      if ((rmod->flags & FLAG_ECHOFLAG) && (cmdline[0] != '@')) {
682
        build_and_display_prompt(BUFFER, *rmod_envseg);
685
        build_and_display_prompt(BUFFER, *rmod_envseg);
683
        outputnl(cmdline);
686
        outputnl(cmdline);