You can use the consoleLib.drawBoxWithColor() system function to draw a rectangle in the active window, using the specified coordinates and color.
consoleLib.drawBox(
row INT in,
column INT in,
depth INT in,
width INT in,
color enumerationColorKind in)