irc, branch HEAD IRC client based on c9x.me/irc client a76e61d38fdb84eba0f258da037c28d583e1e037 2020-07-25T11:00:04Z 2020-07-25T11:00:04Z update README Hiltjo Posthuma hiltjo@codemadness.org commit a76e61d38fdb84eba0f258da037c28d583e1e037 parent 3f3d05fe79f64a4312664e8607d5bd71b3e73b52 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 25 Jul 2020 13:00:04 +0200 update README 3f3d05fe79f64a4312664e8607d5bd71b3e73b52 2017-07-31T16:28:05Z 2017-07-31T16:28:05Z dial: freeaddrinfo on failure on reconnect Hiltjo Posthuma hiltjo@codemadness.org commit 3f3d05fe79f64a4312664e8607d5bd71b3e73b52 parent 2f85ad5b356490f957cd52d81f55624eff08bdd7 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 31 Jul 2017 18:28:05 +0200 dial: freeaddrinfo on failure on reconnect 2f85ad5b356490f957cd52d81f55624eff08bdd7 2017-06-09T14:18:05Z 2017-06-09T14:18:05Z add LICENSE for clarity: public domain Hiltjo Posthuma hiltjo@codemadness.org commit 2f85ad5b356490f957cd52d81f55624eff08bdd7 parent 1cf69611516aba436a11612b742d728498c6bbcd Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 9 Jun 2017 16:18:05 +0200 add LICENSE for clarity: public domain 1cf69611516aba436a11612b742d728498c6bbcd 2017-06-08T19:19:55Z 2017-06-08T19:19:55Z fix crash on reconnect: loosen pledge(2) for reconnect Hiltjo Posthuma hiltjo@codemadness.org commit 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! cd226fa73bb4f6ab20c4cbf3a2a8d6a2c4c407f5 2017-05-26T11:12:44Z 2017-05-26T11:12:44Z use libtls, remove raw OpenSSL code Hiltjo Posthuma hiltjo@codemadness.org commit 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. 7cabd77bc55e17135fce024801684b33806d2733 2017-05-26T11:07:05Z 2017-05-26T11:07:05Z align nicknames to the right Hiltjo Posthuma hiltjo@codemadness.org commit 7cabd77bc55e17135fce024801684b33806d2733 parent 3749ff97c5d5b643a4a570db0b22599445defeb2 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 26 May 2017 13:07:05 +0200 align nicknames to the right 3749ff97c5d5b643a4a570db0b22599445defeb2 2017-05-26T11:05:50Z 2017-05-26T11:05:50Z OpenBSD pledge(2) Hiltjo Posthuma hiltjo@codemadness.org commit 3749ff97c5d5b643a4a570db0b22599445defeb2 parent 976e3a6bc42916575e0ff2ff758c2544bd264ea8 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 26 May 2017 13:05:50 +0200 OpenBSD pledge(2) 976e3a6bc42916575e0ff2ff758c2544bd264ea8 2017-05-26T11:00:57Z 2017-05-26T11:00:57Z use / as prefix for commands Hiltjo Posthuma hiltjo@codemadness.org commit 976e3a6bc42916575e0ff2ff758c2544bd264ea8 parent 8bc46324826d19a8fcf0f09a2721f8edd1ef560b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 26 May 2017 13:00:57 +0200 use / as prefix for commands 8bc46324826d19a8fcf0f09a2721f8edd1ef560b 2017-01-23T01:47:39Z 2017-01-23T01:47:39Z default nick to user Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 8bc46324826d19a8fcf0f09a2721f8edd1ef560b parent 240a558ac936ef74f05ee3558dac433d29073f0f Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Sun, 22 Jan 2017 20:47:39 -0500 default nick to user 240a558ac936ef74f05ee3558dac433d29073f0f 2017-01-19T16:39:46Z 2017-01-19T16:39:46Z use terminal colors for main window Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 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 19ba268b6a8dcde8bbd77046e52cb62e1ffc7f5b 2017-01-19T16:26:23Z 2017-01-19T16:26:23Z get rid of spurious continue Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 19ba268b6a8dcde8bbd77046e52cb62e1ffc7f5b parent 3bb53c314db1eede1b9359c9e7886105cedd8fc3 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Thu, 19 Jan 2017 11:26:23 -0500 get rid of spurious continue 3bb53c314db1eede1b9359c9e7886105cedd8fc3 2017-01-19T16:10:01Z 2017-01-19T16:10:01Z tentative reconnection support Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 3bb53c314db1eede1b9359c9e7886105cedd8fc3 parent 874cde6562f0c0817a6d14878269c4364cddb801 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Thu, 19 Jan 2017 11:10:01 -0500 tentative reconnection support 874cde6562f0c0817a6d14878269c4364cddb801 2017-01-18T23:00:25Z 2017-01-18T23:00:25Z style nit Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 874cde6562f0c0817a6d14878269c4364cddb801 parent baa319ce6d7db30a166843fe1687cd0660d08f8b Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 18 Jan 2017 18:00:25 -0500 style nit baa319ce6d7db30a166843fe1687cd0660d08f8b 2017-01-18T22:53:10Z 2017-01-18T22:53:10Z oops, unguarded ssl stuff segfaults Quentin Carbonneaux quentin.carbonneaux@yale.edu commit baa319ce6d7db30a166843fe1687cd0660d08f8b parent 758f7a193ec87514576ec5d427724cd9e56dd0b2 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 18 Jan 2017 17:53:10 -0500 oops, unguarded ssl stuff segfaults 758f7a193ec87514576ec5d427724cd9e56dd0b2 2017-01-18T22:50:08Z 2017-01-18T22:50:08Z more glorious feature macros Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 758f7a193ec87514576ec5d427724cd9e56dd0b2 parent 21c47bf2c7498d9fdabbcfe886d6f549b858ae9b Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 18 Jan 2017 17:50:08 -0500 more glorious feature macros 21c47bf2c7498d9fdabbcfe886d6f549b858ae9b 2017-01-18T22:39:31Z 2017-01-18T22:39:31Z ssl support, thanks xcko shrdlu! Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 21c47bf2c7498d9fdabbcfe886d6f549b858ae9b parent 0cfe3fad8f593bcf11d495d90f158afd567b1984 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 18 Jan 2017 17:39:31 -0500 ssl support, thanks xcko shrdlu! 0cfe3fad8f593bcf11d495d90f158afd567b1984 2016-06-09T18:54:35Z 2017-01-18T22:09:27Z add PASS support Hiltjo Posthuma hiltjo@codemadness.org commit 0cfe3fad8f593bcf11d495d90f158afd567b1984 parent 1d3c109eb02c514ecedda65cd1bda5256ef0c6c2 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 9 Jun 2016 20:54:35 +0200 add PASS support 1d3c109eb02c514ecedda65cd1bda5256ef0c6c2 2017-01-18T20:12:44Z 2017-01-18T20:12:44Z privmsg support, thanks Evil_Bob! Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 1d3c109eb02c514ecedda65cd1bda5256ef0c6c2 parent 48569cdb36dd1a71f3221390b8f25e2ec62fecd7 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 18 Jan 2017 15:12:44 -0500 privmsg support, thanks Evil_Bob! 48569cdb36dd1a71f3221390b8f25e2ec62fecd7 2016-11-13T07:39:39Z 2016-11-21T21:33:31Z ctrl-w deletes one word xcko shrdlu xcko@bitmessage.ch commit 48569cdb36dd1a71f3221390b8f25e2ec62fecd7 parent 294e0d2522d6044bf68dc232f87d00703c756d17 Author: xcko shrdlu <xcko@bitmessage.ch> Date: Sun, 13 Nov 2016 07:39:39 +0000 ctrl-w deletes one word 294e0d2522d6044bf68dc232f87d00703c756d17 2016-11-21T21:27:28Z 2016-11-21T21:27:34Z minor tweaks for compiler warnings Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 294e0d2522d6044bf68dc232f87d00703c756d17 parent 7cf5b1709a715eb8af0caadb3af229e04895a822 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Mon, 21 Nov 2016 16:27:28 -0500 minor tweaks for compiler warnings 7cf5b1709a715eb8af0caadb3af229e04895a822 2016-11-06T08:47:24Z 2016-11-06T16:39:54Z allow ctrl-h as backspace xcko shrdlu xcko@bitmessage.ch commit 7cf5b1709a715eb8af0caadb3af229e04895a822 parent f80202802bc1fb4d56f6ce27bcdeaf58d7d1cd1e Author: xcko shrdlu <xcko@bitmessage.ch> Date: Sun, 6 Nov 2016 01:47:24 -0700 allow ctrl-h as backspace f80202802bc1fb4d56f6ce27bcdeaf58d7d1cd1e 2016-08-09T23:35:26Z 2016-08-09T23:35:26Z add ipv6 support, thanks Evil_Bob Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 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 c3722d014fe734bd6e7cb97cf1352f9822811c97 2016-05-07T14:04:09Z 2016-05-07T14:04:09Z this is horrible, build on openbsd Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 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 f1a2b62b2f4d47de58152a1834fa5a8b971dd6d9 2016-05-05T02:41:22Z 2016-05-05T02:41:22Z do not print non-printable characters Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 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 734cc4f0e72259a8be86115c71dce0f112d6ff0b 2016-05-05T02:17:19Z 2016-05-05T02:17:28Z support in-channel unicode Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 734cc4f0e72259a8be86115c71dce0f112d6ff0b parent 1c4a83b81f92884d7add4962151f16b74637a0c5 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 4 May 2016 22:17:19 -0400 support in-channel unicode 1c4a83b81f92884d7add4962151f16b74637a0c5 2016-05-04T01:54:34Z 2016-05-04T01:54:34Z remove meaningless logic, handle tiny screens Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 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 01cb7d3ebee300dac6af2e8d835af425ec66e6e4 2016-05-04T01:32:15Z 2016-05-04T01:32:21Z do not panic Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 01cb7d3ebee300dac6af2e8d835af425ec66e6e4 parent fea5b2171f559a5aac7b38773659eca26064562d Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Tue, 3 May 2016 21:32:15 -0400 do not panic fea5b2171f559a5aac7b38773659eca26064562d 2016-05-04T01:31:50Z 2016-05-04T01:31:50Z style change Quentin Carbonneaux quentin.carbonneaux@yale.edu commit fea5b2171f559a5aac7b38773659eca26064562d parent 35d40adb208fd0c8ded353fb80b202d5f6f0b77e Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Tue, 3 May 2016 21:31:50 -0400 style change 35d40adb208fd0c8ded353fb80b202d5f6f0b77e 2016-04-28T00:57:41Z 2016-04-28T00:57:41Z Adjust indent. Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 35d40adb208fd0c8ded353fb80b202d5f6f0b77e parent e3ce65b0ed8f3e7342646f8272a0cf0c78d31f79 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Thu, 28 Apr 2016 00:57:41 +0000 Adjust indent. e3ce65b0ed8f3e7342646f8272a0cf0c78d31f79 2016-04-24T16:32:41Z 2016-04-27T15:44:09Z Add nickname and new message indicator. Hiltjo Posthuma hiltjo@codemadness.org commit e3ce65b0ed8f3e7342646f8272a0cf0c78d31f79 parent 9d13c27310b659f41379c638b799281d7735201c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 24 Apr 2016 18:32:41 +0200 Add nickname and new message indicator. 9d13c27310b659f41379c638b799281d7735201c 2016-04-24T14:29:51Z 2016-04-27T15:44:02Z Highlight nickname by prefixing message with >. Hiltjo Posthuma hiltjo@codemadness.org commit 9d13c27310b659f41379c638b799281d7735201c parent 588eaca2cef25a0e061d977126c1af0ceb63a443 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 24 Apr 2016 16:29:51 +0200 Highlight nickname by prefixing message with >. 588eaca2cef25a0e061d977126c1af0ceb63a443 2016-04-24T13:59:19Z 2016-04-27T15:43:01Z Allow logging to a file with -l logfile. Hiltjo Posthuma hiltjo@codemadness.org commit 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. dc7c7582abd1fac3cdbb6068999bc8126bb3848b 2016-04-27T15:27:46Z 2016-04-27T15:42:58Z Sanitize Makefile. Quentin Carbonneaux quentin.carbonneaux@yale.edu commit dc7c7582abd1fac3cdbb6068999bc8126bb3848b parent 21abe4f408d582c26ba69a115fec14f778d97563 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 27 Apr 2016 11:27:46 -0400 Sanitize Makefile. 21abe4f408d582c26ba69a115fec14f778d97563 2016-04-27T15:23:31Z 2016-04-27T15:42:52Z Get rid of com line. Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 21abe4f408d582c26ba69a115fec14f778d97563 parent fb2a9d3e0ef321180de4fb0b65741ae571cce9ef Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 27 Apr 2016 11:23:31 -0400 Get rid of com line. fb2a9d3e0ef321180de4fb0b65741ae571cce9ef 2016-04-24T13:05:04Z 2016-04-27T15:42:49Z Add Makefile. Hiltjo Posthuma hiltjo@codemadness.org commit fb2a9d3e0ef321180de4fb0b65741ae571cce9ef parent 420e494643d4ae10c509d67ddffc7bae069c86eb Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 24 Apr 2016 15:05:04 +0200 Add Makefile. 420e494643d4ae10c509d67ddffc7bae069c86eb 2016-04-27T15:22:25Z 2016-04-27T15:42:45Z Add README. Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 420e494643d4ae10c509d67ddffc7bae069c86eb parent 2fe8873b070fca24e5ce7f1b5bf73e402791ad0f Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 27 Apr 2016 11:22:25 -0400 Add README. 2fe8873b070fca24e5ce7f1b5bf73e402791ad0f 2016-04-24T13:04:18Z 2016-04-27T15:42:39Z Redefine CTRL macro, make it build on OpenBSD. Hiltjo Posthuma hiltjo@codemadness.org commit 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. ec9dab336522a0282804bfa0aa0b3c79a5630faa 2015-04-03T03:03:04Z 2015-04-03T03:03:04Z Cosmetic changes in pushl. Quentin Carbonneaux quentin.carbonneaux@yale.edu commit ec9dab336522a0282804bfa0aa0b3c79a5630faa parent d29cd51fd4ed8c891bbe6efd7b4f9b5cf67e96e1 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Fri, 3 Apr 2015 03:03:04 +0000 Cosmetic changes in pushl. d29cd51fd4ed8c891bbe6efd7b4f9b5cf67e96e1 2015-04-02T22:47:31Z 2015-04-02T22:47:31Z Add clean output for long lines. Quentin Carbonneaux quentin.carbonneaux@yale.edu commit 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! a10ff13d00eb7fa816a3771b2c4ae7265627a024 2012-03-25T08:41:07Z 2012-03-25T08:41:07Z Added option parsing. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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). 9ec61b4072285e36baeab8f1ac6d819f9445b56c 2012-03-17T21:37:15Z 2012-03-17T21:37:15Z Fix uparse to deal explicitely with empty lines. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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. 15ec7fd992fc9943740da3d90aec084e13b4392e 2012-03-14T23:42:39Z 2012-03-14T23:42:39Z Zero all the hints before calling getaddrinfo. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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. 3597152e7424b24233a60fe1b7492e8ee178d08f 2012-03-14T23:18:31Z 2012-03-14T23:18:31Z Removed a useless reminiscent from the past. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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. 45c4c659970dee52d8dd373e548877ae453b690d 2012-03-14T23:03:24Z 2012-03-14T23:03:24Z Cosmetic modifications. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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. f8a2a7b155eef7c14cf0f08fb24cb04b46c70fa8 2012-03-14T22:46:13Z 2012-03-14T22:49:07Z Display joined channels in status bar. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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. 43b2c32a6d4ddbb64edbd7428a7d0a425cab6e96 2012-03-12T08:40:37Z 2012-03-12T08:40:37Z Heavy surgery on tgetch. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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). 110c0a8075a87cf1991233c158ad51fe69e48e2a 2012-03-11T22:54:14Z 2012-03-11T22:54:14Z Test the result of ioctl (TIOCGWINSZ). Quentin Carbonneaux qcarbonneaux@gmail.com commit 110c0a8075a87cf1991233c158ad51fe69e48e2a parent 7242e2cc4b68ca55086a26cb57139a9b29470bbf Author: Quentin Carbonneaux <qcarbonneaux@gmail.com> Date: Sun, 11 Mar 2012 23:54:14 +0100 Test the result of ioctl (TIOCGWINSZ). 7242e2cc4b68ca55086a26cb57139a9b29470bbf 2012-03-11T22:46:50Z 2012-03-11T22:49:54Z Cosmetic modifications. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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. 61e93595f832ccc9a46428eaf398d776e482dfd2 2012-03-11T22:10:35Z 2012-03-11T22:10:35Z Use ioctl to retreive screen's size in tresize. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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. c5b6ac6afa188bd107bdbfb96500182447368b05 2012-03-11T21:03:49Z 2012-03-11T21:03:49Z Handle terminal resizes. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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. 646d0a762d1536fca7c19518d1e30a269b57cba5 2012-03-10T16:13:54Z 2012-03-10T16:13:54Z Fixed the 'r' command. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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. f87508a1f9fd98d217a8dbe07281835160a58116 2012-03-10T16:01:15Z 2012-03-10T16:01:15Z Factoring of pushf and pushm, plus minor changes. Quentin Carbonneaux qcarbonneaux@gmail.com commit 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. 9853570e09cd34fc5fd6a4a0c03055e5012920ec 2012-03-10T12:23:07Z 2012-03-10T12:23:07Z Initial import in Git. Quentin Carbonneaux qcarbonneaux@gmail.com commit 9853570e09cd34fc5fd6a4a0c03055e5012920ec Author: Quentin Carbonneaux <qcarbonneaux@gmail.com> Date: Sat, 10 Mar 2012 13:23:07 +0100 Initial import in Git.