Changeset 14430 for misc/runpugs/bin

Show
Ignore:
Timestamp:
10/22/06 01:36:47 (2 years ago)
Author:
andara
Message:

[runpugs]
-improved error handling (try not to die).
-Web::Terminal: new generic version with command history, supports GHCi and
many more. (not live yet)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • misc/runpugs/bin/termdispatcher2.pl

    r14366 r14430  
    1414my $cmd=$ARGV[1] || 'my $a='.$id.';say "Hello, $a";'; 
    1515#my $cmd='my $a='.$id.';say "Hello, $a";'; 
    16 my $prompt='pugs> '; 
     16#my $prompt='pugs> '; 
     17my $prompt='Prelude> '; 
    1718print "Sending msg $id: $cmd\n"; 
    1819my $ip="127.0.0.1"; 
    19 my $reply = &Web::Terminal::Dispatcher::send($id,$ip,$prompt.$cmd); 
     20(my $reply,my $histref) = &Web::Terminal::Dispatcher::send($id,$ip,$prompt.$cmd); 
    2021print $reply; 
     22print "\nHistory\n"; 
     23for my $entry (@{$histref}) { 
     24print "\t$entry\n"; 
     25} 
    2126