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

889 Commits

Author SHA1 Message Date
Jfreegman
34cc4314a5 added groupchat actions 2013-12-13 20:57:32 -05:00
AZ Huang
f3cdb3cd62 Fix groupchat cursor movement. 2013-12-12 13:55:42 +08:00
AZ Huang
bc8e737514 Fix wchar cursor movement. 2013-12-12 13:43:29 +08:00
Jfreegman
1dad3711c4 better error handling for failed string conversions 2013-12-12 00:37:29 -05:00
Jfreegman
12e1a60ca3 ugly partial fix for bug 2013-12-11 05:41:02 -05:00
Jfreegman
ff30a29df1 small improvement 2013-12-11 04:49:21 -05:00
Jfreegman
629041d465 simplify code a bit 2013-12-11 03:29:31 -05:00
Jfreegman
83a81f6db6 Merge branch 'master' of https://github.com/Tox/toxic 2013-12-11 00:21:42 -05:00
Jfreegman
9a5a598c5a add line history with up/down keys 2013-12-11 00:10:09 -05:00
naxuroqa
ab2be21942 api update to irungentoo/ProjectTox-Core@2d841fb791 2013-12-11 01:51:40 +01:00
Jfreegman
ccc0640dab put string helpers in own file 2013-12-10 03:03:45 -05:00
Jfreegman
44d9f7fe61 busy status mutes beeping 2013-12-09 19:25:09 -05:00
Jfreegman
4065715b78 split lists up so only commands that work in given window autocomplete 2013-12-09 17:56:20 -05:00
Jfreegman
674aa682e7 implement tab completion for commands 2013-12-08 18:14:57 -05:00
Jfreegman
9c2551b3b9 small fix 2013-12-08 16:10:52 -05:00
Jfreegman
f67725f636 improve tab completion 2013-12-08 15:49:47 -05:00
Jfreegman
5fc14a48db a few aesthetic changes 2013-12-08 05:45:23 -05:00
Jfreegman
df57adcc6d fix memory leaks and safer way to convert strings from wc to mb 2013-12-08 04:16:49 -05:00
Jfreegman
e834821348 replace name_compare with lib function 2013-12-08 01:18:10 -05:00
Jfreegman
b8b032e441 a few fixes, and make tab completion case insensitive 2013-12-08 01:07:22 -05:00
Jfreegman
4c27df32b0 add tab auto-complete function for groupchat names 2013-12-07 22:10:32 -05:00
Jfreegman
3804233c21 didnt mean to change that 2013-12-06 22:07:37 -05:00
Jfreegman
eb9d4361f0 Merge branch 'master' of https://github.com/Tox/toxic 2013-12-06 22:04:28 -05:00
Jfreegman
e224f92210 change keys toctrl-o and p due to weird bug with ctrl-[ 2013-12-06 22:03:35 -05:00
irungentoo
6089f02d57 If IPv6 fails, print something and try IPv4. 2013-12-06 21:43:57 -05:00
Jfreegman
d232538317 make ctrl-] [ keys switch pages 2013-12-06 20:56:30 -05:00
Jfreegman
f942982f4e alert user when name is mentioned in groupchat 2013-12-06 19:41:53 -05:00
Jfreegman
ce45580c83 partially fix bug where input line eats prompt messages 2013-12-06 05:07:35 -05:00
Jfreegman
18a7bbea3d fix 2013-12-05 23:05:16 -05:00
Jfreegman
7a14845790 add line kill and discard ability 2013-12-05 22:55:14 -05:00
Jfreegman
2ad238d69f cchange prompt to $ char and make timestamps blue 2013-12-05 03:29:39 -05:00
Jfreegman
70e8bdb409 fix line scrolling bug 2013-12-05 01:22:02 -05:00
Jfreegman
3740cb6763 fix prompt bug, improve comments, and give prompt its own window struct 2013-12-04 22:33:04 -05:00
Jfreegman
a57f94306a put back prompt char 2013-12-04 18:09:51 -05:00
Jfreegman
e3400e095b a few fixes and update version 2013-12-04 16:21:32 -05:00
Jfreegman
1517cbb6cb allow line editing in prompt window 2013-12-04 16:14:33 -05:00
Jfreegman
424ab7cd10 fix prompt user input mechanics 2013-12-04 03:57:03 -05:00
Jfreegman
a2af0bc047 don't sort after every friend add on statup 2013-12-04 01:08:26 -05:00
Jfreegman
2fde13530b fix bug 2013-12-04 00:44:37 -05:00
Jfreegman
db10c66922 API change 2013-12-03 18:06:28 -05:00
Jfreegman
88ebb06ba5 colour theme changes 2013-12-03 18:01:17 -05:00
Jfreegman
03ef257fdc small fix 2013-12-03 05:18:49 -05:00
Jfreegman
1a86327f9f allow groupchat sidebar to scroll 2013-12-03 03:44:02 -05:00
Jfreegman
ba750753a5 fix for possible divsion by zero 2013-12-02 18:34:14 -05:00
Jfreegman
7a89229375 allow friendlist to scroll up and down if friends overflow the window 2013-12-02 18:23:04 -05:00
AZ Huang
b0c60238f7 Add option to switch off ipv6. 2013-12-02 22:02:34 +08:00
Jfreegman
ca1644c23b fix 2013-12-01 17:08:57 -05:00
Jfreegman
f67cc479ec format consistency 2013-12-01 16:59:46 -05:00
Jfreegman
b1b2cc44df minor improvements 2013-12-01 16:57:05 -05:00
Jfreegman
192a06c4f0 fixed arrow printing bug 2013-12-01 13:25:03 -05:00
Jfreegman
49655e13a0 fix 2013-12-01 03:29:12 -05:00
Jfreegman
5850e1c333 line edit support for home, del and end keys 2013-12-01 02:58:21 -05:00
Jfreegman
37dd2bee2d Merge branch 'master' of https://github.com/Tox/toxic 2013-11-30 22:15:16 -05:00
Jfreegman
bb6b28b7c3 allow line editing via arrow keys in chat/groupchat windows 2013-11-30 22:12:43 -05:00
JFreegman
8f1da153a7 Merge pull request #59 from FullName/path-idx-real-fix
Fix partial fix: A slash in pos 0 still led to read access to pathname[-1].
2013-11-30 16:26:30 -08:00
Coren[m]
4f4a379a01 Fix partial fix: A slash in pos 0 still led to read access to pathname[-1]. 2013-11-30 22:14:09 +01:00
Jfreegman
c25296e65a fixes 2013-11-30 16:09:45 -05:00
Jfreegman
f6a6aecaf5 fix window related bugs and warn user when max window limit has been reached 2013-11-30 05:35:25 -05:00
Jfreegman
8ff907d719 wrong signal 2013-11-29 19:31:47 -05:00
Jfreegman
a02bbfa643 kill file transfer if writing fails 2013-11-29 19:26:59 -05:00
Jfreegman
57c2872b75 try to limit scope of globals 2013-11-29 18:52:21 -05:00
Jfreegman
7ad520f128 reduce syntactic complexity - these don't need to be void 2013-11-29 17:48:08 -05:00
AZ Huang
7ee84ce5e1 Fix typo. 2013-11-29 23:56:42 +08:00
AZ Huang
8c0ad1ef80 Fix corresponding API name changes in toxcore. 2013-11-29 23:14:59 +08:00
AZ Huang
e29ce6ab6f Fix API ret code changes of ToxCore 2013-11-29 18:30:40 +08:00
Jfreegman
b909ab37b7 add peer count to sidepanel 2013-11-29 01:30:10 -05:00
Jfreegman
04b394d6dd close file transfers on exit & fixes 2013-11-28 22:28:40 -05:00
Jfreegman
8cf3043dd3 Merge branch 'master' of https://github.com/Tox/toxic 2013-11-28 20:24:58 -05:00
Jfreegman
8584667ec9 don't need that 2013-11-28 20:24:44 -05:00
Jfreegman
d29e5dbe48 fixes 2013-11-28 20:23:37 -05:00
irungentoo
e21e5c18ff Fix possible crash. 2013-11-28 19:52:30 -05:00
Jfreegman
a98ec22fd6 improve window alert functionality 2013-11-28 19:45:28 -05:00
Jfreegman
2057e7bc4f couple fixes 2013-11-28 18:56:56 -05:00
irungentoo
7e0bc7768b Merge pull request #55 from aitjcize/fix-path-name
Fix trailing slashes which leads to segfault.
2013-11-28 05:43:07 -08:00
AZ Huang
8459d44506 Make sure friend message is null-terminated else generate garbate on screen. 2013-11-28 20:21:52 +08:00
Jfreegman
a04c8964ee add valid nick function 2013-11-28 02:53:43 -05:00
Jfreegman
7ca087b5e7 fix potential segfault 2013-11-27 22:46:09 -05:00
Jfreegman
663818156b don't allow empty nicks 2013-11-27 19:34:15 -05:00
Jfreegman
9c6662163b handle no-names more efficiently 2013-11-27 19:29:58 -05:00
AZ Huang
f71f07b0ad Add extra check to opened file opointer. 2013-11-28 03:31:10 +08:00
AZ Huang
bb5ee93c88 Fix trailing slashes which leads to segfault. 2013-11-28 03:27:44 +08:00
Jfreegman
eab41ccd3d a couple bug fixes 2013-11-27 01:54:22 -05:00
Jfreegman
5ad4bca7a9 uncomment 2013-11-26 22:16:18 -05:00
Jfreegman
53b1a297d2 move pointer inits and bug fix 2013-11-26 22:15:48 -05:00
Jfreegman
d00b9e26b7 fixes 2013-11-26 21:06:06 -05:00
Jfreegman
33ec2f96c2 rework peername list storing so no limit is needed 2013-11-26 20:45:08 -05:00
Jfreegman
8de666a349 a small fixes 2013-11-26 17:39:11 -05:00
Jfreegman
0a24137a58 rm debugging stuff 2013-11-25 20:20:51 -05:00
Jfreegman
5e37ddc0f8 testing groupchat stuff 2013-11-25 18:49:31 -05:00
Jfreegman
8dabfdc2da oops 2013-11-24 22:34:22 -05:00
Jfreegman
34511ada02 fix bug 2013-11-24 22:31:58 -05:00
Jfreegman
3470a5eef7 improve friendlis sorting function 2013-11-24 18:22:48 -05:00
Jfreegman
e625bffbb4 sort friendlist alphabetically 2013-11-24 17:12:24 -05:00
Jfreegman
d47429ecb7 fixed bug 2013-11-24 16:05:04 -05:00
Jfreegman
81230295cc fix possible bug 2013-11-24 15:18:05 -05:00
Jfreegman
4aa68c8251 sort names in groupchat sidepanel 2013-11-24 02:33:03 -05:00
Jfreegman
1064e8d144 made borders-lines crisp 2013-11-23 23:46:46 -05:00
Jfreegman
6d2bf72ed3 update version 2013-11-23 21:42:43 -05:00
Jfreegman
fb246f2527 don't need that 2013-11-23 21:30:31 -05:00
Jfreegman
f84ece13de Add groupchat side panel & add new callback 2013-11-23 21:19:59 -05:00
Jfreegman
d8da80914d alert chat window on file send/failure 2013-11-19 16:00:24 -05:00
Jfreegman
f43d735861 remove redundant cmd func args, use global prompt instead 2013-11-19 15:32:35 -05:00
Jfreegman
b16ff16abc move window blink/beep to a function 2013-11-19 02:31:22 -05:00
Jfreegman
83458c64ec move timeout test out of while loop 2013-11-18 22:22:18 -05:00
Jfreegman
b4c25c6ea9 that was changed for testing only 2013-11-18 18:54:50 -05:00
Jfreegman
140b8b4690 improve file sending 2013-11-18 18:52:46 -05:00
Jfreegman
1ed6d83ed3 show name for default friend request message. also don't print key. 2013-11-17 23:14:27 -05:00
Jfreegman
d69b82a7b4 bug fix 2013-11-17 22:28:22 -05:00
Jfreegman
246c9283d0 bold currently selected friend in friendlist 2013-11-17 19:45:53 -05:00
Jfreegman
73cc9bfcf2 simplify groupchat counter 2013-11-17 16:09:14 -05:00
Jfreegman
cf0840b80d small fixes 2013-11-17 15:45:26 -05:00
Jfreegman
e9ef2b1fc6 cflags were doing nothing 2013-11-15 21:36:05 -05:00
Jfreegman
40b79f5e69 consistent formatting for prototypes 2013-11-15 19:35:14 -05:00
Jfreegman
0f5fed577d fix friendlist drawing bugs 2013-11-15 17:03:24 -05:00
Jfreegman
8bbd796755 fix on_friendadded() 2013-11-15 14:59:49 -05:00
Jfreegman
e091b36b14 move prompt help command to global_commands.c 2013-11-15 14:38:58 -05:00
Jfreegman
c0d4070b96 small optimization 2013-11-15 02:26:26 -05:00
Jfreegman
3ceba62921 small optimization 2013-11-15 02:12:01 -05:00
Jfreegman
a0eac6a136 fix bug 2013-11-14 19:34:40 -05:00
Jfreegman
ee509a7cec add file sender timeouts 2013-11-14 19:14:54 -05:00
Jfreegman
be88c89e09 simplify pending groupchat handling 2013-11-12 17:26:13 -05:00
Jfreegman
9b7b401455 small fix 2013-11-12 16:53:41 -05:00
Jfreegman
5570b7c98a fix bug 2013-11-12 02:41:55 -05:00
Jfreegman
7542247c48 improve duplicate file handling 2013-11-12 02:18:43 -05:00
Jfreegman
704b787ec2 formatting 2013-11-12 01:50:04 -05:00
Jfreegman
649233b718 fix help message 2013-11-10 23:38:12 -05:00
Jfreegman
26d561eb77 some minor fixes 2013-11-10 23:17:46 -05:00
Jfreegman
bc4e089a65 generalize command matching loop 2013-11-10 13:23:47 -05:00
Jfreegman
5a7f26cfea replace more defines with enum 2013-11-10 01:23:07 -05:00
Jfreegman
16c11b33f3 replace defines with enum 2013-11-10 01:20:52 -05:00
Jfreegman
8643d14777 small fix 2013-11-09 22:08:25 -05:00
Jfreegman
1af9937dfd rm old/unused files 2013-11-09 21:44:48 -05:00
Jfreegman
549fc5ecb6 big refactor for command functionality 2013-11-09 21:43:56 -05:00
Jfreegman
89266c8eff display friendlist with online friends above offline 2013-11-09 02:50:32 -05:00
Jfreegman
706aed533d bit of cleanup 2013-11-02 20:32:35 -04:00
Jfreegman
3907edcdda this was right 2013-10-25 00:55:27 -04:00
Jfreegman
ae7087e760 fix 2013-10-25 00:33:00 -04:00
Jfreegman
3f7e60eaf4 small bug fix and formatting 2013-10-25 00:29:40 -04:00
Jfreegman
b9b3487581 fixed prompt input 2013-10-23 03:24:08 -04:00
Jfreegman
72565cdaec simplify execute function some more 2013-10-23 01:03:18 -04:00
Jfreegman
6595e2bce5 small fixes 2013-10-22 06:39:13 -04:00
Jfreegman
dee263704c make function constant time 2013-10-22 01:59:06 -04:00
Jfreegman
407d28bf5d awhen atoi returns 0 on invalid input we don't want that to count as valid 2013-10-20 07:16:26 -04:00
Jfreegman
77de8dd116 fixed bug that was causing random crashes 2013-10-20 02:11:23 -04:00
Jfreegman
957b335559 no longer need this 2013-10-20 01:27:45 -04:00
Jfreegman
4ad6853e2e rewrote execute function 2013-10-20 00:50:08 -04:00
Jfreegman
7a0951afc6 simplify string_is_empty 2013-10-18 23:58:33 -04:00
Jfreegman
0396ce6456 rm /msg command 2013-10-18 23:46:58 -04:00
Jfreegman
361c4cfafc adjusting max name length handling 2013-10-18 23:08:37 -04:00
Jfreegman
fe0ccf52e9 small fix 2013-10-18 22:18:48 -04:00
Jfreegman
e8d2f9418b fixed file sending queueing and other bugs 2013-10-18 01:35:08 -04:00
Jfreegman
34cc342010 handle duplicate files and another bug fix 2013-10-17 22:20:40 -04:00
Jfreegman
2ff1da396c refactored file saving/fixed bugs 2013-10-17 19:53:29 -04:00
Jfreegman
973bd3f396 save files to original name and some bug fixes 2013-10-17 06:13:28 -04:00
Jfreegman
7046772a03 fixed friend requests queueing 2013-10-16 17:59:56 -04:00
Jfreegman
958e77660e removed unneeded var, small fixes 2013-10-16 05:00:27 -04:00
Jfreegman
5f3293bfec fmove file send success message to chat window 2013-10-16 01:55:35 -04:00
Jfreegman
371fbc87a5 refactored sendfile and invite commands to not require names and to only work in chat windows 2013-10-13 19:09:20 -04:00
Jfreegman
75d356e52a format fixes 2013-10-11 04:42:30 -04:00
Jfreegman
17aead45ed put repeated code for printing time into a function 2013-10-11 01:11:43 -04:00
Jfreegman
2cff7c8b89 updated version 2013-10-11 00:32:00 -04:00
Jfreegman
ce302d2410 fix 2013-10-11 00:28:47 -04:00
Jfreegman
e60e4f4727 implemented file receving 2013-10-11 00:23:39 -04:00
Jfreegman
cb396c0e7c Implemented file sending 2013-10-10 04:52:05 -04:00
Jfreegman
8a2ffcd0ff fixed status bugs and made them case insensitive 2013-09-28 01:20:43 -04:00
Jfreegman
4ffb98dcdb make correct error message print 2013-09-27 22:12:52 -04:00
Jfreegman
38f6f446c4 bug and format fixes 2013-09-27 19:55:11 -04:00
Jfreegman
49a10e5a40 use touchwin instead of mvwin and this doesn't need its own function 2013-09-27 16:14:43 -04:00
irungentoo
7da72b79ef Added define that fixes text not being visible on rxvt-unicode. 2013-09-26 09:51:21 -04:00
irungentoo
e51ebd9c7c Attempted fix for setting bg color. 2013-09-26 08:51:12 -04:00
irungentoo
0c3767762e Fixed backspace key bug on xterm when toxic is compiled with widechar. 2013-09-26 07:52:17 -04:00
Jfreegman
7de4089695 oops 2013-09-26 00:35:50 -04:00
Jfreegman
39fc54972a > not having green text 2013-09-26 00:33:51 -04:00
Jfreegman
80c7b07f2e because i forgot to remove it 2013-09-25 00:59:40 -04:00
Jfreegman
10f5627912 fixed groupchat join but 2013-09-25 00:38:39 -04:00
irungentoo
cbb23a4f75 fixed windows build. 2013-09-24 20:21:34 -04:00
irungentoo
a92672d2b4 Merge branch 'master' of https://github.com/Tox/toxic 2013-09-24 17:47:49 -04:00
irungentoo
6320ea756f Fixed possible bug. 2013-09-24 17:47:42 -04:00
JFreegman
0aece37c4c Merge pull request #45 from JFreegman/master
set friendnames properly and some fixes
2013-09-24 13:24:36 -07:00
Jfreegman
051069606b typo and slight word change 2013-09-24 16:18:22 -04:00
Jfreegman
bd3c14104a command fixes 2013-09-24 16:12:33 -04:00
irungentoo
92ff51f335 Fixed "fread() failed" bug on windows. 2013-09-24 15:23:09 -04:00
irungentoo
04a44b7cdb Fixed windows crash. 2013-09-24 07:55:02 -04:00
Jfreegman
d76c80951b set friendnames using api function 2013-09-23 15:43:02 -04:00
Jfreegman
e6956b1abc fixes 2013-09-23 01:22:21 -04:00
Jfreegman
bde7aacc8d guarantee unique nicks 2013-09-22 20:25:48 -04:00
Jfreegman
7fed456e3b more fixes 2013-09-22 04:32:51 -04:00
Jfreegman
2892f71877 bug fix 2013-09-22 00:07:59 -04:00
Jfreegman
eea27e72ca fix group join bug 2013-09-21 22:18:02 -04:00
Jfreegman
1e44018d2e too much beeping 2013-09-21 02:47:12 -04:00
Jfreegman
89cb29afed moved misc helper functions to separate file and removed redundant includes 2013-09-20 20:35:03 -04:00
Jfreegman
ec6b37e09e automatically update default statusmessage with version 2013-09-19 19:15:54 -04:00
Jfreegman
d49a5ca993 moved command parsing code to separate files 2013-09-19 17:03:22 -04:00
Jfreegman
e2de6a829e refactored prompt command parser to work with chat and groupchat windows 2013-09-19 06:37:42 -04:00
Jfreegman
b4512811ba fixed prompt scroll bugs and statusbar struct issues 2013-09-18 17:30:35 -04:00
Jfreegman
dfab23163b Merge branch 'master' of https://github.com/Tox/toxic 2013-09-18 00:26:33 -04:00
Jman012
9cb50ed538 Let windows.c actually get the tox *m.
main.c called init_windows(m), but windows.c only had init_windows(). This caused m to be NULL, which didn't cause any crashes, but it was certainly a headache for trying to do some new stuff.
2013-09-17 20:19:46 -07:00
Jfreegman
49b78c9fd4 api update fixes 2013-09-17 20:54:25 -04:00
Jfreegman
4e5e3be95f misplaced comment 2013-09-17 19:15:29 -04:00
Jfreegman
42de821e3c use/display nicks instead of friend numbers for groupchat invites 2013-09-17 19:11:23 -04:00
Jfreegman
84422b5845 fix 2013-09-17 06:05:31 -04:00
Jfreegman
6e0ac744cb more fixes 2013-09-17 06:03:08 -04:00
Jfreegman
063bc7ca86 Merge branch 'ipv6.init_connection' of https://github.com/FullName/toxic into FullName-ipv6.init_connection 2013-09-16 23:10:29 -04:00
Coren[m]
560e6be66b Merge remote-tracking branch 'upstream/master' into ipv6.init_connection 2013-09-17 03:21:54 +02:00
Jfreegman
b6bf0eb0a0 fixes 2013-09-16 00:28:28 -04:00
Jfreegman
03f807f1cd merge 2013-09-15 17:17:21 -04:00
Jfreegman
399b92c8e7 added groupchats 2013-09-15 16:38:38 -04:00
Coren[m]
a0a6443820 Convert line on reading from file, not on using. 2013-09-15 14:31:59 +02:00
Coren[m]
f78bca7269 Adapted to ipv6-enabled tox
main.c:
- init_tox(): tox_new() => tox_new(TOX_ENABLE_IPV6_DEFAULT) (enables dual-stack per default)
- resolv_addr(): killed
- init_connection(): use tox_bootstrap_from_address(), which does the resolving

prompt.c:
- cmd_connect(): use tox_bootstrap_from_address(), which does the resolving
2013-09-15 09:22:23 +02:00
Coren[m]
960bed12a8 If the user gave a filename for the datafile, don't imply that they want to ignore the serverlist file. 2013-09-14 11:21:38 +02:00
JFreegman
657b65dd19 Merge pull request #36 from JFreegman/master
Client specific max name length / status messages now dynamically resize
2013-09-13 17:15:06 -07:00
Jfreegman
170abde373 off by one error 2013-09-13 04:01:10 -04:00
Jfreegman
b7375fb2a1 made statusmessages resize dynamically according to window size 2013-09-13 02:02:49 -04:00
Jfreegman
863121273e added cmuch smaller client-specific maximum name length 2013-09-13 00:35:48 -04:00
Sean Qureshi
34fb7ba885 Manually merged changes by 1100110 2013-09-12 17:31:10 +00:00
Jfreegman
35cd2a2914 endwin needs to come first 2013-09-12 01:33:41 -04:00
Jfreegman
c061895266 Unnecessary casting 2013-09-11 21:44:39 -04:00
Jfreegman
052f9f9936 more error handling 2013-09-11 18:07:26 -04:00
Jfreegman
f004a4ba82 added exit_toxic function (for real this time) 2013-09-11 00:12:03 -04:00
Jfreegman
40dcfc82d2 made error handling more consistent and added exit function 2013-09-11 00:02:27 -04:00
JFreegman
2e84836f8c Merge pull request #32 from FullName/Delta
if tox_new() fails, don't crash and leave the terminal in a broken state
2013-09-10 17:40:12 -07:00
Coren[m]
c9c9592685 if tox_new() fails, don't crash and leave the terminal in a broken state 2013-09-11 01:34:29 +02:00
Jfreegman
9e8fa92109 truncate friends' notes if they're too long 2013-09-10 04:04:13 -04:00
Jfreegman
f50f93ee81 move define 2013-09-09 15:33:15 -04:00
Jfreegman
4fc063d5fe api changed return on function 2013-09-09 06:54:36 -04:00
Jfreegman
1b5bcb4ffa tweaks and fixes 2013-09-09 01:08:06 -04:00
Jfreegman
fde8059a4c tweaks and fixes 2013-09-09 00:56:47 -04:00
Jfreegman
9798dd6b95 code cleanup/bug fixes 2013-09-08 03:18:34 -04:00
Jfreegman
08d87cc996 fix potential segfaul and added default friend request msg 2013-09-07 00:48:21 -04:00
Jfreegman
dd6a558a62 forgot to init 2013-09-06 21:39:22 -04:00
Jfreegman
9bf9dbe875 better way to check connection status 2013-09-06 21:37:16 -04:00
Jfreegman
261310b091 added status bar to prompt and fixed some bugs 2013-09-06 19:59:45 -04:00
Jfreegman
9c7cad0d55 made prompt window beep/blink on friend request 2013-09-06 02:51:10 -04:00
Jfreegman
ba7d01d3c1 bug fix and remove redundant code 2013-09-06 00:56:55 -04:00
Jfreegman
3ddae51998 small fix 2013-09-05 18:36:46 -04:00
Jfreegman
05c7727fb8 Added a statusbar to chat windows and removed spammy messages 2013-09-05 18:24:58 -04:00
Jfreegman
369233ba04 remove superfluous prompt alerts and some visual changes 2013-09-05 01:34:23 -04:00
Jfreegman
f7d96b0779 define curses colours and replace magic numbers 2013-09-05 00:47:33 -04:00
Jfreegman
f5695a4b3e implemented status and connectionstatus callbacks 2013-09-04 21:25:59 -04:00
Jfreegman
2f93081a42 slight refactor of select_friend() and fix mistake 2013-09-04 17:22:16 -04:00
Jfreegman
f93af40f28 Save messenger data on exit 2013-09-04 02:05:36 -04:00
Jfreegman
20d1ad9842 save nicks and exit tox properly 2013-09-04 00:58:23 -04:00
Jfreegman
0be84ecbb3 notes/status messages no longer forced 2013-09-03 22:05:36 -04:00
Jfreegman
aa6e205ee8 Show offline friends names and some cosmetic changes 2013-09-03 21:31:50 -04:00
Jfreegman
577f42c075 fix more potential segfaults 2013-09-03 01:02:58 -04:00
Jfreegman
094311785e fixed potential segfault 2013-09-03 00:20:17 -04:00
Jfreegman
db309936ab Remove opening/closing quotes from strings 2013-09-02 23:39:33 -04:00
Jfreegman
e5b5155c3e Change statusmsg to note for less confusion 2013-09-02 23:27:34 -04:00
JFreegman
e37aa54f3b Merge pull request #23 from lukechampine/betterprompt
refactor command argument parsing
2013-09-02 15:36:35 -07:00
Luke Champine
82dee36729 Add documentation/error messages for missing quotation marks 2013-09-02 17:48:16 -04:00
Luke Champine
a0e3b7dfd1 refactor command argument parsing 2013-09-02 13:35:38 -04:00
Jfreegman
dbe84898b9 oops
oops

oops
2013-09-02 05:24:55 -04:00
Jfreegman
ed68350424 format fixes 2013-09-02 05:15:29 -04:00
Jfreegman
713f2347bc add statusmsg command to chat windows 2013-09-02 01:14:51 -04:00
Jfreegman
73d6fba055 display status messages in friends list 2013-09-02 00:18:20 -04:00
Jfreegman
c5b9677fc0 properly implemented statuses 2013-09-01 22:11:47 -04:00
JFreegman
d636cc9780 Merge pull request #20 from JFreegman/master
fix buffer overflows and format issues
2013-09-01 15:15:10 -07:00
JFreegman
7a106c1104 Merge pull request #17 from manuel-arguelles/fix_blocking
Fix blocking while waiting for key
2013-08-31 19:32:31 -07:00
Sean Qureshi
5b9c5d9c0c Merge pull request #15 from JFreegman/master
implemented friend deletion
2013-08-31 18:27:31 -07:00
Jfreegman
bfeea47774 fix buffer overflows and format issues 2013-08-31 02:22:07 -04:00
Jfreegman
b99ce9ce46 proper fix for segfault, credit to manuel-arguelles 2013-08-30 20:13:29 -04:00
Jfreegman
3d062ca15b potential seg fault 2013-08-29 23:14:09 -04:00
Manuel Argüelles
ec7e458800 Fix blocking while waiting for key
The timeout() for input is set on main window (stdscr), since it seems
that for some ncurses implementations get_wch and getch are the same
(non widechar) wget_wch is used instead. The window passed must the
the main one, the others doesn't have the timeout settings. Another
option is to set wtimeout() on every window.
2013-08-29 21:56:27 -05:00
Giuliano Schneider
9ac42daf2b fixed "free(): invalid pointer" when XDG_CONFIG_HOME is set 2013-08-29 17:06:05 +02:00
Jfreegman
4f2e80ef28 added infinite loop check 2013-08-28 14:47:47 -04:00
Sean Qureshi
e6835483ce Improved msvc compatibility 2013-08-28 10:04:54 -07:00
Sean Qureshi
4616aef070 Improved msvc compatibility 2013-08-28 10:03:21 -07:00
Sean Qureshi
70936935c9 Merge pull request #14 from jin-eld/win32
Make sure toxic compiles on MinGW/Win32 again
2013-08-28 10:00:31 -07:00
Jfreegman
c08639b8e1 small fixes 2013-08-28 05:53:47 -04:00
Jfreegman
f24eebaeed implemented friend deletion 2013-08-28 05:46:09 -04:00
Jfreegman
5cf982dfa1 Removed dht window because it's not supported by the new public api 2013-08-27 18:30:38 -04:00
Jfreegman
894dc28c6f Hiding DHT tab since it doesn't work currently 2013-08-27 04:58:30 -04:00
jin-eld
bb8a2b7700 Make sure toxic compiles on MinGW/Win32 again
The config dir stuff is simply broken and needs to be fixed. So for now
disabled it, until someone has time to look into it.
2013-08-27 11:02:47 +03:00
stal
222124742c Merge pull request #10 from manuel-arguelles/check_locale
Add check for setlocale()
2013-08-26 13:02:25 -07:00
Sergey 'Jin' Bostandzhyan
ad1c9f0cae Fix for the "bad character" when doing backspace in chat window
Backspace was printing 'ć' instead of actually backspacing in a chat
window when widechar support was enabled.
2013-08-26 17:03:04 +03:00
irungentoo
e6a13feae8 Fixed some warnings. 2013-08-24 19:16:43 -04:00
Manuel Argüelles
12af26b666 Add check for setlocale()
In wide char mode it is important to be sure that setlocale() function
succeed.
2013-08-24 18:59:57 -04:00
Sergey 'Jin' Bostandzhyan
2a46d48cdf Sync with new libtoxcore build system
First try to use pkg-config to find libtoxcore, fall back to manual
checks if pkg-config is not available.

Improve ncurses search, should now find everything on OSX.
2013-08-24 05:15:15 +03:00
Florian Hahn
2db69f0fd6 Use tox_ instead of m_ functions 2013-08-24 00:21:01 +02:00
Florian Hahn
0f97e37fa3 Remove unused global variable 2013-08-23 23:52:35 +02:00
Florian Hahn
59c628e4b1 Remove duplicated function resolve_addr 2013-08-23 23:52:07 +02:00
Florian Hahn
baadd95b45 Use new public api 2013-08-23 23:50:34 +02:00
Jfreegman
9ab34ca5dd resolve_addr() was removed from core 2013-08-23 17:25:08 -04:00
Sergey 'Jin' Bostandzhyan
78deb13c45 Added check and define for wide char support
Try to figure out if wide character support is available and provide
the necessary define for toxic.
2013-08-23 10:57:31 +03:00
Manuel Argüelles
1087bbb4ff Make wide character support optional
Issue #514. FindCursesw modified to make it simpler. Wide character
can be disable by passing NO_WIDECHAR=ON.
2013-08-23 10:51:54 +03:00
Sergey 'Jin' Bostandzhyan
30666d2deb Install and use DHTservers file
DHTservers will go to $prefix/share/toxic/DHTservers
2013-08-23 01:37:19 +03:00
Sergey 'Jin' Bostandzhyan
c157837f97 Added autotools based build scripts
Limitations:

currently the tox core library does not ship proper public headers,
so we'll have to tell the configure script where the headers are (i.e.
directory in the ProjectTox-Core source tree.

Since these headers are not really public, they include sodium.h, so
right now the toxic configure script will check for sodium.h as well.

We also need to look for the libsodium library for linking vs Tox core.
2013-08-23 01:30:49 +03:00
Sergey 'Jin' Bostandzhyan
95312642f4 Renamed windows.h header to avoid conflict on Win32
winsock2.h includes windows.h as well, if for some reason our windows.h
is chosen first then we will run into errors.
2013-08-23 01:09:23 +03:00
Sergey 'Jin' Bostandzhyan
43372f09a6 Move sources to an own subdirectory 2013-08-22 23:57:20 +03:00