summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-05-11 10:38:57 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-05-11 10:38:57 +0000
commita14611dbde118b1ffa6f66eb7237ddc0c3c61508 (patch)
tree72323783087bc71098bbbe810adeda4b5243c07d /src/common.py
parentf7ae12fc8362a5df7a82ccb8900fa8141121d3ab (diff)
downloadpoezio-a14611dbde118b1ffa6f66eb7237ddc0c3c61508.tar.gz
poezio-a14611dbde118b1ffa6f66eb7237ddc0c3c61508.tar.bz2
poezio-a14611dbde118b1ffa6f66eb7237ddc0c3c61508.tar.xz
poezio-a14611dbde118b1ffa6f66eb7237ddc0c3c61508.zip
Fix the resize bug and avoid some blinking on resize \o/ fixed #1153
Diffstat (limited to 'src/common.py')
-rw-r--r--src/common.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common.py b/src/common.py
index 340eb213..1c119c1e 100644
--- a/src/common.py
+++ b/src/common.py
@@ -30,7 +30,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# various useful functions
+__doc__ = "various useful functions"
import base64
import os
@@ -41,6 +41,11 @@ import curses
import traceback
import sys
+def debug(s):
+ f = open("debug", 'a')
+ f.write(s+'\n')
+ f.close()
+
def exception_handler(type_, value, trace):
"""
on any traceback: exit ncurses and print the traceback