Commit Graph

  • 93eb0f10ee Dumbing it down for Borland and LCC (sigh). Also, extended the names of Thai and Russian; added some consts and statics. William McBrine 2006-06-20 21:20:11 +00:00
  • 787f91e44b Pass UTF8_STRING selections in Unicode mode. To do: receive them; support ISO 2022?; and, UTF-8 is being sent even when the target is XA_STRING. William McBrine 2006-06-20 15:17:34 +00:00
  • 5883bf1121 Added setlocale() call, so that addwstr() will work with ncurses (it makes no difference for PDCurses). William McBrine 2006-06-19 23:53:58 +00:00
  • 1dcf484542 addwstr() test -- print "Spanish", "Russian", "Greek", and "Thai", in their own respective languages. (All work in X, with the default font; Lucida Console in Windows fails on Thai.) Names taken from Wikipedia. Also replaced printw() with addstr() where possible. William McBrine 2006-06-19 23:17:35 +00:00
  • 6fe4f3bcf9 Check for null string pointers in waddn[w]str, not just null window pointers. William McBrine 2006-06-19 21:51:36 +00:00
  • b4d1f96231 SetConsoleMode(ENABLE_WINDOW_INPUT) is not useful, and appears to be the source of a four-year-old bug report by Phil Smith. William McBrine 2006-06-19 19:09:06 +00:00
  • 2fdfa68655 Added the *chgat() family. This completes the list of attr_t functions, except for those that also involve cchar_t. To Do: Test; document. William McBrine 2006-06-19 04:40:06 +00:00
  • d344b88e7c Added slk_attr_*. William McBrine 2006-06-19 03:36:38 +00:00
  • b7e5a15e81 Added term_attrs(), and stubs for vid_attr() and vid_puts(). William McBrine 2006-06-19 03:21:47 +00:00
  • 89ae3b98a4 Added WA_* attributes, and attr_* and wattr_* function families. William McBrine 2006-06-19 02:43:36 +00:00
  • 27319c0a5b Added ins_wstr() family. William McBrine 2006-06-18 23:22:43 +00:00
  • 832840126b Added inwstr() family. William McBrine 2006-06-18 21:52:02 +00:00
  • 986c7a296c Added useless erasewchar() and killwchar(), per the standard; updated build number. William McBrine 2006-06-18 21:13:38 +00:00
  • 2e3f0096bd Added addwstr() family; spaces -> tabs. William McBrine 2006-06-18 19:15:55 +00:00
  • d0fac7f946 Implemented addwstr() family (depends on define UNICODE). William McBrine 2006-06-18 18:51:46 +00:00
  • 0b58f52960 Added commented out "-DUNICODE" ("/DUNICODE" for Watcom) to Win32 makefiles. Uncomment it to build for Unicode mode. William McBrine 2006-06-18 13:40:56 +00:00
  • 912fc693b5 Added "--enable-unicode" option to configure. This adds -DUNICODE to SYS_DEFS (which also covers the demos). Users must still define UNICODE before including curses.h. William McBrine 2006-06-18 13:23:12 +00:00
  • 3e6a3cc26c Use a different default font when UNICODE is defined. This is one of the standard fonts with recent X releases. William McBrine 2006-06-17 02:16:40 +00:00
  • d92c9e23ba 0x2594 is not widely supported, and is too wide anyway. :-P For now, use 0x2500 for ACS_S1 instead (same as S3 and S7). William McBrine 2006-06-15 17:50:39 +00:00
  • 702354920b In Win32, PDC_putc() and PDC_putctty() were identical; changed PDC_putc() to work in either ASCII or Unicode mode; updated build number. William McBrine 2006-06-15 17:29:10 +00:00
  • 8aaaf9c29f Minimal Unicode output support for X11, as in Win32. You also need to specify an appropriate (iso10646-1) font. To Do: Input? along with the previously mentioned items. William McBrine 2006-06-15 13:03:06 +00:00
  • 3ebf94ca67 Minimal implementation of Unicode support -- compile with -DUNICODE. Only for Win32, for now. Mostly this consists of new ACS_* definitions (which could use refinement). To Do: Other platforms; standard wide-char functions; and update PDC_putc() and PDC_putctty() -- then again, those two aren't really used. Drop them instead? William McBrine 2006-06-15 12:33:27 +00:00
  • 293108ca73 Warning fix for EMX. William McBrine 2006-06-11 19:22:48 +00:00
  • b5f8ff3f0c Simplified GNU makefiles. William McBrine 2006-06-11 19:22:17 +00:00
  • 5a804f2f98 Changed "install" to a double-colon rule, to get around a conflict with INSTALL on non-case-sensitive filesystems, such as Mac OS X's HFS+. Reported (indirectly) by Douglas Godfrey. To Do: Is this the best solution? William McBrine 2006-06-10 11:12:11 +00:00
  • 11211d73e0 Reformatted comments; removed useless comments and declarations. William McBrine 2006-06-02 02:52:54 +00:00
  • 5d6f636b72 Reformatted comments to match everything else; removed some useless comments. William McBrine 2006-06-02 02:39:34 +00:00
  • 7e1f5092d3 Use RCSID here as well. William McBrine 2006-06-02 02:21:39 +00:00
  • 3bbbc1ceb2 Overly verbose return. William McBrine 2006-05-03 17:35:39 +00:00
  • 66a6730d1e Overly verbose return; formatting. William McBrine 2006-05-03 17:30:46 +00:00
  • cfa9228b2e In fact, let's chuck the *innstr() macros, too. William McBrine 2006-05-02 17:21:02 +00:00
  • bb3c44e218 *innstr() are supposed to return the number of characters read, not just OK or ERR. (However, *instr() _are_ supposed to return just OK or ERR.) Reported by Mike Aubury. I chucked the corresponding macros for *instr() rather than trying to render the functions into one line. William McBrine 2006-05-02 17:17:27 +00:00
  • d6d325415c Obsolete comments, formatting. William McBrine 2006-04-26 23:55:38 +00:00
  • 68b99de8cc Allow tuidemo to use the last line. William McBrine 2006-04-26 23:50:32 +00:00
  • d42b4e5853 Simplified dosgetmembyte() etc. defines; formatting; obsolete comment. William McBrine 2006-04-25 22:43:12 +00:00
  • 1e94b5bebd Consolidated _FAR_POINTER() definitions (MX386 == __WATCOMC__ && __FLAT__). William McBrine 2006-04-25 21:09:25 +00:00
  • 8a64a1d6ab MK_FP() is not used anywhere in the code compiled with NDP (MX386). To Do: Drop support for NDP? William McBrine 2006-04-25 21:03:31 +00:00
  • 6245d85b91 THE doesn't like the second enum, either. :-P William McBrine 2006-04-24 21:07:43 +00:00
  • 8ae59e7c56 THE strikes again. :-( It seems some programs ifdef on the key names, so the defines are required. So much for my lovely enum... maybe someday it can return. William McBrine 2006-04-24 20:59:11 +00:00
  • 83440c2941 More obsolete comments. William McBrine 2006-04-24 03:14:45 +00:00
  • 62d6c19bac Outdated comments -- maybe of historical interest, but probably not. William McBrine 2006-04-24 03:10:02 +00:00
  • 3dc7e7aaed Redundant code. William McBrine 2006-04-24 02:59:55 +00:00
  • f64b9df7da Formatting (spaces to tabs). William McBrine 2006-04-23 20:19:11 +00:00
  • 5957e44ab5 Combined some redundant code, shortened main(). William McBrine 2006-04-23 06:27:10 +00:00
  • d6b040c3ad Typo. William McBrine 2006-04-23 03:34:49 +00:00
  • 4b504e903b Formatting. William McBrine 2006-04-23 03:31:30 +00:00
  • febec06f19 Simplified. William McBrine 2006-04-23 03:30:36 +00:00
  • dbda2bc6c1 Simplified, commented. To Do: Add consts? William McBrine 2006-04-23 02:56:38 +00:00
  • d7357e66ea Useless defines, defines -> enum. William McBrine 2006-04-23 01:59:59 +00:00
  • 114cd9bf6e XCurses.def just repeats some of the examples in x11.man. I don't see a need for it. William McBrine 2006-04-23 01:52:27 +00:00
  • d474efafe5 Removed an "#if NOT_USED" section, and comments about the thread port. William McBrine 2006-04-23 01:48:52 +00:00
  • 03e2f2c2ab More enums. William McBrine 2006-04-23 01:40:05 +00:00
  • 3aed6d8258 Let's use an enum for the key labels, instead of zillions of defines. (Kinda surprising that no other curses seems to do this. Hmm...) Saves space, and lets the whole thing be relocated easily. To Do: Get rid of the gap between KEY_SIC and KEY_SLEFT. (Why was it there?) William McBrine 2006-04-23 01:35:44 +00:00
  • af4f740ed6 Copy _bkgd in resize_window(). Patch found on Frederic L. W. Meunier's web site; not clear if he's the author. William McBrine 2006-04-22 16:54:06 +00:00
  • 8b91b71494 Updated, rebranded. William McBrine 2006-04-15 20:24:59 +00:00
  • af99e3b791 Updated, simplified, rebranded. William McBrine 2006-04-15 20:12:47 +00:00
  • 6f5236f49f XCurses_rawgetch() was never called with a parameter other than 0. William McBrine 2006-04-15 16:55:28 +00:00
  • e0868ec6ab Redundant declarations for PDC_reset_*_mode(). William McBrine 2006-04-15 16:51:46 +00:00
  • 0dea5434b8 Now that XCurses is in the public domain, I'd like to rebrand it a bit, for consistency, and to avoid confusion with the other common usage of "XCurses" (for X/Open Curses). So, I've changed the default icons and title to "PDCurses" instead of "XCurses". (More to come?) William McBrine 2006-04-15 03:12:00 +00:00
  • b9ef6e9645 Moved putwin() and getwin() from util to scr_dump. William McBrine 2006-04-14 15:36:14 +00:00
  • 9575136c08 Moved putwin() and getwin() from util.c to scr_dump.c. William McBrine 2006-04-14 15:34:50 +00:00
  • 835591b0b6 Meaningless line. William McBrine 2006-04-13 21:49:07 +00:00
  • 98cbcbc5bd The symbolic "xcurses.h" is really not needed. William McBrine 2006-04-13 21:46:33 +00:00
  • a72abf47ef "License:" change. William McBrine 2006-04-13 17:30:12 +00:00
  • 5672a52343 It isn't quite the MIT X License, is it? Ah well, close enough. William McBrine 2006-04-13 17:23:04 +00:00
  • d8b7261407 Updated build number for post-2.8. (XCurses copyright status was the first post-2.8 change.) William McBrine 2006-04-13 17:20:56 +00:00
  • 6d2fc86775 Mark Hessling has released XCurses to the public domain. README and boilerplate updated accordingly. William McBrine 2006-04-13 17:19:44 +00:00
  • 764a4411bc Updated for 2.8. William McBrine 2006-04-04 21:19:16 +00:00
  • 35aa5e429f Match the new file structure (no more readme.*; add HISTORY; add xcurses/*). William McBrine 2006-04-04 21:18:50 +00:00
  • 4c17b41bda Simplified the lrf and makefiles... no more +-, so there are fewer warnings; plus, there are now multiple object files per line. (The +- thing was presumably an attempt at build-time optimization, potentially quicker than regathering all the object files, though not by much. Nowadays, I think that killing the warnings is of more value.) William McBrine 2006-04-04 21:17:33 +00:00
  • 8754eee5c5 Not used. William McBrine 2006-03-30 05:38:01 +00:00
  • 03f3b357b8 Since nothing is currently done with A_DIM, alias it to A_NORMAL (aka 0), and stop it wasting a bit / conflicting with A_LEFTLINE. William McBrine 2006-03-30 03:28:18 +00:00
  • b9e4931e7c Only print modifiers for actual button events, and not scroll wheeling. William McBrine 2006-03-30 02:52:51 +00:00
  • e68aae0672 Don't need struct tm test. William McBrine 2006-03-30 02:38:59 +00:00
  • 210f1fb3d2 The event type for the scroll wheel in X is not necessarily ButtonPress, and in fact, seems to be dependent on the last non-scrollwheel button event. So, I've moved the test out of the event switch. I feel a little weird about it, but so far, it works. William McBrine 2006-03-30 02:12:56 +00:00
  • b1836a988a A better description for PDC_breakout(). William McBrine 2006-03-29 21:39:42 +00:00
  • 0674ded1ba Warning supression. William McBrine 2006-03-29 20:37:04 +00:00
  • 8453b89ce2 New RCSID macro for RCS id strings; also added RCS id comments to the remaining .h files. Note that the RCS ids are now static per module and all have the same name. William McBrine 2006-03-29 20:06:41 +00:00
  • d878e6dc69 RCS id strings to comments only for demos. William McBrine 2006-03-29 19:50:14 +00:00
  • cae80e810b Might as well remove the "Structure" section, at least for now. William McBrine 2006-03-29 00:44:46 +00:00
  • bf54c5fa37 bogus_adapter -> DOS only. William McBrine 2006-03-29 00:34:44 +00:00
  • 5858457733 NCurses copyright notices for worm and rain. :-P William McBrine 2006-03-29 00:21:50 +00:00
  • 29a10e1af6 Borland and Watcom don't need bios.h (or i86.h) if they have dos.h; and dos.h can be moved to curspriv.h. The other DOS compilers probably don't need bios.h either, but I don't have them to test. Also, I've only tested with Open Watcom 1.3, so I can't be certain that older Watcoms don't need one or both of the other headers. But hey, it's free to upgrade. William McBrine 2006-03-28 19:02:39 +00:00
  • e79606be8f A small simplification. William McBrine 2006-03-28 13:45:06 +00:00
  • ba689ea9f6 Formatting. William McBrine 2006-03-27 23:16:36 +00:00
  • 5bdeaa0df8 Formatting. William McBrine 2006-03-27 23:00:16 +00:00
  • 43a564ca97 HAVE_VSSCANF is not defined by default, so there's no need to explicitly undef it. William McBrine 2006-03-27 22:44:53 +00:00
  • a0b9e74f9c Formatting. William McBrine 2006-03-27 20:52:01 +00:00
  • d9b037b88f Leftovers from unneeded macros (except I'm not removing MSC quite yet). William McBrine 2006-03-27 20:45:55 +00:00
  • c04342a8cb More unneeded macros. William McBrine 2006-03-27 20:35:30 +00:00
  • ccd8724a38 Removed some of the redundant compiler definitions (e.g., TC for __TURBOC__). Also removed the comment section that talked about giving these values to allow the use of if instead of ifdef, while every single test for them in the code actually used ifdef. William McBrine 2006-03-27 20:11:17 +00:00
  • ce8675e961 Don't need memory.h. William McBrine 2006-03-27 19:31:31 +00:00
  • b938525b75 Removed trivial implementation of PDC_scrn_modes_equal() for DOS. William McBrine 2006-03-27 19:04:40 +00:00
  • 645c5dbef0 Strip the demo exes. To Do: Other compilers? William McBrine 2006-03-27 18:59:03 +00:00
  • 30cfb8f9b5 Removed PDC_print(). William McBrine 2006-03-27 17:10:15 +00:00
  • 6b60397147 Removed meaningless implementation of PDC_scrn_modes_equal() for X11. William McBrine 2006-03-27 16:26:43 +00:00
  • 1e1caaba2a scrnmode only needed now in DOS and non-EMX OS/2. William McBrine 2006-03-27 16:25:29 +00:00
  • 64b9f06c72 Removed meaningless implementations of PDC_get_scrn_mode(), PDC_set_scrn_mode(), and PDC_scrn_modes_equal() for Win32. William McBrine 2006-03-27 16:24:16 +00:00
  • de3982670c Changed PDC_transform_line() to void return. (With the removal of typeahead checking, it always returned FALSE.) William McBrine 2006-03-27 14:33:00 +00:00
  • aaaaa7d365 Simplified doupdate(). William McBrine 2006-03-27 14:24:42 +00:00