summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk/init_disp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Remove unused headers and sort the remainingmestre2016-02-011-2/+4
| | | | | | | Remove lint-style comments Swap hardcoded string on usage() for __progname OK tb@
* remove unused include dating from the pre-termios code and accidentallynaddy2013-12-111-2/+1
| | | | reintroduced with the 4.4lite merge 19 years ago
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-8/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* use socklen_t and better socket() checks. from Andrey Matveevtedu2004-03-021-2/+2
| | | | -Wall for good measure
* add missing includesdavid2003-07-101-2/+3
| | | | ok deraadt@ tedu@
* mostly ansi cleanup; pval okderaadt2003-06-101-12/+8
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* o Resize nicely when we receive SIGWINCHmillert2002-06-211-4/+58
| | | | o Also change some 0-2 to *_FILENO
* Add a -s option to enable the smooth scrolling in revision 1.10millert2002-06-201-4/+4
| | | | The default behavior remains unchanged.
* undo last commit; deraadt@form2002-06-201-4/+4
|
* scrolling support.form2002-06-201-4/+4
| | | | ok millert@
* warnx?/errx? paranoia (use "%s" not a bare string unless it is amillert2000-06-301-4/+4
| | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
* Don't bother calling nl() in init_display, just do the '\r' -> '\n' conversionmillert1999-03-231-3/+2
| | | | | | ourselves in display(). Since we don't use the curses input routines we have to do the conversion by hand. This is cheap because input processing is done on a per-character basis. Closes PR 783.
* Use cbreak(), not crmode() since crmode is just #define'd to cbreakmillert1999-03-231-3/+4
| | | | | | | anyway. Add a call to nl() after the cbreak(). This would fix PR #783 except that ncurses does not set ICRNL/ONLCR in nl() like I think it should. PR #783 will be fixed once that issue is resolved so consider this part one of two...
* Print fatal errors to stderr after curses has finished instead of printing to the curses window which disapears immediately for terminals that can restore the screen.millert1999-03-031-7/+14
|
* add some parens for claritymillert1998-12-201-5/+5
|
* s/CKILL/VKILL/, a todd miller bug special apparentlyderaadt1998-08-311-4/+4
|
* Some changes inspired by FreeBSD...millert1998-08-181-17/+14
| | | | | | | | | o Kill annoying spaces at the end of lines o sigaction, not sigvec o warn/err where sensible o hstrerror() not herror() o defaults for erase, kill, and werase if not set o kill a needless refresh() after the beeps that was messing up the screen
* NetBSD-based -Wall cleanuppjanzen1998-04-281-8/+11
|
* rcsidderaadt1996-06-261-1/+2
|
* Use beep() with ncursestholo1996-06-101-0/+4
| | | | Use hline() with ncurses
* initial import of NetBSD treederaadt1995-10-181-0/+153