<P> With gunshots still being heard on Gordon's front and Union skirmishers still advancing on Longstreet's front, Lee received a message from Grant . After several hours of correspondence between Grant and Lee, a cease - fire was enacted and Grant received Lee's request to discuss surrender terms . </P> <P> Well - dressed in his customary uniform, Lee waited for Grant to arrive . Grant, whose headache had ended when he received Lee's note, arrived at the courthouse in a mud - spattered uniform--a government - issue sack coat with trousers tucked into muddy boots, no sidearms, and with only his tarnished shoulder straps showing his rank . It was the first time the two men had seen each other face - to - face in almost two decades . Suddenly overcome with sadness, Grant found it hard to get to the point of the meeting and instead the two generals briefly discussed their only previous encounter, during the Mexican--American War . Lee brought the attention back to the issue at hand, and Grant offered the same terms he had before: </P> <P> In accordance with the substance of my letter to you of the 8th inst., I propose to receive the surrender of the Army of N. Va. on the following terms, to wit: Rolls of all the officers and men to be made in duplicate . One copy to be given to an officer designated by me, the other to be retained by such officer or officers as you may designate . The officers to give their individual paroles not to take up arms against the Government of the United States until properly exchanged, and each company or regimental commander sign a like parole for the men of their commands . The arms, artillery and public property to be parked and stacked, and turned over to the officer appointed by me to receive them . This will not embrace the side - arms of the officers, nor their private horses or baggage . This done, each officer and man will be allowed to return to their homes, not to be disturbed by United States authority so long as they observe their paroles and the laws in force where they may reside . </P> <P> The terms were as generous as Lee could hope for; his men would not be imprisoned or prosecuted for treason . Officers were allowed to keep their sidearms, horses, and personal baggage . In addition to his terms, Grant also allowed the defeated men to take home their horses and mules to carry out the spring planting and provided Lee with a supply of food rations for his starving army; Lee said it would have a very happy effect among the men and do much toward reconciling the country . The terms of the surrender were recorded in a document hand - written by Grant's adjutant Ely S. Parker, a Native American of the Seneca tribe, and completed around 4 p.m., April 9 . Lee, upon discovering Parker to be a Seneca remarked "It is good to have one real American here ." Parker replied, "Sir, we are all Americans ." As Lee left the house and rode away, Grant's men began cheering in celebration, but Grant ordered an immediate stop . "I at once sent word, however, to have it stopped," he said . "The Confederates were now our countrymen, and we did not want to exult over their downfall," he said . Custer and other Union officers purchased from McLean the furnishings of the room Lee and Grant met in as souvenirs, emptying it of furniture . Grant soon visited the Confederate army, and then he and Lee sat on the McLean home's porch and met with visitors such as Longstreet and George Pickett before the two men left for their capitals . </P>

What are the terms of the surrender at appomattox courthouse
find me the text answering this question