X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETConsole.py;h=cd0045f01cc59aa67386a58a752e28b06671d4ac;hp=72077e7ac9d65f8314eb679816271ac6e73d8672;hb=d941137f767ad40f7bf253f6828735b641b52dca;hpb=6097d6dc581f9331d80c8f1a04d307dd68a2fd0d;ds=sidebyside diff --git a/client/GoodFETConsole.py b/client/GoodFETConsole.py index 72077e7..cd0045f 100644 --- a/client/GoodFETConsole.py +++ b/client/GoodFETConsole.py @@ -19,6 +19,13 @@ class GoodFETConsole(): client.serInit(); client.setup(); client.start(); + def run(self): + while 1: + sys.stdout.write("gf% "); + sys.stdout.flush(); + cmd=sys.stdin.readline(); + self.handle(cmd); + def handle(self, str): """Handle a command string. First word is command.""" #Lines beginning with # are comments.