During the term of the circuit court for the county in which any prisoner is detained no person shall be removed from the common jail upon any writ of habeas corpus granted in pursuance of this chapter but, upon any such writ, shall be brought before the circuit judge, in open court, who is thereupon to do what to justice shall appertain.
S.C. Code § 17-17-90