Code:
window -pa @test 10 10 150 150
drawfill -r @test $rgb(255,255,255) $rgb(255,255,255) 10 10 150 150
drawtext -r @test $rgb(255,255,0) 10 12 bah
drawline -r @test $rgb(0,0,0) 40 12 12 120 12
drawtext -r @test $rgb(255,255,0) 25 12 bah
drawline -r @test $rgb(0,0,0) 40 12 12 120 12

Try these commands as follows, this is just an example "not well organized but it may give you an idea.