summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/fake_pty.c
Commit message (Collapse)AuthorAgeFilesLines
* travis configurationtravisJesse Luehrs2014-08-171-0/+9
|
* Fix fake_pty not passing return codes correctly.Adam Borowski2013-11-021-2/+8
|
* Don't use an obscure word in a comment.Adam Borowski2013-10-281-1/+1
| | | | | | | | | | | "Everyone not a moron will know it" is true only in Poland, and contrary to my unconscious assumption, imported words are not equally widespread everywhere -- especially that Sienkiewicz got it totally wrong. With his novels being until recently mandatory reading he effectively created a new word. Thus: "kęsim" -- a writer's impression of Tatar word for "decapitation". Isn't "learn a word a day" fun?
* A tool to run multiple tests concurrently, or without a terminal.Adam Borowski2012-09-171-0/+84
Merely redirecting stdout to /dev/null is not enough: Crawl and ncurses insist to be able to ioctl the terminal, check the window size, try to read from stdin and fail if it's in eof state, etc. Eliminating all such references would be quite a bit of work (ncurses assumes stdin/stdout are always a terminal even if newterm() is used), and would be probably too intrusive to be a faithful test. Because of no autoconf, the pty code is not very portable, but should work on Linux and BSD (hopefully including MacOS X). For a portable implementation, one could use http://angband.pl/svn/kbtin/trunk/run.c (+ autoconfage), but then, probably running on IRIX, pre-Solaris SunOS, HP UX or SCO isn't that important... and there are no real ptys on Windows.