summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-12eye candyHEADmasterQuentin Carbonneaux
2024-04-12ping the server regularlyQuentin Carbonneaux
2023-02-02use LDLIBS instead of LDFLAGSQuentin Carbonneaux
2021-03-02install/uninstall targetsthebenraskin
2017-06-13update READMEQuentin Carbonneaux
2017-01-22default nick to userQuentin Carbonneaux
2017-01-19use terminal colors for main windowQuentin Carbonneaux
2017-01-19get rid of spurious continueQuentin Carbonneaux
2017-01-19tentative reconnection supportQuentin Carbonneaux
2017-01-18style nitQuentin Carbonneaux
2017-01-18oops, unguarded ssl stuff segfaultsQuentin Carbonneaux
2017-01-18more glorious feature macrosQuentin Carbonneaux
2017-01-18ssl support, thanks xcko shrdlu!Quentin Carbonneaux
2017-01-18add PASS supportHiltjo Posthuma
2017-01-18privmsg support, thanks Evil_Bob!Quentin Carbonneaux
2016-11-21ctrl-w deletes one wordxcko shrdlu
2016-11-21minor tweaks for compiler warningsQuentin Carbonneaux
2016-11-06allow ctrl-h as backspacexcko shrdlu
2016-08-09add ipv6 support, thanks Evil_BobQuentin Carbonneaux
2016-05-07this is horrible, build on openbsdQuentin Carbonneaux
2016-05-04do not print non-printable charactersQuentin Carbonneaux
2016-05-04support in-channel unicodeQuentin Carbonneaux
2016-05-03remove meaningless logic, handle tiny screensQuentin Carbonneaux
2016-05-03do not panicQuentin Carbonneaux
2016-05-03style changeQuentin Carbonneaux
2016-04-28Adjust indent.Quentin Carbonneaux
2016-04-27Add nickname and new message indicator.Hiltjo Posthuma
2016-04-27Highlight nickname by prefixing message with >.Hiltjo Posthuma
2016-04-27Allow logging to a file with -l logfile.Hiltjo Posthuma
2016-04-27Sanitize Makefile.Quentin Carbonneaux
2016-04-27Get rid of com line.Quentin Carbonneaux
2016-04-27Add Makefile.Hiltjo Posthuma
2016-04-27Add README.Quentin Carbonneaux
2016-04-27Redefine CTRL macro, make it build on OpenBSD.Hiltjo Posthuma
2015-04-03Cosmetic changes in pushl.Quentin Carbonneaux
2015-04-02Add clean output for long lines.Quentin Carbonneaux
This might make some of the scrolling logic a little bit inconsistent, but it pleases the eye a lot more!
2012-03-25Added option parsing.Quentin Carbonneaux
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).
2012-03-17Fix uparse to deal explicitely with empty lines.Quentin Carbonneaux
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.
2012-03-15Zero all the hints before calling getaddrinfo.Quentin Carbonneaux
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.
2012-03-15Removed a useless reminiscent from the past.Quentin Carbonneaux
2012-03-15Cosmetic modifications.Quentin Carbonneaux
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.
2012-03-14Display joined channels in status bar.Quentin Carbonneaux
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.
2012-03-12Heavy surgery on tgetch.Quentin Carbonneaux
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).
2012-03-11Test the result of ioctl (TIOCGWINSZ).Quentin Carbonneaux
2012-03-11Cosmetic modifications.Quentin Carbonneaux
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.
2012-03-11Use ioctl to retreive screen's size in tresize.Quentin Carbonneaux
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.
2012-03-11Handle terminal resizes.Quentin Carbonneaux
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.
2012-03-10Fixed the 'r' command.Quentin Carbonneaux
This command kept sending the 'r' before the actual string we wanted to send.
2012-03-10Factoring of pushf and pushm, plus minor changes.Quentin Carbonneaux
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.
2012-03-10Initial import in Git.Quentin Carbonneaux