Encoding for display command