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.


Further text-mode console client enhancements
[palacios.git] / linux_usr / v3_console
index 3662d1d..98cf495 100755 (executable)
@@ -1,11 +1,13 @@
 #!/usr/bin/perl -w
 
+use IPC::Cmd qw/can_run/;
+
 if ($#ARGV!=0) { 
   print "v3_console /dev/v3-vmXXX\n";
-  print "Use '\\' to escape terminal\n\n";
   print "Use v3_console if you are on a terminal and\n";
   print "   want to connect to the VM's screen+keybaord\n";
   print "   in text mode.\n";
+  print "   Use '\\' or 'CTRL-ALT-\\' to escape\n";
   print "Use v3_cons if you are on a raw PC console and\n";
   print "   want to connnect to the VM's screen+keyboard\n";
   print "   in text mode.\n";
@@ -22,5 +24,11 @@ if ($#ARGV!=0) {
 
 $vm=shift;
 
-system "v3_cons_sc $vm 2>/dev/null";
+if (can_run('v3_cons_tc')) {
+    system "v3_cons_tc $vm 2>/dev/null";
+} elsif (can_run('v3_cons_sc')) {
+    system "v3_cons_sc $vm 2>/dev/null";
+} else {
+    print "You have no console program on your path\n";
+}