A ratiometric chemodosimeter for highly selective naked-eye and fluorogenic detection of cyanide.