summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-1/+2
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Support for get_line history in WebTilesPekka Lampila2013-12-041-0/+2
|
* Special handling for WebTiles travel depth promptPekka Lampila2013-12-031-1/+5
| | | | | | Allows using <, >, $ etc. Dead keys aren't handled properly (at least not in Firefox on Linux).
* Special handling for repeat cmd prompt in WebTilesPekka Lampila2013-12-031-0/+7
| | | | Previously it was simply broken.
* Don't go out-of-bounds in wrapcprintf (#7637)Neil Moore2013-12-011-2/+7
| | | | And constify, lift things out of loops, etc.
* Improve webtiles text inputs.Neil Moore2013-09-281-0/+2
| | | | | | Make them larger when there is already text to be edited (15 characters plus the old length of the text), and cap the maximum input length at the buffer size (minus one for the NUL).
* Make cprintf() work outside GOTO_CRT (#7509)Neil Moore2013-09-281-7/+4
| | | | | | | It was switching to GOTO_CRT after the first line, which in tiles changed the screen layer, hiding the first line (and everything else, unless we were already in GOTO_CRT). That was particularly noticeable during line editing (#7509).
* Cancel an american speling.Adam Borowski2013-08-241-1/+1
| | | | | | Looks like, unlike "target[t]ing" where a single t is used by many brits and even some aussies, "cancel[l]ing" has double l even for a good deal of americans.
* Handle pre-filled get_lines in webtiles (#7509)Neil Moore2013-08-241-3/+4
|
* Allow specifying pre-filled text for {msgwin,cancelable}_get_line.Neil Moore2013-08-241-2/+10
| | | | Also remove an unused parameter.
* Shuffle some function prototypes to correct places.Adam Borowski2013-04-071-2/+0
|
* Webtiles: Fix the ? key in stash search (#6630).Florian Diebold2013-03-131-0/+2
|
* Webtiles: Fix the line reader showing up in the message window for menus.Florian Diebold2012-11-231-5/+8
| | | | For example, when inscribing an item from its description.
* Split MOUSE_MODE_MORE into versions for prompts, to give the Webtiles client ↵Florian Diebold2012-11-231-1/+1
| | | | more information.
* Webtiles: Fix prompts not being removed during key replay or macros.Florian Diebold2012-11-231-5/+26
|
* Webtiles: Do message scrolling etc. on the client side.Florian Diebold2012-11-231-0/+8
| | | | | | | | Previously, the message pane was rendered on the server side and its contents were sent to the client as they were displayed in the terminal. Now, messages are sent as separate objects. This also necessitates special handling of more prompts and line_reader for webtiles.
* Use std namespace.Raphael Langella2012-08-261-10/+10
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Some more return deparenthesization.Adam Borowski2012-07-051-2/+2
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-11/+11
|
* A couple of comments I stashed ages ago and just found.Samuel Bronson2011-11-301-0/+1
|
* Apply duaneg's patch in Mantis 4937 to fix potential crash/memory corruption.David Lawrence Ramsey2011-11-241-1/+1
|
* Webtiles JS Modularization, part II.Florian Diebold2011-10-291-1/+1
| | | | | | | This organizes the game-specific javascript into proper modules, and converts all messages from Crawl to JS objects. This means that the game javascript is now loaded asynchronically, which should fix the browser hang when starting a game.
* Show the targeting cursor in Webtiles.Florian Diebold2011-10-161-2/+6
|
* Make Webtiles output happen in parallel to the console display, and make the ↵Florian Diebold2011-10-151-4/+4
| | | | | | | | | | | | | | | | | | server record ttyrecs. Crawl compiled with WEBTILES=y should now be playable normally (i.e. indistinguishable from one compiled without WEBTILES) when run from a terminal. (This is not yet completely the case.) The Webtiles data is written on a Unix-domain datagram socket; the Crawl parameter -webtiles-socket determines a path on which the Crawl process receives control messages. The Webtiles server then runs Crawl in a pseudo-terminal and records its console output into a ttyrec file. The goal of all this is of course to be able to watch Webtiles games from ssh, and later the reverse.
* Fix line_reader's handling of the DELETE key.Samuel Bronson2011-09-231-1/+1
|
* Make a bunch of functions static or non-existant.Adam Borowski2011-08-171-7/+1
|
* Handle SIGHUP in tiles and on Windows.Adam Borowski2011-05-011-2/+0
| | | | (Ok, ok, on Windows it's a ConsoleHandler but does basically the same).
* Drop remnants of the DOS port.Adam Borowski2011-04-081-36/+6
| | | | | | | | | It's broken since 0.5 (where it "just" had a long-unfixed bug with infinite mana), in 0.6 doesn't even compile and in 0.8 took a number of other tedious to port blows. If no one stepped up to revive it, no one probably ever will. DOS is an ancient coprolith, too, and can't really handle the bloat Crawl has. As a side effect, I made *h and /h work on Windows.
* Fix nowrap_eol_cprintf() overshooting in some cases.Adam Borowski2011-04-041-36/+4
| | | | | It's used only in four places, none of them can be actually triggered currently, but might be in the future.
* Fix several word wrappers, merge them into one.Adam Borowski2011-04-021-25/+6
|
* Fix an old buffer overflow.Adam Borowski2011-04-011-1/+1
|
* Merge branch 'unicode'.Adam Borowski2011-04-011-72/+127
|\ | | | | | | | | There are some issues left, like incorrect wrapping in some cases, but we can fix them later.
| * Axe some debugging code.Adam Borowski2011-03-311-19/+0
| | | | | | | | I'm getting tired of rebasing it away from the history.
| * Unicode support in the line_reader, including CJK and combining.Adam Borowski2011-03-311-63/+137
| | | | | | | | | | | | | | | | | | There are sadly some redraw errors when there's line-wrapping involved, especially if you're editing something not at the end of the buffer, but these appear to be not regressions so I left them for now. I am tempted to just brute-force it by redrawing the whole thing and let ncurses optimize it...
| * Basic cursesw input.Adam Borowski2011-03-311-9/+9
| | | | | | | | No direction keys yet...
* | Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
|/ | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Make some functions static, remove unused among those.Adam Borowski2010-10-271-2/+2
|
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-9/+9
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* View coordinates now relative to viewport, not screen.Robert Vollmert2010-09-051-1/+1
| | | | | | | | | | Also name some bounds checking functions less terribly and move to viewgeom, and add new screen<->grid transforms. Fixes issue #2215 (Fedhas targeting with messages_at_top) and is likely to reduce the chance of future breakage with messages_at_top. Also likely to introduce bugs.
* Make ^G equivalent to Escape in all prompts for the Emacs users out there ↵Darshan Shaligram2010-06-131-2/+1
| | | | (yours truly included).
* Get rid of get_input_line.Robert Vollmert2010-05-151-51/+0
| | | | It's not used anymore, and was buggy on windows console.
* Replace c_getch by getch_ck.Robert Vollmert2010-03-281-12/+1
| | | | | | It was always just getch_ck for our current platforms, except for Windows tiles, which seems like an accident more than anything else.
* Replace all strcpy(static_buffer, variable_data) by strlcpy().Adam Borowski2010-03-201-1/+1
| | | | | At the first glance, only one place seems to use actual unchecked user input, but it's better to be safe than sorry.
* Also set MOUSE_MORE_MODE in cancelable_get_line().Johanna Ploog2010-03-051-0/+1
| | | | | | Again, allowing mouseover descriptions to hide the message area while the game is waiting for input in response to a prompt is confusing and a bad interface.
* Nuke a whole lot of old-style casts, and remove some casts completelyHaran Pilpel2010-01-291-3/+3
| | | | | (you don't need to cast an X* to a void* and you don't need to cast arguments to math.h functions such as sqrt.)
* Change cursorxy to always use screen coordinates.Robert Vollmert2010-01-221-2/+2
| | | | | It was using GOTO_DNGN, which could mess up with messages_at_top or when drawing outside the view window.
* Allow line_reader to scroll its region.Robert Vollmert2010-01-211-0/+15
| | | | | | | | | | | | | | | | | | This fixes issue #484. There's still the problem that it will wrap to screen column zero -- a region-aware version of wrapcprintf would be required to fix this. It's currently limited to the message window, since that's the only region that implements scrolling. line_reader itself takes care of printing its scrolled buffer. This is something of a hack. It might eventually be desirable to have some more window-like regions that all store their content and allow scrolling; there would be some overlap with tiles' TextRegion etc. But that would mean redoing curses windows on top of cprintf/cgotoxy...
* Fix buffer not being terminated correctly in line_reader.Robert Vollmert2010-01-211-4/+2
|
* Make line_reader aware of its region.Robert Vollmert2010-01-201-14/+8
| | | | | | | | | | | This should provide more clarity around the wherex()/wherey()/ get_cursor_region() confusion, which has to do with wherex()/wherey() being screen relative in console mode and region relative in tiles. It's still a hack, thought, and untested in tiles at the moment. The main reason behind this is to eventually allow the line_reader to scroll the region it's working in (see #484).