1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-08 06:46:34 +01:00
Commit Graph

103 Commits

Author SHA1 Message Date
jfreegman
eb964b64c2 Fix off by one error and comment magic numbers 2020-12-05 20:53:09 -05:00
jfreegman
2fcbc4fa1c Remove lots of duplicate code related to printing timestamps 2020-11-30 17:55:57 -05:00
jfreegman
4330bf5867 Show peer join/part messages in conferences
Also a couple trivial fixes
2020-11-30 12:06:13 -05:00
jfreegman
1e985c1456 Interface improvements and bump to v0.10.0
- Give window tab and statusbar a make over
- Place window tab above input field
- Reduce input field to one square in height
- Refactor window tab so that it's now a subwin of its parent ToxWindow
- Fix bug causing notification counter to sometimes increment by 2
- No longer scroll on output when output is not at bottom of screen
- Show a small indicator on far left of window tab when output is
  not at bottom of screen
- Reduce ncurses/UI thread sleep time by half
- Handle nanosleep errors better
2020-11-29 23:26:51 -05:00
jfreegman
61740bda85 Fix a couple minor issues
Print a warning if remove() fails, and check if the win pointer is null
before using it (this is unnecessary but it's correct and shuts coverity up)
2020-11-26 18:25:37 -05:00
jfreegman
0434ac186a Fix bug causing file transfer status bars to be truncated 2020-11-26 16:17:00 -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
71d7d355a6 Use enum to identify window types instead of bool variables 2020-11-09 17:01:22 -05:00
jfreegman
4188b392cc Rename: groupchats -> conferences
This is in line with the toxcore API naming scheme and is in preparation
for the merge with the new groupchat implementation
2020-11-08 10:08:24 -05:00
jfreegman
a86884c40e Remove legacy code and fix a couple format specifiers
This code was added over 5 years ago and no longer serves a purpose
2020-11-03 01:00:08 -05:00
jfreegman
1bbd50aac7 Fix a few issues
- realloc needs to be error checked
- use correct format specifiers
- make sure optarg and DATA_FILE aren't null before using them
2020-11-02 18:08:54 -05:00
jfreegman
ff1620c923 fix invalid usage of stderr and incorrect formatting 2020-11-01 11:19:18 -05:00
iphydf
6f72a191ba Revert "Add feature flags and missing #includes."
This reverts commit dd5fa236ae.

Also, set `-std=gnu99` in Bazel build.
2020-04-17 19:37:22 +00:00
iphydf
dd5fa236ae Add feature flags and missing #includes.
These are needed to compile on some strict Linuxes.
2020-04-15 21:34:30 +00:00
jfreegman
ddc8c53abf Fix unused variable warnings and change all (void)s to UNUSED macro 2020-03-30 16:02:27 -04:00
jfreegman
437dd8baeb Some misc fixes 2020-02-29 14:14:56 -05:00
jfreegman
a37bf300f9 Update astylerc to match toxcore & reformat all source files 2018-07-18 11:33:16 -04:00
jfreegman
56a9571509 Make sure message id fits inside a signed int 2017-06-02 01:15:44 -04: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
Ansa89
958df9f2e8 Add possibility to save QR code in PNG file format 2016-10-05 20:57:50 +02:00
Jfreegman
f056f13329 Astyle everything and add an astyle options script to repo 2016-09-24 21:07:04 -04:00
Marvin Ewald
d6fdac9739 Fix markup in multiline messages
A '<' or '>' at the beginning of a line will now highlight only this
particular line instead of the whole message.
2016-02-29 01:46:48 +01:00
Jfreegman
11701d22a1 Lots of bug fixes and general code cleanup 2015-08-27 03:38:08 -04:00
Jfreegman
327259c4c8 simplify timeout function 2015-08-18 01:46:22 -04:00
Jfreegman
48ffae68a9 <not having red text 2015-08-11 19:22:57 -04:00
Jfreegman
035420e5c7 Revert commit 312d0c3 (localization/gettext)
There were serious problems with branch merging that need to be resolved first
2015-07-04 01:19:16 -04:00
Ansa89
85d3c18ba6 Add localization system (gettext) 2015-05-28 15:50:55 +02:00
Jfreegman
522aabd4e4 Refactor and clean up file transfers
(No longer rely on undefined core filenumber property for indexing)
2015-03-29 18:33:51 -04:00
Jfreegman
ae87b2eb2d begin port to new API 2015-03-25 22:56:45 -04:00
Loui Chang
53e4b2c971 Add support for custom timestamps in chat and logs.
Internal representations of the time_format setting are replaced by timestamp format strings.
time_format is only used in the setup.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2015-02-23 00:46:33 -05: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
Loui Chang
5cbbb62ce2 Fix whitespace
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2015-02-09 23:33:49 -05:00
Jfreegman
76c21c8b34 implement group titles 2014-11-14 22:15:59 -05:00
Jfreegman
adb36a39bb minor visual adjustment 2014-11-05 18:46:18 -05:00
Zetok Zalbavar
a32cd1c19b Change action messages indicator 2014-10-09 21:36:42 +01:00
Jfreegman
e6b18231c0 add ability to toggle groupchat peerlist with ctrl-b 2014-10-08 02:45:08 -04:00
Jfreegman
b46a77f977 forced end of page is not working out 2014-10-01 15:01:23 -04:00
Jfreegman
33cfca7ecc bug fixes and code cleanup 2014-09-28 17:49:48 -04:00
Jfreegman
cee9e624b8 more UI changes 2014-09-25 15:23:50 -04:00
Jfreegman
2e65ee3609 a few UI changes 2014-09-25 04:31:45 -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