client side PS decision. But this wont work. Next commit, PS1 calculation moves to reel-server.rb
working version
added README
corrected README. Added .bashrc
CGI::escape introduced to take care of special characters in the command
1. PS1/PS2 calculation to decide if the request is waiting or completd is fixed now. 2. Empty commands are not executed, simply @bash.execute(n) is done which anyway happens after every command execution. 3. In waiting state - the output is pushed as is, no removal of any data. 4. Input field is emptied on successful POST request to execute URL
1. Added thin server for demo-app to let concurrent requests come in. 2. Removed waiting for the lines to appear for Code execution as it will stall for blocking command output. 3. irb, rails console & rails server are working fine now
introduced a loading image when a command is in progress. The loading image keeps showing for blocking commands output
1. Implemented kill running process & reset buttons. Kill running process gets the parent & kill all child process by sending SIGINT to them. Reset first kills all child process, nullifies the user, returns control back to front end, front end then calls initialize js function which removes all the content inside pre & re-populates
removed complete from $.ajaxSetup & put error inside the option. Removed error handling from individual ajax
added support for 'Get Data' button
Changed the way bash is initialized. Typing exit now kills the main bash process. So no separate 'exit' handling. The begin, rescue should take care
moved other buttons out of the form so that they dont trigger the form submission
Error handling & exit support works now. In case of error, the user object gets reinitialized. Front end receive data.status = 'error' & it calls initialize. The functionality is mapped to the reset button as well
updated README
updated README
updated README - removed kill button not implemented
Reset works by sending kill(-9) to all children & then executing 'exit' so that all pipes gets closed & things start from scratch. Typing 'exit' will also reload things from scratch for the user. The code is put in error handling as well
loading gif. should have committed earlier
rails new / bundle install output is now colored. Bash PS1 coloring does not work well though. So bash prompt needs to be clean. Focus stays on the input field after page load & after data is fetched