1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 00:13:01 +01:00
Commit Graph

50 Commits

Author SHA1 Message Date
jfreegman
2fcbc4fa1c
Remove lots of duplicate code related to printing timestamps 2020-11-30 17:55:57 -05:00
jfreegman
8d9d51640c
Fix display bug caused by noread flag appended to unread messages
A line's line count now increments without messing up the formatting in cases where
the noread flag wraps to the next line.

Additionally, the way noread flags are handled has been refactored and made
more efficient.
2020-11-26 16:16:59 -05:00
jfreegman
d35a38735b
Fix line wrapping/padding issues
It should now parse messages with newlines properly as well as messages that
contain long sequences of characters with no spaces
2020-11-24 19:47:04 -05:00
jfreegman
f0c4906fdc
Fix some off by one bugs with line scrolling and some cleanup
Instead of trying (and failing) to correctly calculate the number of lines on the
screen a given message will need space for, we dynamically set the value both
on initiation of a new line, and whenever that line is printed to the screen
using the print_wrap() function.

This should fix the screen occasionally not scrolling down the correct number of
lines when a new message is printed.
2020-11-24 19:36:03 -05:00
jfreegman
8e84ac58d4
Implement word wrapping
It's about time
2020-11-22 18:41:12 -05:00
zugz (tox)
d75d6e8b60
sort includes 2020-11-14 00:00:05 +00:00
jfreegman
63cc23401a
Improve readability of defines 2018-10-08 13:39:04 -04:00
iphydf
b9f9546e2b
Fix typedef enums and potential uninitialised value. 2018-01-20 18:30:35 +00:00
jfreegman
0136f22076
Fix UI bugs & format
This fixes a bug where lines would sometimes be incorrectly marked as unread, as well as
a bug where inbound messages would sometimes be coloured incorrectly
2017-06-01 16:46:12 -04:00
Jfreegman
2194b9e259
Use time_t instead of uint64_t for timestamps
Also call time() directly from get_unix_time() instead of manually updating the time val.
2016-09-22 18:31:52 -04:00
Loui Chang
38a0f6fae4 Make little action indicators on each output line configurable.
Also added a new DISCONNECTION line info type.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2015-02-13 02:09:40 -05:00
Jfreegman
76c21c8b34
implement group titles 2014-11-14 22:15:59 -05:00
Jfreegman
23cf9686cb
safer string handling 2014-10-03 17:53:50 -04:00
Jfreegman
3a176e1cab
move to page end after pressing return 2014-09-25 00:42:08 -04:00
Jfreegman
133c0e8d63
rename reserved identifiers per C standard 2014-09-22 21:24:45 -04:00
Jfreegman
c07c0028bb
increase line_info msg buffer size so won't cut off long log lines 2014-09-22 13:49:09 -04:00
Jfreegman
dc3b2e04ab
load chatlog history when opening a chatwindow 2014-09-22 04:29:28 -04:00
Jfreegman
13c5de5531
increase time between message send retries 2014-09-10 16:18:37 -04:00
Jfreegman
09f90d095b properly flag lines with unread mark 2014-09-07 22:28:54 -04:00
Jfreegman
3ca22aa714
fix 2014-09-07 21:43:16 -04:00
Jfreegman
8dd25e1f0b code cleanup, add delay for unread message notification 2014-09-07 15:08:01 -04:00
Jfreegman
5b9bd603ea
implement read receipts 2014-09-07 02:43:53 -04:00
Jfreegman
3cbe61e111
fix a few formatting bugs and simplify code a bit 2014-08-02 15:35:57 -04:00
Jfreegman
77e152ad36
fix security flaw where untrusted input wasn't being sanitized 2014-07-26 21:22:55 -04:00
Jfreegman
b68deef6db allow line_info_add to take formatted strings with variable # of args 2014-07-24 23:03:55 -04:00
Jfreegman
a009fbf20c use char instead of uint8_t, fix compiler warnings so toxic compiles with -Wall and -Werror on gcc and clang 2014-07-06 22:16:20 -04:00
Jfreegman
de1e61bd5a code cleanup, improve welcome message 2014-07-04 14:19:20 -04:00
Jfreegman
10d0e99d72
core api const-correctness update 2014-07-02 17:30:31 -04:00
Jfreegman
0f37e50419 groupchat keys can sometimes start with a 0 2014-07-02 14:13:35 -04:00
Jfreegman
2c4f0d593d
fix len values 2014-06-14 14:09:20 -04:00
Jfreegman
1b5da956e5 more fixes 2014-06-14 03:00:04 -04:00
Jfreegman
ce2d371c4b more fixes for line printing/scrolling 2014-06-14 01:45:51 -04:00
Jfreegman
24a85df15f remove scroll mode, scroll windows via PageUp/PageDown 2014-06-13 02:10:30 -04:00
Jfreegman
f10ce94f38
api changes 2014-06-11 20:04:20 -04:00
Jfreegman
31acdcada3 reorganize toxic_windows.h into two separate header files, rename main.c to toxic.c 2014-06-11 18:14:12 -04:00
Jfreegman
f0962bd060
add setting to control history size 2014-05-25 19:54:34 -04:00
Sean Qureshi
4cac797b40
General cleanup
Signed-off-by: Sean Qureshi <sean@tox.im>
2014-04-19 14:58:13 -07:00
Jfreegman
e384f87a04
increase line message buffer size 2014-04-10 18:16:27 -04:00
Jfreegman
3b2010200d
possibly fix scrolling bug 2014-04-02 04:59:51 -04:00
Jfreegman
24cd6d772f
bigger history 2014-04-01 17:42:27 -04:00
Jfreegman
3b7e161149 don't send null terminated strings, and null terminate all incoming strings 2014-03-31 22:34:05 -04:00
Jfreegman
26640cda14 prevent screen from moving on input when in scroll mode 2014-03-28 19:52:26 -04:00
Jfreegman
b36a8fd8fa show percentage complete for file transfers 2014-03-27 23:05:50 -04:00
Jfreegman
1b3c40b539
put help message in chatwindow box when in scroll mode 2014-03-27 05:08:48 -04:00
Jfreegman
bd5453002e
a few more fixes 2014-03-26 19:14:28 -04:00
Jfreegman
c218e104e7
a few fixes 2014-03-26 05:52:21 -04:00
Jfreegman
29b549e677 few fixes 2014-03-25 21:43:49 -04:00
Jfreegman
a5ce17f44e refactor groupchats to allow scrolling 2014-03-25 08:21:50 -04:00
Jfreegman
5e941427d3 refactor prompt to allow scrolling 2014-03-25 03:17:22 -04:00
Jfreegman
e5b6e0ad9f refactor chat history to allow scrolling 2014-03-24 07:18:58 -04:00