(self, args)
LINE INPUT: request line of input from user.
LINE INPUT: request line of input from user.
LINE INPUT : request line of input from user .
def line_input_(self, args):
        """LINE INPUT: request line of input from user."""
        file_number = next(args)
        if file_number is None:
            # get prompt
            newline, prompt, _ = next(args)
            finp = None
        else:
            prompt, newline = None, None
            file_number = values.to_int(file_number)
            error.range_check(0, 255, file_number)
            finp = self.files.get(file_number, mode=b'IR')
        # get string variable
        readvar, indices = next(args)
        list(args)
        readvar = self.memory.complete_name(readvar)
        if readvar[-1:] != values.STR:
            raise error.BASICError(error.TYPE_MISMATCH)
        # read the input
        if finp:
            line, cr = finp.read_line()
            if not line and not cr:
                raise error.BASICError(error.INPUT_PAST_END)
        else:
            self.interpreter.input_mode = True
            self.parser.redo_on_break = True
            line = self.console.read_line(prompt, write_endl=newline)
            self.parser.redo_on_break = False
            self.interpreter.input_mode = False
        self.memory.set_variable(readvar, indices, self.values.from_value(line, values.STR))
def line_input_ ( self , args ) : file_number = next ( args ) if file_number is None : # get prompt newline , prompt , _ = next ( args ) finp = None else : prompt , newline = None , None file_number = values . to_int ( file_number ) error . range_check ( 0 , 255 , file_number ) finp = self . files . get ( file_number , mode = b'IR' ) # get string variable readvar , indices = next ( args ) list ( args ) readvar = self . memory . complete_name ( readvar ) if readvar [ - 1 : ] != values . STR : raise error . BASICError ( error . TYPE_MISMATCH ) # read the input if finp : line , cr = finp . read_line ( ) if not line and not cr : raise error . BASICError ( error . INPUT_PAST_END ) else : self . interpreter . input_mode = True self . parser . redo_on_break = True line = self . console . read_line ( prompt , write_endl = newline ) self . parser . redo_on_break = False self . interpreter . input_mode = False self . memory . set_variable ( readvar , indices , self . values . from_value ( line , values . STR ) )