summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2015-10-12 13:46:19 +0200
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2015-10-12 13:46:19 +0200
commit6305ef9f48dbac6a929eb479ce9080e5253aa093 (patch)
treedaa521548ca7dd2cba3c0a01865b69e2215f5771
parent91d784a677604c4bb82db3007c5606a258971acc (diff)
downloadranger-6305ef9f48dbac6a929eb479ce9080e5253aa093.tar.gz
rifle.conf: Allow the execution of the executable binary files
-rw-r--r--ranger/config/rifle.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf
index 95e4242a..ff73a072 100644
--- a/ranger/config/rifle.conf
+++ b/ranger/config/rifle.conf
@@ -103,6 +103,7 @@ ext rb  = ruby -- "$1"
 ext js  = node -- "$1"
 ext sh  = sh -- "$1"
 ext php = php -- "$1"
+mime application/x-executable = "$1"
 
 #--------------------------------------------
 # Audio without X
div class='alt'>
74f1512f ^










41535426 ^
74f1512f ^
41535426 ^
7ecfd5eb ^
41535426 ^

74f1512f ^
8c78c3eb ^
74f1512f ^

c8e41a47 ^
9511ff5c ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34


                                     
                        
             
 
                       

                              
                               
                         










                                           
 
                                                        
                                
                                                    

                           
                                       
                              

                                 
          
 
# Test some primitives for text-mode.
#
# To run:
#   $ ./translate tui.mu
#   $ ./a.elf

fn main -> _/ebx: int {
  var nrows/eax: int <- copy 0
  var ncols/ecx: int <- copy 0
  nrows, ncols <- screen-size 0
  enable-screen-grid-mode
  move-cursor 0/screen, 5/row, 0x22/col
  start-color 0/screen, 1/fg, 0x7a/bg
  start-blinking 0/screen
  print-string 0/screen, "Hello world!"
  reset-formatting 0/screen
  move-cursor 0/screen, 6/row, 0x22/col
  print-string 0/screen, "tty dimensions: "
  print-int32-hex 0/screen, nrows
  print-string 0/screen, " rows, "
  print-int32-hex 0/screen, ncols
  print-string 0/screen, " rows\n"

  print-string 0/screen, "press a key to see its code: "
  enable-keyboard-immediate-mode
  var x/eax: grapheme <- read-key-from-real-keyboard
  enable-keyboard-type-mode
  enable-screen-type-mode
  print-string 0/screen, "You pressed "
  var x-int/eax: int <- copy x
  print-int32-hex 0/screen, x-int
  print-string 0/screen, "\n"
  return 0
}