format keyword output
format output according to OS