Commits

Marek Kubica committed c2247f6

Made it run and show proper results

Comments (0)

Files changed (1)

 
     def _stdin_handler(self, caller_handle, buf, length):
         # not yet known how to proceed with stdin
+        print("stdin handler called", file=sys.stderr)
         return length
 
     _stderr_handler = _stdin_handler
 def main():
     gsi = GhostScriptInterpreter()
     print(gsi.number(1).number(2).add()._pstack())
-    #gsi.pop()
-    #print(gsi.string("abc")._pstack())
-    #gsi.pop()
+    gsi.pop()
+    print(gsi.string("abc")._pstack())
+    gsi.pop()
+    # strange bug, seems to be a problem with ghostscript itself
+    #print(gsi._pstack())
+    #print(gsi.number(42)._pstack())
 
 if __name__ == '__main__':
     main()