3 * Miscellaneous routines that have not yet found a proper parent module. Having
4 * LOTS of stuff in here is a sure sign that better modularization is in order.
10 #include <stdint.h> /* for uint16_t */
14 /* Parses command line argument -i into client configuration. */
15 extern void obey_argv(int argc, char * argv[]);
17 /* Save / load (init) / unload (free/dissolve) / reload interface configuration
18 * data, world.wins.pad (initialized before opening any windows to the height of
19 * the terminal screen and a width of 1) and window chains.
21 * Note that reload_interface_conf() also calls map_center().
23 extern void save_interface_conf();
24 extern void load_interface_conf();
25 extern void unload_interface_conf();
26 extern void reload_interface_conf();
28 /* The SIGWINCH handler winch_called() merely sets world.winch to 1. This info
29 * is used by io_loop() to call reset_windows(), which adapts the currently
30 * loaded interface configuration to the new screen size.
32 extern void winch_called();
33 extern void reset_windows();
35 /* Return offset into center map of "mapsize" on "position" in "framesize". */
36 extern uint16_t center_offset(uint16_t position,
37 uint16_t mapsize, uint16_t framesize);
39 /* Move world.inventory_sel up ("dir"="u") or down (else) as far as possible. */
40 extern void nav_inventory(char dir);