145. Lunacy of accused.-
(1) Whenever, in the course of a trial by a court-martial, it appears to the court that the person charged is by reason of unsoundness of mind incapable of making his defence, or that he committed the act alleged but was by reason of unsoundness of mind incapable of knowing the nature of the act or knowing that it was wrong or contrary to law, the court shall record a finding accordingly.
(2) The presiding officer of the court, or, in the case of a summary court-martial, the officer holding the trial, shall forthwith report the case to the confirming officer, or to the authority empowered to deal with its finding under section 162, as the case may be.
(3) The confirming officer to whom the case is reported under sub-section (2) may, if he does not confirm the finding, take steps to have the accused person tried by the same or another court-martial for the offence with which he was charged.
(4) The authority to whom the finding of a summary court-martial is reported under sub-section (2), and a confirming officer confirming a finding in any case so reported to him shall order the accused person to be kept in custody in the prescribed manner and shall report the case for the orders of the Central Government.
(5) On receipt of a report under sub-section (4) the Central Government may order the accused person to be detained in a lunatic asylum or other suitable place of safe custody.