Add support of :display option.

May be `Invalid display index`? Also weird indentation. Please fix it.