From 89b811bbadca81a386080f294c5e9cd811b3eac0 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Wed, 8 Aug 2018 14:27:14 +0800 Subject: Add instructions in default layer --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index 47efe6f..90eed78 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,6 +39,12 @@ fn main() { main.add_global_callback('q', |s| s.quit()); main.add_global_callback('s', |s| search(s)); + main.add_layer(TextView::new( + "Hit s to search +Hit q to quit +Hit t to pop layer", + )); + main.run(); } -- cgit v1.2.3