

def beginEnterCommand(self):
    self.stdscr.erase()
    if len(self.flags.getPresetCommand()):
        self.helperChrome.output(self.mode)
        (minX, minY, _, maxY) = self.getChromeBoundaries()
        yStart = (((maxY + minY) / 2) - 3)
        self.printProvidedCommandWarning(yStart, minX)
        self.stdscr.refresh()
        self.getKey()
        self.mode = SELECT_MODE
        self.dirtyAll()
        return
    self.mode = COMMAND_MODE
    self.helperChrome.output(self.mode)
    logger.addEvent('enter_command_mode')
    command = self.showAndGetCommand()
    if (len(command) == 0):
        self.mode = SELECT_MODE
        yStart.cursesAPI.noecho()
        self.dirtyAll()
        logger.addEvent('exit_command_mode')
        return
    lineObjs = self.getPathsToUse()
    output.execComposedCommand(command, lineObjs)
    sys.exit(0)

dataset/ETHPy150Open facebook/PathPicker/src/screenControl.py Controller.beginEnterCommand/VarMisuse@163/208 `self`->`yStart`