/usr/bin/environ c'est mieux
This commit is contained in:
parent
a47b1e6fb3
commit
246761b7a8
4 changed files with 5 additions and 8 deletions
2
Makefile
2
Makefile
|
@ -21,7 +21,7 @@ install:all
|
|||
done
|
||||
$(INSTALL) -m644 src/xmpp/* $(DATADIR)/poezio/src/xmpp/
|
||||
|
||||
echo "#!/bin/sh" > $(BINDIR)/poezio
|
||||
echo "#!/usr/bin/environ sh" > $(BINDIR)/poezio
|
||||
echo "cd $(DATADIR)/poezio/src/ && python client.py" >> $(BINDIR)/poezio
|
||||
chmod 755 $(BINDIR)/poezio
|
||||
|
||||
|
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
|
@ -1,3 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/environ sh
|
||||
|
||||
cd src/ && python client.py "$@"
|
||||
|
||||
|
|
|
@ -26,9 +26,7 @@ class Win(object):
|
|||
|
||||
def _resize(self, height, width, y, x, parent_win):
|
||||
self.height, self.width, self.x, self.y = height, width, x, y
|
||||
# try:
|
||||
self.win = parent_win.subwin(height, width, y, x)
|
||||
# except:
|
||||
|
||||
def refresh(self):
|
||||
self.win.noutrefresh()
|
||||
|
@ -98,9 +96,7 @@ class TextWin(object):
|
|||
|
||||
def rebuild(self, lines):
|
||||
"""
|
||||
called when the terminal is resized.
|
||||
resize all the windows, clear them and rewrite
|
||||
the lines in them
|
||||
deprecated
|
||||
"""
|
||||
pass # TODO
|
||||
|
||||
|
@ -134,7 +130,7 @@ class TextWin(object):
|
|||
break
|
||||
try:
|
||||
try:win.addstr('\n['+line[0].strftime("%H:%M:%S") + "] <")
|
||||
except:pass # exception happens on resize, but it doesn't change anything...
|
||||
except:pass # exception happens on resize
|
||||
length = len('['+line[0].strftime("%H:%M:%S") + "] <")
|
||||
try:win.attron(curses.color_pair(user.color))
|
||||
except:pass
|
||||
|
|
Loading…
Reference in a new issue