summaryrefslogtreecommitdiff
path: root/src/client.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-02 03:03:06 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-02 03:03:06 +0000
commit3b417f747eac21aa6c72aeaa0cc7d22a8e80d968 (patch)
tree86592f1361e886f4dda69e5bf32a4c384ee54b97 /src/client.py
parent5212eb4abb5d692114ecdfca05feb74d387855df (diff)
downloadpoezio-3b417f747eac21aa6c72aeaa0cc7d22a8e80d968.tar.gz
poezio-3b417f747eac21aa6c72aeaa0cc7d22a8e80d968.tar.bz2
poezio-3b417f747eac21aa6c72aeaa0cc7d22a8e80d968.tar.xz
poezio-3b417f747eac21aa6c72aeaa0cc7d22a8e80d968.zip
doesn't crash anymore on tiny-tiny resize. Rewrite the input on resize
Diffstat (limited to 'src/client.py')
-rw-r--r--src/client.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client.py b/src/client.py
index ddb2e901..0d81e0f2 100644
--- a/src/client.py
+++ b/src/client.py
@@ -18,6 +18,11 @@
# along with Poezio. If not, see <http://www.gnu.org/licenses/>.
import sys
+# disable any printout (this would mess the display)
+stderr = sys.stderr
+sys.stderr = open('/dev/null', 'w')
+sys.stdout = open('/dev/null', 'w')
+
from connection import Connection
from multiuserchat import MultiUserChat
from config import config
@@ -29,11 +34,6 @@ import curses
import signal
signal.signal(signal.SIGINT, signal.SIG_IGN)
-# disable any printout (this would mess the display)
-stderr = sys.stderr
-sys.stderr = open('/dev/null', 'w')
-sys.stdout = open('/dev/null', 'w')
-
import traceback
def exception_handler(type_, value, tb):
"""