king frederick was standing in his stirrups , three men holding his frantic and heaving charger to keep it from throwing him off ; he was shouting through a speaking-trumpet while signal-flags waved .