]> git.pld-linux.org Git - packages/amaroc.git/blobdiff - amaroc-curses.patch
- updated to 0.3
[packages/amaroc.git] / amaroc-curses.patch
diff --git a/amaroc-curses.patch b/amaroc-curses.patch
new file mode 100644 (file)
index 0000000..6598365
--- /dev/null
@@ -0,0 +1,31 @@
+--- amaroc.py.orig     2006-08-02 08:41:39.000000000 +0200
++++ amaroc.py  2006-09-21 17:58:20.000000000 +0200
+@@ -235,7 +235,11 @@
+ curses.noecho()
+ curses.cbreak()
+ stdscr.keypad(1)
+-curses.curs_set(0)
++try:
++    curses.curs_set(0)
++except:
++    pass
++
+ whoami = commands.getoutput('whoami')
+ y, x = stdscr.getmaxyx()
+--- amaroc.py.orig     2006-09-21 18:02:50.000000000 +0200
++++ amaroc.py  2006-09-21 18:03:06.000000000 +0200
+@@ -26,7 +26,12 @@
+ # Functions
+ ############
+ def endit():
+-      curses.curs_set(1); curses.nocbreak(); stdscr.keypad(0); curses.echo()
++      try:
++          curses.curs_set(1); 
++      except:
++          pass
++      
++      curses.nocbreak(); stdscr.keypad(0); curses.echo()
+       curses.endwin()
+ def ak_basic(doit, return_status=0):
This page took 0.027444 seconds and 4 git commands to generate.