From b7cf7d08f60d6d88e5e7463cc9147ca7e80c8cd0 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 29 Apr 2015 12:11:11 -0700 Subject: [PATCH] ansi-viewer: hover text. --- example/ansi-viewer/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/example/ansi-viewer/index.js b/example/ansi-viewer/index.js index 3625eb0..ea81584 100644 --- a/example/ansi-viewer/index.js +++ b/example/ansi-viewer/index.js @@ -195,6 +195,11 @@ list.on('select', function(el, selected) { }); }); +list.items.forEach(function(item, i) { + var text = item.getText(); + item.setHover(map[text]); +}); + list.focus(); list.enterSelected(0);