Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Send "CTRL-C" in v3_cons_sc using '~'
Peter Dinda [Tue, 24 Apr 2012 23:08:58 +0000 (18:08 -0500)]
linux_usr/v3_cons_sc.c

index 3b9e192..6404905 100644 (file)
@@ -600,6 +600,16 @@ int main(int argc, char* argv[]) {
                writeit(cons_fd,sc);
                sc |= 0x80;
                writeit(cons_fd,sc);
+            } else if (key == '~') {  // CTRL-C 
+                unsigned char sc;
+                sc = 0x1d;  // left ctrl down
+                writeit(cons_fd,sc);
+                sc = 0x2e; // c down
+               writeit(cons_fd,sc);
+               sc = 0x2e | 0x80;   // c up
+                writeit(cons_fd,sc);
+                sc = 0x1d | 0x80;   // left ctrl up
+                writeit(cons_fd,sc);
             }else {
                if (send_char_to_palacios_as_scancodes(cons_fd,key)) {
                    fprintf(stderr, "Error sendign key to console\n");