summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/bash_automatic_cd.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/bash_automatic_cd.sh b/examples/bash_automatic_cd.sh
index 040bf21a..bdac5757 100644
--- a/examples/bash_automatic_cd.sh
+++ b/examples/bash_automatic_cd.sh
@@ -6,6 +6,8 @@
 # the last visited one after ranger quits.
 # To undo the effect of this function, you can type "cd -" to return to the
 # original directory.
+# 
+# On OS X 10 or later, replace `usr/bin/ranger` with `/usr/local/bin/ranger`.
 
 function ranger-cd {
     tempfile="$(mktemp -t tmp.XXXXXX)"
d5990a945fc'>^
0012c703 ^







ec961781 ^
54d48b25 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

                                       
             
                   
                                                      
                                                          






                                             
                            







                              
                   
 
# example program: managing the display

recipe main [
  switch-to-display
  print-character-to-display 97:literal, 1:literal/red
  1:number/raw, 2:number/raw <- cursor-position-on-display
  wait-for-key-from-keyboard
  clear-display
  move-cursor-on-display 0:literal, 4:literal
  print-character-to-display 98:literal
  wait-for-key-from-keyboard
  move-cursor-on-display 0:literal, 0:literal
  clear-line-on-display
  wait-for-key-from-keyboard
  move-cursor-down-on-display
  wait-for-key-from-keyboard
  move-cursor-right-on-display
  wait-for-key-from-keyboard
  move-cursor-left-on-display
  wait-for-key-from-keyboard
  move-cursor-up-on-display
  wait-for-key-from-keyboard
  return-to-console
]