Joined March 2015



Thanks for this. I was struggling to find the same solution myself. However, the "^[[A" and "^[[B" did not register as Up and Down in my terminal for some reason. [1] has an interesting lookup pattern that sets $key_info["Up"} = "$terminfo[kcuu1]"</code>--similarly for other special keys--and with that the Up and Down keys worked.


Where is the definition for @template.update_options_with_class!? Google search comes up empty and searching the rails repository on github finds no matches.

Update: Nevermind. I found it at the bottom of this example. Got stuck thinking it was a Rails method.

1 Karma
0 Total ProTip Views