RailsEditor 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- data/rails/script/editor +4 -1
- metadata +1 -1
data/rails/script/editor
CHANGED
@@ -62,6 +62,8 @@ ARGV.options do |opts|
|
|
62
62
|
opts.separator "Available colors are black, red, green, yellow, blue, magenta, cyan, white, and default (transparent)"
|
63
63
|
opts.on("-Nname", "--name=NAME",String,
|
64
64
|
"Name to use for screen session","Default: Rails") { |OPTIONS[:screen_name]| }
|
65
|
+
opts.on("-Echar", "--escape=CHARACTER",String,
|
66
|
+
"Escape Key to use for screen session","Default: C-a") { |OPTIONS[:screen_escape]| }
|
65
67
|
opts.on("-?", "--help",
|
66
68
|
"Show this help message.") { puts opts; exit }
|
67
69
|
opts.parse!
|
@@ -76,6 +78,7 @@ OPTIONS[:caption_foreground_color] ||= 'C'
|
|
76
78
|
OPTIONS[:caption_background_color] ||= 'd'
|
77
79
|
OPTIONS[:caption_highlight_color] ||= 'R'
|
78
80
|
OPTIONS[:shell] ||= 'bash'
|
81
|
+
OPTIONS[:screen_escape] ||= "^Aa"
|
79
82
|
|
80
83
|
begin
|
81
84
|
|
@@ -127,7 +130,7 @@ begin
|
|
127
130
|
Dir.chdir($home)
|
128
131
|
|
129
132
|
# Start a screen with the newly linked .screenrc.code
|
130
|
-
exec("screen","-c#{File.basename(screenfile)}","-S","rails")
|
133
|
+
exec("screen","-c#{File.basename(screenfile)}","-S","rails","-e",OPTIONS[:screen_escape])
|
131
134
|
|
132
135
|
rescue => e
|
133
136
|
require "pp"
|
metadata
CHANGED