src/core/CliConsole.js
// Remove a character at a specific position in the string.
Remove a character at a specific position in the string.
Remove a character at a specific position in the string .
function delChar(str, offset) {
      var n = str.length;
      while (n < offset) { str += ' '; n++; }
      if (offset === n) {
        return str.substring(0, offset - 1);
      }
      var left = str.substring(0, offset);
      var right = str.substring(offset + 1);
      return left + right;
    }
function delChar ( str , offset ) { var n = str . length ; while ( n < offset ) { str += ' ' ; n ++ ; } if ( offset === n ) { return str . substring ( 0 , offset - 1 ) ; } var left = str . substring ( 0 , offset ) ; var right = str . substring ( offset + 1 ) ; return left + right ; }
Remove a character at a specific position in the string.
Remove a character at a specific position in the string .
// Pad the string with spaces.