irc, branch HEADIRC client based on c9x.me/irc client
a76e61d38fdb84eba0f258da037c28d583e1e0372020-07-25T11:00:04Z2020-07-25T11:00:04Zupdate READMEHiltjo Posthumahiltjo@codemadness.orgcommit a76e61d38fdb84eba0f258da037c28d583e1e037
parent 3f3d05fe79f64a4312664e8607d5bd71b3e73b52
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 25 Jul 2020 13:00:04 +0200
update README
3f3d05fe79f64a4312664e8607d5bd71b3e73b522017-07-31T16:28:05Z2017-07-31T16:28:05Zdial: freeaddrinfo on failure on reconnectHiltjo Posthumahiltjo@codemadness.orgcommit 3f3d05fe79f64a4312664e8607d5bd71b3e73b52
parent 2f85ad5b356490f957cd52d81f55624eff08bdd7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 31 Jul 2017 18:28:05 +0200
dial: freeaddrinfo on failure on reconnect
2f85ad5b356490f957cd52d81f55624eff08bdd72017-06-09T14:18:05Z2017-06-09T14:18:05Zadd LICENSE for clarity: public domainHiltjo Posthumahiltjo@codemadness.orgcommit 2f85ad5b356490f957cd52d81f55624eff08bdd7
parent 1cf69611516aba436a11612b742d728498c6bbcd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 9 Jun 2017 16:18:05 +0200
add LICENSE for clarity: public domain
1cf69611516aba436a11612b742d728498c6bbcd2017-06-08T19:19:55Z2017-06-08T19:19:55Zfix crash on reconnect: loosen pledge(2) for reconnectHiltjo Posthumahiltjo@codemadness.orgcommit 1cf69611516aba436a11612b742d728498c6bbcd
parent cd226fa73bb4f6ab20c4cbf3a2a8d6a2c4c407f5
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 8 Jun 2017 21:19:55 +0200
fix crash on reconnect: loosen pledge(2) for reconnect
thanks quinq for reporting it!
cd226fa73bb4f6ab20c4cbf3a2a8d6a2c4c407f52017-05-26T11:12:44Z2017-05-26T11:12:44Zuse libtls, remove raw OpenSSL codeHiltjo Posthumahiltjo@codemadness.orgcommit cd226fa73bb4f6ab20c4cbf3a2a8d6a2c4c407f5
parent 7cabd77bc55e17135fce024801684b33806d2733
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 26 May 2017 13:12:44 +0200
use libtls, remove raw OpenSSL code
by using libtls we also support proper peer verification and other
security additions.
7cabd77bc55e17135fce024801684b33806d27332017-05-26T11:07:05Z2017-05-26T11:07:05Zalign nicknames to the rightHiltjo Posthumahiltjo@codemadness.orgcommit 7cabd77bc55e17135fce024801684b33806d2733
parent 3749ff97c5d5b643a4a570db0b22599445defeb2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 26 May 2017 13:07:05 +0200
align nicknames to the right
3749ff97c5d5b643a4a570db0b22599445defeb22017-05-26T11:05:50Z2017-05-26T11:05:50ZOpenBSD pledge(2)Hiltjo Posthumahiltjo@codemadness.orgcommit 3749ff97c5d5b643a4a570db0b22599445defeb2
parent 976e3a6bc42916575e0ff2ff758c2544bd264ea8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 26 May 2017 13:05:50 +0200
OpenBSD pledge(2)
976e3a6bc42916575e0ff2ff758c2544bd264ea82017-05-26T11:00:57Z2017-05-26T11:00:57Zuse / as prefix for commandsHiltjo Posthumahiltjo@codemadness.orgcommit 976e3a6bc42916575e0ff2ff758c2544bd264ea8
parent 8bc46324826d19a8fcf0f09a2721f8edd1ef560b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 26 May 2017 13:00:57 +0200
use / as prefix for commands
8bc46324826d19a8fcf0f09a2721f8edd1ef560b2017-01-23T01:47:39Z2017-01-23T01:47:39Zdefault nick to userQuentin Carbonneauxquentin.carbonneaux@yale.educommit 8bc46324826d19a8fcf0f09a2721f8edd1ef560b
parent 240a558ac936ef74f05ee3558dac433d29073f0f
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Sun, 22 Jan 2017 20:47:39 -0500
default nick to user
240a558ac936ef74f05ee3558dac433d29073f0f2017-01-19T16:39:46Z2017-01-19T16:39:46Zuse terminal colors for main windowQuentin Carbonneauxquentin.carbonneaux@yale.educommit 240a558ac936ef74f05ee3558dac433d29073f0f
parent 19ba268b6a8dcde8bbd77046e52cb62e1ffc7f5b
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Thu, 19 Jan 2017 11:39:46 -0500
use terminal colors for main window
19ba268b6a8dcde8bbd77046e52cb62e1ffc7f5b2017-01-19T16:26:23Z2017-01-19T16:26:23Zget rid of spurious continueQuentin Carbonneauxquentin.carbonneaux@yale.educommit 19ba268b6a8dcde8bbd77046e52cb62e1ffc7f5b
parent 3bb53c314db1eede1b9359c9e7886105cedd8fc3
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Thu, 19 Jan 2017 11:26:23 -0500
get rid of spurious continue
3bb53c314db1eede1b9359c9e7886105cedd8fc32017-01-19T16:10:01Z2017-01-19T16:10:01Ztentative reconnection supportQuentin Carbonneauxquentin.carbonneaux@yale.educommit 3bb53c314db1eede1b9359c9e7886105cedd8fc3
parent 874cde6562f0c0817a6d14878269c4364cddb801
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Thu, 19 Jan 2017 11:10:01 -0500
tentative reconnection support
874cde6562f0c0817a6d14878269c4364cddb8012017-01-18T23:00:25Z2017-01-18T23:00:25Zstyle nitQuentin Carbonneauxquentin.carbonneaux@yale.educommit 874cde6562f0c0817a6d14878269c4364cddb801
parent baa319ce6d7db30a166843fe1687cd0660d08f8b
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 18 Jan 2017 18:00:25 -0500
style nit
baa319ce6d7db30a166843fe1687cd0660d08f8b2017-01-18T22:53:10Z2017-01-18T22:53:10Zoops, unguarded ssl stuff segfaultsQuentin Carbonneauxquentin.carbonneaux@yale.educommit baa319ce6d7db30a166843fe1687cd0660d08f8b
parent 758f7a193ec87514576ec5d427724cd9e56dd0b2
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 18 Jan 2017 17:53:10 -0500
oops, unguarded ssl stuff segfaults
758f7a193ec87514576ec5d427724cd9e56dd0b22017-01-18T22:50:08Z2017-01-18T22:50:08Zmore glorious feature macrosQuentin Carbonneauxquentin.carbonneaux@yale.educommit 758f7a193ec87514576ec5d427724cd9e56dd0b2
parent 21c47bf2c7498d9fdabbcfe886d6f549b858ae9b
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 18 Jan 2017 17:50:08 -0500
more glorious feature macros
21c47bf2c7498d9fdabbcfe886d6f549b858ae9b2017-01-18T22:39:31Z2017-01-18T22:39:31Zssl support, thanks xcko shrdlu!Quentin Carbonneauxquentin.carbonneaux@yale.educommit 21c47bf2c7498d9fdabbcfe886d6f549b858ae9b
parent 0cfe3fad8f593bcf11d495d90f158afd567b1984
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 18 Jan 2017 17:39:31 -0500
ssl support, thanks xcko shrdlu!
0cfe3fad8f593bcf11d495d90f158afd567b19842016-06-09T18:54:35Z2017-01-18T22:09:27Zadd PASS supportHiltjo Posthumahiltjo@codemadness.orgcommit 0cfe3fad8f593bcf11d495d90f158afd567b1984
parent 1d3c109eb02c514ecedda65cd1bda5256ef0c6c2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 9 Jun 2016 20:54:35 +0200
add PASS support
1d3c109eb02c514ecedda65cd1bda5256ef0c6c22017-01-18T20:12:44Z2017-01-18T20:12:44Zprivmsg support, thanks Evil_Bob!Quentin Carbonneauxquentin.carbonneaux@yale.educommit 1d3c109eb02c514ecedda65cd1bda5256ef0c6c2
parent 48569cdb36dd1a71f3221390b8f25e2ec62fecd7
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 18 Jan 2017 15:12:44 -0500
privmsg support, thanks Evil_Bob!
48569cdb36dd1a71f3221390b8f25e2ec62fecd72016-11-13T07:39:39Z2016-11-21T21:33:31Zctrl-w deletes one wordxcko shrdluxcko@bitmessage.chcommit 48569cdb36dd1a71f3221390b8f25e2ec62fecd7
parent 294e0d2522d6044bf68dc232f87d00703c756d17
Author: xcko shrdlu <xcko@bitmessage.ch>
Date: Sun, 13 Nov 2016 07:39:39 +0000
ctrl-w deletes one word
294e0d2522d6044bf68dc232f87d00703c756d172016-11-21T21:27:28Z2016-11-21T21:27:34Zminor tweaks for compiler warningsQuentin Carbonneauxquentin.carbonneaux@yale.educommit 294e0d2522d6044bf68dc232f87d00703c756d17
parent 7cf5b1709a715eb8af0caadb3af229e04895a822
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Mon, 21 Nov 2016 16:27:28 -0500
minor tweaks for compiler warnings
7cf5b1709a715eb8af0caadb3af229e04895a8222016-11-06T08:47:24Z2016-11-06T16:39:54Zallow ctrl-h as backspacexcko shrdluxcko@bitmessage.chcommit 7cf5b1709a715eb8af0caadb3af229e04895a822
parent f80202802bc1fb4d56f6ce27bcdeaf58d7d1cd1e
Author: xcko shrdlu <xcko@bitmessage.ch>
Date: Sun, 6 Nov 2016 01:47:24 -0700
allow ctrl-h as backspace
f80202802bc1fb4d56f6ce27bcdeaf58d7d1cd1e2016-08-09T23:35:26Z2016-08-09T23:35:26Zadd ipv6 support, thanks Evil_BobQuentin Carbonneauxquentin.carbonneaux@yale.educommit f80202802bc1fb4d56f6ce27bcdeaf58d7d1cd1e
parent c3722d014fe734bd6e7cb97cf1352f9822811c97
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Tue, 9 Aug 2016 19:35:26 -0400
add ipv6 support, thanks Evil_Bob
c3722d014fe734bd6e7cb97cf1352f9822811c972016-05-07T14:04:09Z2016-05-07T14:04:09Zthis is horrible, build on openbsdQuentin Carbonneauxquentin.carbonneaux@yale.educommit c3722d014fe734bd6e7cb97cf1352f9822811c97
parent f1a2b62b2f4d47de58152a1834fa5a8b971dd6d9
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Sat, 7 May 2016 10:04:09 -0400
this is horrible, build on openbsd
f1a2b62b2f4d47de58152a1834fa5a8b971dd6d92016-05-05T02:41:22Z2016-05-05T02:41:22Zdo not print non-printable charactersQuentin Carbonneauxquentin.carbonneaux@yale.educommit f1a2b62b2f4d47de58152a1834fa5a8b971dd6d9
parent 734cc4f0e72259a8be86115c71dce0f112d6ff0b
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 4 May 2016 22:41:22 -0400
do not print non-printable characters
734cc4f0e72259a8be86115c71dce0f112d6ff0b2016-05-05T02:17:19Z2016-05-05T02:17:28Zsupport in-channel unicodeQuentin Carbonneauxquentin.carbonneaux@yale.educommit 734cc4f0e72259a8be86115c71dce0f112d6ff0b
parent 1c4a83b81f92884d7add4962151f16b74637a0c5
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 4 May 2016 22:17:19 -0400
support in-channel unicode
1c4a83b81f92884d7add4962151f16b74637a0c52016-05-04T01:54:34Z2016-05-04T01:54:34Zremove meaningless logic, handle tiny screensQuentin Carbonneauxquentin.carbonneaux@yale.educommit 1c4a83b81f92884d7add4962151f16b74637a0c5
parent 01cb7d3ebee300dac6af2e8d835af425ec66e6e4
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Tue, 3 May 2016 21:54:34 -0400
remove meaningless logic, handle tiny screens
01cb7d3ebee300dac6af2e8d835af425ec66e6e42016-05-04T01:32:15Z2016-05-04T01:32:21Zdo not panicQuentin Carbonneauxquentin.carbonneaux@yale.educommit 01cb7d3ebee300dac6af2e8d835af425ec66e6e4
parent fea5b2171f559a5aac7b38773659eca26064562d
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Tue, 3 May 2016 21:32:15 -0400
do not panic
fea5b2171f559a5aac7b38773659eca26064562d2016-05-04T01:31:50Z2016-05-04T01:31:50Zstyle changeQuentin Carbonneauxquentin.carbonneaux@yale.educommit fea5b2171f559a5aac7b38773659eca26064562d
parent 35d40adb208fd0c8ded353fb80b202d5f6f0b77e
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Tue, 3 May 2016 21:31:50 -0400
style change
35d40adb208fd0c8ded353fb80b202d5f6f0b77e2016-04-28T00:57:41Z2016-04-28T00:57:41ZAdjust indent.Quentin Carbonneauxquentin.carbonneaux@yale.educommit 35d40adb208fd0c8ded353fb80b202d5f6f0b77e
parent e3ce65b0ed8f3e7342646f8272a0cf0c78d31f79
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Thu, 28 Apr 2016 00:57:41 +0000
Adjust indent.
e3ce65b0ed8f3e7342646f8272a0cf0c78d31f792016-04-24T16:32:41Z2016-04-27T15:44:09ZAdd nickname and new message indicator.Hiltjo Posthumahiltjo@codemadness.orgcommit e3ce65b0ed8f3e7342646f8272a0cf0c78d31f79
parent 9d13c27310b659f41379c638b799281d7735201c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 24 Apr 2016 18:32:41 +0200
Add nickname and new message indicator.
9d13c27310b659f41379c638b799281d7735201c2016-04-24T14:29:51Z2016-04-27T15:44:02ZHighlight nickname by prefixing message with >.Hiltjo Posthumahiltjo@codemadness.orgcommit 9d13c27310b659f41379c638b799281d7735201c
parent 588eaca2cef25a0e061d977126c1af0ceb63a443
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 24 Apr 2016 16:29:51 +0200
Highlight nickname by prefixing message with >.
588eaca2cef25a0e061d977126c1af0ceb63a4432016-04-24T13:59:19Z2016-04-27T15:43:01ZAllow logging to a file with -l logfile.Hiltjo Posthumahiltjo@codemadness.orgcommit 588eaca2cef25a0e061d977126c1af0ceb63a443
parent dc7c7582abd1fac3cdbb6068999bc8126bb3848b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 24 Apr 2016 15:59:19 +0200
Allow logging to a file with -l logfile.
dc7c7582abd1fac3cdbb6068999bc8126bb3848b2016-04-27T15:27:46Z2016-04-27T15:42:58ZSanitize Makefile.Quentin Carbonneauxquentin.carbonneaux@yale.educommit dc7c7582abd1fac3cdbb6068999bc8126bb3848b
parent 21abe4f408d582c26ba69a115fec14f778d97563
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 27 Apr 2016 11:27:46 -0400
Sanitize Makefile.
21abe4f408d582c26ba69a115fec14f778d975632016-04-27T15:23:31Z2016-04-27T15:42:52ZGet rid of com line.Quentin Carbonneauxquentin.carbonneaux@yale.educommit 21abe4f408d582c26ba69a115fec14f778d97563
parent fb2a9d3e0ef321180de4fb0b65741ae571cce9ef
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 27 Apr 2016 11:23:31 -0400
Get rid of com line.
fb2a9d3e0ef321180de4fb0b65741ae571cce9ef2016-04-24T13:05:04Z2016-04-27T15:42:49ZAdd Makefile.Hiltjo Posthumahiltjo@codemadness.orgcommit fb2a9d3e0ef321180de4fb0b65741ae571cce9ef
parent 420e494643d4ae10c509d67ddffc7bae069c86eb
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 24 Apr 2016 15:05:04 +0200
Add Makefile.
420e494643d4ae10c509d67ddffc7bae069c86eb2016-04-27T15:22:25Z2016-04-27T15:42:45ZAdd README.Quentin Carbonneauxquentin.carbonneaux@yale.educommit 420e494643d4ae10c509d67ddffc7bae069c86eb
parent 2fe8873b070fca24e5ce7f1b5bf73e402791ad0f
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 27 Apr 2016 11:22:25 -0400
Add README.
2fe8873b070fca24e5ce7f1b5bf73e402791ad0f2016-04-24T13:04:18Z2016-04-27T15:42:39ZRedefine CTRL macro, make it build on OpenBSD.Hiltjo Posthumahiltjo@codemadness.orgcommit 2fe8873b070fca24e5ce7f1b5bf73e402791ad0f
parent ec9dab336522a0282804bfa0aa0b3c79a5630faa
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 24 Apr 2016 15:04:18 +0200
Redefine CTRL macro, make it build on OpenBSD.
ec9dab336522a0282804bfa0aa0b3c79a5630faa2015-04-03T03:03:04Z2015-04-03T03:03:04ZCosmetic changes in pushl.Quentin Carbonneauxquentin.carbonneaux@yale.educommit ec9dab336522a0282804bfa0aa0b3c79a5630faa
parent d29cd51fd4ed8c891bbe6efd7b4f9b5cf67e96e1
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Fri, 3 Apr 2015 03:03:04 +0000
Cosmetic changes in pushl.
d29cd51fd4ed8c891bbe6efd7b4f9b5cf67e96e12015-04-02T22:47:31Z2015-04-02T22:47:31ZAdd clean output for long lines.Quentin Carbonneauxquentin.carbonneaux@yale.educommit d29cd51fd4ed8c891bbe6efd7b4f9b5cf67e96e1
parent a10ff13d00eb7fa816a3771b2c4ae7265627a024
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Thu, 2 Apr 2015 22:47:31 +0000
Add clean output for long lines.
This might make some of the scrolling logic a little bit
inconsistent, but it pleases the eye a lot more!
a10ff13d00eb7fa816a3771b2c4ae7265627a0242012-03-25T08:41:07Z2012-03-25T08:41:07ZAdded option parsing.Quentin Carbonneauxqcarbonneaux@gmail.comcommit a10ff13d00eb7fa816a3771b2c4ae7265627a024
parent 9ec61b4072285e36baeab8f1ac6d819f9445b56c
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Sun, 25 Mar 2012 10:41:07 +0200
Added option parsing.
This commit allows users to customize their IRC user name, nick name,
and server. The user name, if not specified, is taken from the
environment variable USER. The nick name, if not specified, is taken
from IRCNICK. The nick name cannot exceed 63 chars (which is way more
than what is currently accepted by most IRC servers).
9ec61b4072285e36baeab8f1ac6d819f9445b56c2012-03-17T21:37:15Z2012-03-17T21:37:15ZFix uparse to deal explicitely with empty lines.Quentin Carbonneauxqcarbonneaux@gmail.comcommit 9ec61b4072285e36baeab8f1ac6d819f9445b56c
parent 15ec7fd992fc9943740da3d90aec084e13b4392e
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Sat, 17 Mar 2012 22:37:15 +0100
Fix uparse to deal explicitely with empty lines.
Uparse accessed undefined elements if the input line was empty. This was
harmless because the default branch of the switch led the control flow
to the right place, however it could appear a bit obscure. Adding an
extra test will not hurt performance and make the code easier to read.
15ec7fd992fc9943740da3d90aec084e13b4392e2012-03-14T23:42:39Z2012-03-14T23:42:39ZZero all the hints before calling getaddrinfo.Quentin Carbonneauxqcarbonneaux@gmail.comcommit 15ec7fd992fc9943740da3d90aec084e13b4392e
parent 3597152e7424b24233a60fe1b7492e8ee178d08f
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Thu, 15 Mar 2012 00:42:39 +0100
Zero all the hints before calling getaddrinfo.
Testing the program on NetBSD made getaddrinfo whine because all non
filled elements of the struct addrinfo given as hints must be zeros (or
null pointers). Except this point, irc.c seems to work like charm on
NetBSD.
3597152e7424b24233a60fe1b7492e8ee178d08f2012-03-14T23:18:31Z2012-03-14T23:18:31ZRemoved a useless reminiscent from the past.Quentin Carbonneauxqcarbonneaux@gmail.comcommit 3597152e7424b24233a60fe1b7492e8ee178d08f
parent 45c4c659970dee52d8dd373e548877ae453b690d
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Thu, 15 Mar 2012 00:18:31 +0100
Removed a useless reminiscent from the past.
45c4c659970dee52d8dd373e548877ae453b690d2012-03-14T23:03:24Z2012-03-14T23:03:24ZCosmetic modifications.Quentin Carbonneauxqcarbonneaux@gmail.comcommit 45c4c659970dee52d8dd373e548877ae453b690d
parent f8a2a7b155eef7c14cf0f08fb24cb04b46c70fa8
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Thu, 15 Mar 2012 00:03:24 +0100
Cosmetic modifications.
Fixed one panic message, they must start with an upper case letter and
end with a dot.
Removed spurious comments in tgetch.
Added ^D as a recognised command in tgetch, it has its usual behavior:
it deletes the letter under the cursor.
f8a2a7b155eef7c14cf0f08fb24cb04b46c70fa82012-03-14T22:46:13Z2012-03-14T22:49:07ZDisplay joined channels in status bar.Quentin Carbonneauxqcarbonneaux@gmail.comcommit f8a2a7b155eef7c14cf0f08fb24cb04b46c70fa8
parent 43b2c32a6d4ddbb64edbd7428a7d0a425cab6e96
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Wed, 14 Mar 2012 23:46:13 +0100
Display joined channels in status bar.
The status bar was not useful, now it displays the list of joined
channels. The function tdrawbar will redraw the whole bar (no clever
refreshing here, it does not worth the complexity). Tdrawbar tries to
keep the current channel in the middle of the bar to maximize the
context on both sides.
43b2c32a6d4ddbb64edbd7428a7d0a425cab6e962012-03-12T08:40:37Z2012-03-12T08:40:37ZHeavy surgery on tgetch.Quentin Carbonneauxqcarbonneaux@gmail.comcommit 43b2c32a6d4ddbb64edbd7428a7d0a425cab6e96
parent 110c0a8075a87cf1991233c158ad51fe69e48e2a
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Mon, 12 Mar 2012 09:40:37 +0100
Heavy surgery on tgetch.
The code layout used in the main switch was unified. The printer was re
written from scratch to handle long input lines. The code is supposed to
resist to terminal resizes (with some slight refresh problems).
110c0a8075a87cf1991233c158ad51fe69e48e2a2012-03-11T22:54:14Z2012-03-11T22:54:14ZTest the result of ioctl (TIOCGWINSZ).Quentin Carbonneauxqcarbonneaux@gmail.comcommit 110c0a8075a87cf1991233c158ad51fe69e48e2a
parent 7242e2cc4b68ca55086a26cb57139a9b29470bbf
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Sun, 11 Mar 2012 23:54:14 +0100
Test the result of ioctl (TIOCGWINSZ).
7242e2cc4b68ca55086a26cb57139a9b29470bbf2012-03-11T22:46:50Z2012-03-11T22:49:54ZCosmetic modifications.Quentin Carbonneauxqcarbonneaux@gmail.comcommit 7242e2cc4b68ca55086a26cb57139a9b29470bbf
parent 61e93595f832ccc9a46428eaf398d776e482dfd2
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Sun, 11 Mar 2012 23:46:50 +0100
Cosmetic modifications.
Tried to beautify the code by aligning some related code and renaming lb
in tgetch to l which is more consistent with the rest of the file.
In tgetch, the invariant changed from len<=BufSz to len<=BufSz-1, this
allows to trivially nul terminate the line being processed.
61e93595f832ccc9a46428eaf398d776e482dfd22012-03-11T22:10:35Z2012-03-11T22:10:35ZUse ioctl to retreive screen's size in tresize.Quentin Carbonneauxqcarbonneaux@gmail.comcommit 61e93595f832ccc9a46428eaf398d776e482dfd2
parent c5b6ac6afa188bd107bdbfb96500182447368b05
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Sun, 11 Mar 2012 23:10:35 +0100
Use ioctl to retreive screen's size in tresize.
The curses (ncurses) library does not automatically get the new size of
the terminal, thus, we must rely on an ioctl to retreive it and inform
ncurses with a resizeterm call.
c5b6ac6afa188bd107bdbfb96500182447368b052012-03-11T21:03:49Z2012-03-11T21:03:49ZHandle terminal resizes.Quentin Carbonneauxqcarbonneaux@gmail.comcommit c5b6ac6afa188bd107bdbfb96500182447368b05
parent 646d0a762d1536fca7c19518d1e30a269b57cba5
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Sun, 11 Mar 2012 22:03:49 +0100
Handle terminal resizes.
The KEY_RESIZE feature of ncurses is not used since it is not possible
to detect if a KEY_RESIZE was queued by selecting on stdin. Hence, tinit
now installs a SIGWINCH handler which will set the winchg variable to 1.
I rely on the fact that select will be interrupted by the signal which
pops after a terminal resize to be able to redraw the screen
instantaneously.
tresize does all the job of resizing the three used curses windows.
646d0a762d1536fca7c19518d1e30a269b57cba52012-03-10T16:13:54Z2012-03-10T16:13:54ZFixed the 'r' command.Quentin Carbonneauxqcarbonneaux@gmail.comcommit 646d0a762d1536fca7c19518d1e30a269b57cba5
parent f87508a1f9fd98d217a8dbe07281835160a58116
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Sat, 10 Mar 2012 17:13:54 +0100
Fixed the 'r' command.
This command kept sending the 'r' before the actual string we wanted to
send.
f87508a1f9fd98d217a8dbe07281835160a581162012-03-10T16:01:15Z2012-03-10T16:01:15ZFactoring of pushf and pushm, plus minor changes.Quentin Carbonneauxqcarbonneaux@gmail.comcommit f87508a1f9fd98d217a8dbe07281835160a58116
parent 9853570e09cd34fc5fd6a4a0c03055e5012920ec
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Sat, 10 Mar 2012 17:01:15 +0100
Factoring of pushf and pushm, plus minor changes.
Pushm was no used in the current code, I inlined it in pushf to save
lines and factor logic. I removed the call for tredraw to avoid blinking
and only redrawn the last line.
Some minor changes were done:
* NOTICE, and motd are now handled by the scmd function.
* Tredraw was slightly modified to make use of the last line of scr.mw.
* The sz element of channels was moved from int to size_t.
9853570e09cd34fc5fd6a4a0c03055e5012920ec2012-03-10T12:23:07Z2012-03-10T12:23:07ZInitial import in Git.Quentin Carbonneauxqcarbonneaux@gmail.comcommit 9853570e09cd34fc5fd6a4a0c03055e5012920ec
Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
Date: Sat, 10 Mar 2012 13:23:07 +0100
Initial import in Git.