Commit 402aeee

Richard Luby <richluby@gmail.com>
2016-12-02 11:26:12
client displays reference if present
client can display a reference location for the question if present and the user answered incorrectly
1 parent 7312ff8
Changed files (1)
command.go
@@ -218,6 +218,9 @@ func parseUserTestAnswer(input string, record *ClientRecord, clientTest *ClientT
 		rightString := fmt.Sprintf(COLOR_RED+"%"+
 			strconv.Itoa(maxX-ApplicationView.COMMAND_PALLET_WIDTH-len(leftString)-4)+
 			"s\n"+COLOR_RESET, "[X]")
+		if record.Reference != "" {
+			rightString = fmt.Sprintf("%s%15s    Ref: %s\n", rightString, "", record.Reference)
+		}
 		displayStringToMainScreen(leftString + rightString)
 		clientTest.Records[index].ClientAnswer = input
 		return 0, nil