Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
204
Issues
204
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
0216ac29
Commit
0216ac29
authored
Nov 15, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not refresh the screen on each input
parent
f4d4a205
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
11 deletions
+17
-11
data/default_config.cfg
data/default_config.cfg
+1
-1
src/buffers.py
src/buffers.py
+1
-0
src/connection.py
src/connection.py
+0
-1
src/core.py
src/core.py
+5
-3
src/room.py
src/room.py
+1
-1
src/tab.py
src/tab.py
+9
-5
No files found.
data/default_config.cfg
View file @
0216ac29
...
...
@@ -17,7 +17,7 @@ port = 5222
resource =
# the nick you will use when joining a room with no associated nick
# If this is empty, the $USER environn
<
ement variable will be used
# If this is empty, the $USER environnement variable will be used
default_nick =
# Jabber identifiant. Specify it only if you want to connect using an existing
...
...
src/buffers.py
View file @
0216ac29
...
...
@@ -491,6 +491,7 @@ class TextWin(Win):
if
txt
.
startswith
(
'
\n
'
):
txt
=
txt
[
1
:]
first
=
False
log
.
debug
(
'%s built
\n
'
%
len
(
lines
))
return
lines
return
lines
[
-
len
(
messages
):]
# return only the needed number of lines
...
...
src/connection.py
View file @
0216ac29
...
...
@@ -26,7 +26,6 @@ import sleekxmpp
from
config
import
config
from
logger
import
logger
from
handler
import
Handler
class
Connection
(
sleekxmpp
.
ClientXMPP
):
"""
...
...
src/core.py
View file @
0216ac29
...
...
@@ -822,8 +822,8 @@ class Core(object):
body
=
message
[
'body'
]
if
body
:
date
=
date
if
delayed
==
True
else
None
if
not
delayed
:
logger
.
groupchat
(
room_from
,
nick_from
,
body
)
#
if not delayed:
#
logger.groupchat(room_from, nick_from, body)
self
.
add_message_to_text_buffer
(
room
,
body
,
date
,
nick_from
)
self
.
refresh_window
()
self
.
doupdate
()
...
...
@@ -1344,7 +1344,9 @@ class Core(object):
if
not
key
:
return
res
=
self
.
current_tab
().
on_input
(
key
)
self
.
refresh_window
()
if
res
:
log
.
debug
(
'RES is true'
)
self
.
refresh_window
()
def
on_roster_enter_key
(
self
,
roster_row
):
"""
...
...
src/room.py
View file @
0216ac29
...
...
@@ -96,7 +96,7 @@ class Room(TextBuffer):
when we receive an history message said by someone who is not
in the room anymore
"""
self
.
log_message
(
txt
,
time
,
nickname
)
#
self.log_message(txt, time, nickname)
if
txt
.
startswith
(
'/me '
):
txt
=
"* "
+
nickname
+
' '
+
txt
[
4
:]
nickname
=
None
...
...
src/tab.py
View file @
0216ac29
...
...
@@ -254,8 +254,10 @@ class MucTab(Tab):
"
\n
"
:
self
.
on_enter
}
if
key
in
key_func
:
return
key_func
[
key
]()
return
self
.
input
.
do_command
(
key
)
key_func
[
key
]()
return
False
self
.
input
.
do_command
(
key
)
return
False
def
completion
(
self
):
"""
...
...
@@ -373,7 +375,8 @@ class PrivateTab(Tab):
"
\n
"
:
self
.
on_enter
}
if
key
in
key_func
:
return
key_func
[
key
]()
key_func
[
key
]()
return
False
return
self
.
input
.
do_command
(
key
)
def
on_enter
(
self
):
...
...
@@ -471,7 +474,7 @@ class RosterInfoTab(Tab):
}
res
=
self
.
input
.
do_command
(
key
)
if
res
:
return
res
return
False
if
key
in
key_commands
:
return
key_commands
[
key
]()
...
...
@@ -621,7 +624,8 @@ class ConversationTab(Tab):
"
\n
"
:
self
.
on_enter
}
if
key
in
key_func
:
return
key_func
[
key
]()
key_func
[
key
]()
return
False
return
self
.
input
.
do_command
(
key
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment