After George Martin appeared unsteady in the dock and admitted he had been drinking, he spent lunchtime in the cells.
The 38-year-old muttered obscenities as he was handcuffed and led away.
Martin, of Allars Bank, Hawick, was jailed for a total of seven months. He was sentenced to two months’ imprisonment after being found in contempt of court – added to a five-month jail term imposed for behaving in a threatening or abusive manner in Dickson Street, Hawick on May 11, 2011.