
562 N.W.2d 737 (1997)
1997 ND 65
STATE of North Dakota, Plaintiff and Appellee,
v.
Wayne ZAHN, Defendant and Appellant.
Criminal No. 960190.
Supreme Court of North Dakota.
April 22, 1997.
*738 Robert P. Bennett, Assistant Attorney General, Attorney General's Office, Bismarck, for plaintiff and appellee.
Thomas E. Goven, Valley City, for defendant and appellant.
SANDSTROM, Justice.
[¶ 1] Wayne Zahn appeals from a district court order finding him in contempt of court. We affirm, concluding the district court did not abuse its discretion in finding Zahn in contempt.

I
[¶ 2] Zahn and an acquaintance, Ida Fregien, were each charged with disorderly conduct *739 following an altercation between them. Zahn appeared in Dickey County District Court on July 18, 1996, as a witness for the State in Fregien's trial. Because Zahn had previously engaged in disruptive behavior in the courthouse and in the courtroom, the district court warned him about possible contempt charges if such behavior continued.
"THE COURT: Before we get started, I'm going to address Mr. Wayne Zahn, who is a witness in this case. Mr. Zahn, based on your prior behavior in this Courtroom and in this Courthouse, I am going to give you a warning that you will behave yourself in this Courthouse, show proper respect to the Court and when you testify as a witness
"MR. ZAHN: (Inaudible)
"THE COURT: when you testify as a witness, you will answer the questions of the attorneys and not offer any extraneous information. If you step out of line on that warning, I will hold you in contempt of court and put you in jail. Do you understand that?
"MR. ZAHN: I guess I did not know I was on trial here.
"THE COURT: Do you understand what I said?
"MR. ZAHN: Yes, I do sir.
"THE COURT: Okay. Now I would like you to move over to this side of the Courtroom so you're not behind Ms. Fregien.
"MR. ZAHN: I see how this gonna happen. I'm
"THE COURT: Mr.Mr. Zahn
"MR. ZAHN: I'm out of here
"THE COURT: Mr. Zahn
"MR. ZAHN: I'm out of here.
"THE COURT: You are in contempt of court.
"MR. ZAHN: Cause I can't leave this courtroom?
"THE COURT: You cannot leave under these circumstances.
"MR. ZAHN: When can I leave?
"THE COURT: You can leave when I say you can leave. You are here as a witness.
"MR. ZAHN: I'm not going to testify. I see how this going to happen already. I
"THE COURT: Mr. Bohannon, Mr. Zahn is [in] contempt of court; take him into custody. I am sentencing him to ten days in jail."
The district court charged him with contempt under N.D.C.C. § 27-10-01.3.
[¶ 3] Zahn appeals from the July 18, 1996, contempt order of the Dickey County District Court. The district court had authority to issue the order under N.D.C.C. § 27-10-01.3(2). We granted Zahn's motion for stay pending appeal on July 22, 1996. This Court has jurisdiction under N.D. Const. Art. VI, § 2, and N.D.C.C. § 27-10-01.3(3). This appeal is timely under N.D.R.App.P. 4(c).

II
[¶ 4] Under N.D.C.C. § 27-10-01.1(1):
"`Contempt of court' means:
"a. Intentional misconduct in the presence of the court which interferes with the court proceeding or with the administration of justice, or which impairs the respect due the court;
* * *
"c. Intentional disobedience, resistance, or obstruction of the authority, process, or order of a court ...;
"d. Intentional refusal of a witness to appear for examination, to be sworn or to affirm, or to testify after being ordered to do so by the court."
"The ultimate determination of whether a contempt has been committed is within the trial court's sound discretion." City of Grand Forks v. Dohman, 552 N.W.2d 69, 70 (N.D.1996); Mehl v. Mehl, 545 N.W.2d 777, 780 (N.D.1996). "The decision will not be overturned on appeal unless there is a plain abuse of discretion." Dohman; Mehl. "A trial court abuses its discretion when it acts in an arbitrary, unreasonable, or unconscionable manner." Dohman.


*740 III
[¶ 5] Zahn argues under the Fifth Amendment privilege against self-incrimination, he cannot be forced to testify in Fregien's trial. Therefore, he argues, the trial court abused its discretion in charging him with contempt for refusing to testify.

A
[¶ 6] "The Fifth Amendment to the United States Constitution provides an accused with a privilege against self-incrimination: `No person ... shall be compelled, in any criminal case, to be a witness against himself.'" State v. Beaton, 516 N.W.2d 645, 647 (N.D.1994); see also N.D. Const. Art. I, § 12 ("[n]o person shall ... be compelled in any criminal case to be a witness against himself").
[¶ 7] Zahn argues because he is a "co-defendant" in this case, he has the same rights under the Fifth Amendment as the defendant. See State v. His Chase, 531 N.W.2d 271, 273 (N.D.1995) (defendant in a criminal trial has the right to refuse to testify). Zahn was, however, a witness on behalf of the State in Fregien's trial. The privilege against self-incrimination applies to him not as a defendant, but as a witness.

B
[¶ 8] A witness can invoke the privilege against self-incrimination. Matter of Contempt of Grajedas, 515 N.W.2d 444, 449 (N.D.1994). "The witness must claim the privilege `with respect to particular questions.'" Grajedas (quoting American State Bank of Dickinson v. Stoltz, 345 N.W.2d 365, 369 (N.D.1984)). Therefore, Zahn did not have a constitutional right to a blanket refusal to testify. See Grajedas at 449 ("[u]nless they are defendants, witnesses in a criminal proceeding cannot refuse to testify").

IV
[¶ 9] The district court found Zahn in contempt and ordered him incarcerated for ten days. See N.D.C.C. § 27-10-01.3(2) ("[t]he judge presiding in an action or proceeding may impose a punitive sanction upon a person who commits contempt of court in the actual presence of the court"); see also N.D.C.C. § 27-10-01.4(2)(b) (allowing "a fine of not more than five hundred dollars, imprisonment in the county jail for not more than thirty days, or both").
[¶ 10] In its order on summary contempt, the court imposed the ten-day incarceration "for the purpose of preserving order in the Court and to protect the authority and dignity of the Court." See N.D.C.C. § 27-10-01.3(2) ("[t]he judge shall impose the punitive sanction immediately after the contempt of court and only for the purpose of preserving order in the court and protecting the authority and dignity of the court").

A
[¶ 11] Under N.D.C.C. § 27-10-01.1(c), "[i]ntentional disobedience, resistance, or obstruction of the authority, process, or order of a court" constitutes contempt.
[¶ 12] Intentional disobedience of a court order constitutes contempt. N.D.C.C. § 27-10-01.1(c); Blaesing v. Syvertson, 532 N.W.2d 670, 671 (N.D.1995). A court order can be oral. E.E.E., Inc. v. Hanson, 318 N.W.2d 101, 105 n. 4 (N.D.1982). At the trial, the court told Zahn to move to the other side of the courtroom, away from Fregien. Zahn refused and proceeded to leave. The court ordered Zahn not to leave. As Zahn continued toward the door, the court placed him in contempt.
[¶ 13] We recognize the "necessity of maintaining the dignity of and respect toward the courts." 17 Am.Jur.2d Contempt § 1 (1990). The court has the inherent power to maintain order in the courtroom. In Interest of J.S., 530 N.W.2d 331, 335 (N.D.1995); Davidson v. State, 591 So.2d 901, 902-03 (Ala.Cr.App.1991). The power to control proceedings in the courtroom includes controlling the conduct of witnesses. See Monaco v. Cecconi, 180 Mont. 111, 589 P.2d 156, 161 (1979) (the court has the power to direct a witness to respond to questions).
[¶ 14] A court can punish disrespectful behavior "even when the behavior is a reaction to a court order which eventually is determined to be invalid." Kidd v. Caldwell, 371 So.2d 247, 252 (La.1979). Any disobedience of a court order is inherently disrespectful *741 of the court. Matter of Schaeffer, 370 A.2d 1362, 1363 (D.C.1977). "Absent a showing of transparent invalidity or patent frivolity surrounding the order, it must be obeyed until stayed or reversed by orderly review." Kidd.

B
[¶ 15] Generally, a court should give "fair warning that the continuance of certain conduct would risk contempt," unless the conduct is clearly contemptuous. 17 Am.Jur.2d Contempt § 178 (1990). If a warning is required, the district court can rely only on conduct subsequent to the warning in finding a person in contempt. See 17 Am.Jur.2d Contempt § 178 (1990) (imposing a contempt sanction is not justified if a warning was required and not given).
[¶ 16] "A person may be held in contempt for refusal to obey a subpoena duly served on him in a pending action." 17 Am.Jur.2d Contempt § 138 (1990). Zahn was not, however, under subpoena.
[¶ 17] A warning is required where the conduct is not clearly contemptuous. See Dohman at 71 (affirming contempt order where defendant verbally attacked jurors after the verdict was read); 17 Am.Jur.2d Contempt § 178 (1990). Zahn refused to follow the judge's order and proceeded to leave the courtroom. We conclude Zahn's statement he intended to leave and his conduct indicating he was leaving were "clearly contemptuous" without prior warning.

C
[¶ 18] Even if there had been a duty to warn, the court clearly warned Zahn. At the beginning of the trial, the court said:
"Before we get started, I'm going to address Mr. Wayne Zahn, who is a witness in this case. Mr. Zahn, based on your prior behavior in this Courtroom and in this Courthouse, I am going to give you a warning that you will behave yourself in this Courthouse, show proper respect to the Court.... If you step out of line on that warning, I will hold you in contempt of court and put you in jail."
[¶ 19] In State v. Goeller, 263 N.W.2d 135, 139 (N.D.1978), this Court stated the warning must make clear the "specific sanction to be imposed for the repetition of the conduct." (reversing trial court's contempt order imposing a ten-day jail sentence for giggling, laughing, and smirking in the courtroom, without a clear warning as to the specific sanction to be imposed). Unlike in Goeller, the district court told Zahn he would be held in contempt and incarcerated for misbehavior. Even though it was not required, the district court gave Zahn adequate warning.

V
[¶ 20] The district court did not abuse its discretion in finding Zahn in contempt.
[¶ 21] After being warned, and before the district court held him in contempt, Zahn disobeyed the court's order by trying to leave the courtroom, and by words and actions, Zahn impaired the respect due the court.
[¶ 22] We conclude the district court's finding of contempt in this case was not an abuse of discretion. The order of the district court is affirmed. The district court may order Zahn's surrender upon notice to complete his sentence.
[¶ 23] VANDE WALLE, C.J., and NEUMANN, MARING, and MESCHKE, JJ., concur.
