lib/prompts/list.js
function moveRender (type) {
    var method = type ? 'down' : 'up'
    
    ui
      .left(lastLen + 2)
      .up(count - cur)
      .write('  ')
    
    // Each time move to right-bottom.
    ui[method]()
      .left(2)
      .write(chalk.blue(pointer))
      .left(2)
      .down(count - (type ? ++cur : --cur))
      .right(lastLen + 2)
  }
function moveRender (type) {
    var method = type ? 'down' : 'up'
    
    ui
      .left(lastLen + 2)
      .up(count - cur)
      .write('  ')
    
    // Each time move to right-bottom.
    ui[method]()
      .left(2)
      .write(chalk.blue(pointer))
      .left(2)
      .down(count - (type ? ++cur : --cur))
      .right(lastLen + 2)
  }
function moveRender ( type ) { var method = type ? 'down' : 'up' ui . left ( lastLen + 2 ) . up ( count - cur ) . write ( '  ' ) // Each time move to right-bottom. ui [ method ] ( ) . left ( 2 ) . write ( chalk . blue ( pointer ) ) . left ( 2 ) . down ( count - ( type ? ++ cur : -- cur ) ) . right ( lastLen + 2 ) }
Move cursor and render pointer, type 0 for up, 1 for down.
Move cursor and render pointer type 0 for up 1 for down .