Commit Graph

  • cfcc04af55 Off-by-one error in copywin() -- the maximum coordinates for the destination window should be inclusive. Reported by Tiago Dionizio. William McBrine 2007-04-28 23:41:01 +00:00
  • 2d336165af I don't know why a loop of addch() was used here instead of addstr() or printw(), but it's unneeded, and doesn't work with multibyte strings. William McBrine 2007-04-28 01:13:38 +00:00
  • 61338b552d Avoid potential sign problems. William McBrine 2007-04-28 01:09:54 +00:00
  • 4779c98e76 Multibyte clipboard functions for Win32 (allows use of FORCE_UTF8). To Do: X11; wide-character clipboard funcs? William McBrine 2007-04-28 01:08:40 +00:00
  • 6a345f2ef8 Use multibyte character strings in Win32's PDC_set_title(), allowing use with PDC_FORCE_UTF8. To Do: PDC_set_wtitle()? William McBrine 2007-04-27 07:30:08 +00:00
  • d565f6bfed Ensure string termination in PDC_mbstowcs() and PDC_wcstombs(). William McBrine 2007-04-27 07:27:05 +00:00
  • edbac8194c Since UTF-8 locale support is broken in Windows, here's a way to use it anyway: define PDC_FORCE_UTF8 when compiling. (Of course it also works for X11.) To Do: Set it up for the makefiles. William McBrine 2007-04-23 23:55:16 +00:00
  • e1534adfa1 Document the new location. William McBrine 2007-04-23 21:36:56 +00:00
  • a93e0428df Moved has_key() into the keyname module; documented it; tagged this module correctly. Note the large penalty for linking this module. William McBrine 2007-04-23 21:35:49 +00:00
  • 49d4a3d7ba Spacing. William McBrine 2007-04-23 20:33:42 +00:00
  • 13536e693f There appears to be no need for RIPPEDOFFLINE to be available in curses.h. William McBrine 2007-04-23 00:29:14 +00:00
  • 4234b7f898 Per X/Open, we must start in echo mode. William McBrine 2007-04-22 23:01:28 +00:00
  • 46037061b0 Bounds-checking for the trailing-spaces strip (oops). I'm going back and forth on the whole thing... it's clear to me that the real intent of the standard is just that the labels not be returned in their padded or justified form; spaces passed in by the user need not be covered, and perhaps should not be. William McBrine 2007-04-21 01:52:53 +00:00
  • 229d5e4292 Per X/Open, strip leading and trailing spaces from slk labels. (X/Open specifies this in terms of the return value from slk_label(), but it's implemented here via slk_[w]set().) Reported by Alexey Miheev (about ncurses, which didn't strip trailing spaces -- but PDCurses didn't strip either). William McBrine 2007-04-19 18:03:16 +00:00
  • bf3ea3ea14 enums make more sense here. William McBrine 2007-04-18 02:26:19 +00:00
  • 0f2bec7919 XtConvertAndStore() was added in R4, so the check was incorrect; and other, unchecked code already assumes R4 or greater, so we may as well discard the alternative here. William McBrine 2007-04-16 06:03:05 +00:00
  • 54485c8782 Upgraded version number; also, changed name in pdcurses.rc to "PDCURSES.DLL"; use newer autoconf. William McBrine 2007-04-14 13:26:41 +00:00
  • 63b690d8c8 .def entries for the new functions. William McBrine 2007-04-13 20:58:05 +00:00
  • 9804ccb8c5 Real functions for the "quasi-standard aliases" -- crmode(), nocrmode(), draino(), resetterm(), fixterm() and saveterm(). William McBrine 2007-04-13 08:24:20 +00:00
  • 0cbcc4d3c9 Added the global string "ttytype", per other curses implementations, for compatibility with old BSD curses. Also eliminated the "MONO, COLOR" and size info from longname(), partly because it's now initialized only at startup (ignoring resizing), and partly because it was useless anyway. William McBrine 2007-04-13 04:28:52 +00:00
  • cf18eb527a Updated Watcom. William McBrine 2007-04-12 17:39:52 +00:00
  • 2cd32252b1 Argh -- "Don't return selection start as a press event." -- that worked, alright, but it also disabled selections altogether! (Well, the selecting worked, but the pasting elsewhere didn't.) To Do: Fix this properly. William McBrine 2007-04-11 17:43:55 +00:00
  • eae44480c4 PDC_setclipboard() was locking up in X11. Reported by M.H. This is not a complete fix -- it should really work like the other narrow-character functions, with multibyte strings. William McBrine 2007-04-07 22:02:36 +00:00
  • 663b624c65 XC_say(), not XCsay(). Prevented compilation with PDCDEBUG defined. Report by M.H. William McBrine 2007-04-07 19:07:02 +00:00
  • 59b94eb7d1 The scroll-up-on-shell problem really needs to be fixed on the PDCurses end, and this is that fix. To Do: This isn't symmetrical; also, the regular use of resize_term() needs to be fixed for 9x. William McBrine 2007-04-05 08:06:15 +00:00
  • 6f1e8bc25e Crap... I fixed these typos, but never committed the fixed version. Second post-3.0 change, BTW. William McBrine 2007-04-05 08:03:38 +00:00
  • 03f20da656 The #endif for __PDCURSES__ needs to come _after_ the closing of the extern "C". This has been broken since June 2005, but I only hear about it now. <sigh> Fortunately (?), it only shows up if the file is included multiple times, and then only in C++. William McBrine 2007-04-04 17:39:01 +00:00
  • 3d0ff428d6 Updated build number. D'oh! William McBrine 2007-04-01 06:20:53 +00:00
  • c2267a942f Barring further delays. William McBrine 2007-04-01 04:27:22 +00:00
  • 76bf354615 Typo. William McBrine 2007-04-01 03:53:05 +00:00
  • 83fdaffb54 More changes... maybe all? William McBrine 2007-04-01 03:38:19 +00:00
  • ff07a4afda More changes. William McBrine 2007-03-30 20:24:58 +00:00
  • 22abebff68 Unused function. William McBrine 2007-03-29 07:09:17 +00:00
  • e52e3b5de6 Updated build number. William McBrine 2007-03-28 04:13:39 +00:00
  • 847c641b7e Documentation updates -- much more to do. William McBrine 2007-03-28 04:12:57 +00:00
  • d4bde28b33 Oops... there are 164 elements in the shortened key_table[], not 128. Anonymous bug report on SourceForge. William McBrine 2007-03-23 01:53:21 +00:00
  • 3d8eea8473 Documentation: Removed the distinction between "X/Open Description" and "PDCurses Description"; various cleanup. The new policy is simply to describe PDCurses' behavior; if anyone wants the canonical descriptions (which these weren't, anyway), they can refer to X/Open directly. William McBrine 2007-03-16 06:33:45 +00:00
  • ff7e5dba2b More implementation details. William McBrine 2007-03-12 06:43:18 +00:00
  • 1097c8c646 Unneeded forward declarations. William McBrine 2007-03-09 20:53:25 +00:00
  • 3d54b06eaa Made slk_set() and slk_label() support multibyte strings; added logical extension, slk_wlabel(). William McBrine 2007-01-18 05:33:23 +00:00
  • c040749e67 For the string-handling functions -- the addstr(), getstr(), insstr() and instr() families -- X/Open says to support multibyte characters. This also means that the locale has meaning, that the native code page in Windows is still used with narrow functions, and that we actually save some code overall, especially in wgetnstr(). Now it works the same as ncurses... more or less. UTF-8 is still no good under Windows, though. Inspired by Thomas Dickey. William McBrine 2007-01-18 01:42:31 +00:00
  • a1a6086e82 Comment -- setlocale() will be needed soon after all (for addstr(), but still not for addwstr()). William McBrine 2007-01-17 20:49:08 +00:00
  • 7ce6cbb57f Allow building with the "WIDE=Y" parameter for all Win32 compilers, except LCC. William McBrine 2007-01-12 00:53:28 +00:00
  • 6ef1b42462 No default DLL for LCC. William McBrine 2007-01-12 00:43:02 +00:00
  • 21e93107ab "ip" is no longer available in this function -- error if PDCDEBUG. William McBrine 2007-01-12 00:38:26 +00:00
  • cc4a686eac ...but I think I prefer -O1 even more. William McBrine 2007-01-10 17:28:00 +00:00
  • a1ab0c3fcd -O2 is way better than -Ox. William McBrine 2007-01-10 16:55:33 +00:00
  • be18076177 This DllMain() stub is unneeded. William McBrine 2007-01-10 15:57:35 +00:00
  • bc98c7b3b3 PDCurses Implementor's Guide. This is nowhere near finished, but I think I should check it in for safekeeping. William McBrine 2007-01-10 15:41:49 +00:00
  • b0d8d63509 New description for Latin-1 compose key table. William McBrine 2007-01-10 15:38:04 +00:00
  • 97aee644a1 Made panel man page conform to the common style; comments. To Do: Check the claimed portability. William McBrine 2007-01-09 15:04:20 +00:00
  • 1e84a49ebf INITINSTANCE, which caused a warning with previous versions of MSVC, now causes an error. I don't know if removing it affects AIX... don't really care, either. William McBrine 2007-01-08 19:26:23 +00:00
  • 6b38c9e0b7 "__override" is apparently a reserved word in MSVC 8. May as well get rid of the other double underscores while we're here. William McBrine 2007-01-08 19:20:36 +00:00
  • f1f13aa1f8 Warning supression for Visual C++ Express... it labels a bunch of ANSI C functions as "deprecated". William McBrine 2007-01-08 13:53:18 +00:00
  • c49304d388 More like this, I think. I'm still not completely happy with it, especially since it only works with OS/2 and DJGPP. But it makes more sense than how it worked before. William McBrine 2007-01-08 02:52:33 +00:00
  • 3ba375f788 Excess spaces, causing an error with DJGPP. William McBrine 2007-01-07 23:15:42 +00:00
  • 94005add03 More locations for the deprec module. William McBrine 2007-01-07 22:21:34 +00:00
  • 5888c58bcf Added a module just for deprecated functions, so programs [mis]using them will still link/work -- currently *_bios_* and *_ctrl_break_*. To Do: Are there other functions that should be here? William McBrine 2007-01-07 22:20:07 +00:00
  • 24a1d3ff51 In fact, let's not start in binary mode. William McBrine 2007-01-07 21:43:14 +00:00
  • b6e7cca79b The "bios" part of the names PDC_check_bios_key() and PDC_get_bios_key() makes sense only in DOS. I've wanted to change it for a while, but hesitated because it was used in some apps... but it shouldn't be. William McBrine 2007-01-07 21:31:17 +00:00
  • 895c552dde Moved PDCTHUNK definition to pdcos2.h. Preparatory to trying to make a proper PDC_set_title(). William McBrine 2007-01-06 18:01:04 +00:00
  • c5d1047c67 Removed PDC_set_ctrl_break() and PDC_get_ctrl_break(). Unimplemented on Win32 and X11, largely useless elsewhere since the use of binary input mode... except for one platform: DJGPP. It handles ^C and ^Break itself, unless told not to. And it turns out that I broke that in the post-2.8 restructing of wgetch(). So, now it's handled for DJGPP in PDC_set_keyboard_binary(), which is now called from PDC_scr_open() (as with OS/2). To Do: I'm still debating whether or not to reintroduce PDC_set_ctrl_break(), as a wrapper around PDC_set_keyboard_binary(), for the benefit of some applications that misguidedly use it. William McBrine 2007-01-05 12:01:23 +00:00
  • 4d8ea88a53 Back to the generic PDC_napms() for DOS -- the uclock() thing doesn't work reliably. William McBrine 2007-01-04 15:27:38 +00:00
  • 97139fbd53 Correct classification for PDC_init_atrtab(). William McBrine 2007-01-03 15:32:05 +00:00
  • cf72144354 Minor rearrangement of function prototype order. William McBrine 2007-01-03 14:12:50 +00:00
  • c3971ee4a1 A new year. William McBrine 2007-01-03 14:11:32 +00:00
  • 7bebd7e719 PDC_get_cursor_pos() is no longer needed, since the original values are never referred to. William McBrine 2007-01-03 14:10:47 +00:00
  • 5e7b540cfa Complete list of functions in intro.man. Much more to do here. William McBrine 2007-01-03 01:24:22 +00:00
  • dd605939aa Removed manual sections for internal functions. I'll replace these with external documentation. The goal is to keep user and implementor docs separate, and to reduce duplication. William McBrine 2007-01-02 15:57:57 +00:00
  • 4e2eb85749 Useless/incorrect comments. William McBrine 2007-01-02 14:19:43 +00:00
  • 3086a93e17 Clipboard function descriptions to same format as other "man page" sections. William McBrine 2007-01-02 13:48:31 +00:00
  • 72b61c1b0e Better check for rollover. William McBrine 2007-01-01 21:04:27 +00:00
  • 314585a105 A slightly better PDC_napms() for DOS. DJGPP should be fine-grained, but I haven't been able to see the difference yet. I'm not really happy with this routine, but I feel like I could spend another month on it alone. William McBrine 2007-01-01 20:40:24 +00:00
  • 529beaa77c My first attempt at a unified PDC_napms() for DOS. Not ideal yet, but it doesn't throttle the CPU anymore with any compiler. Also, the stack registers and flags apparently need to be cleared in PDC_dpmi_int() for stability -- I dunno why (I copied this from DJGPP), but without it, worm was locking up pretty regularly. William McBrine 2006-12-29 21:16:32 +00:00
  • 66dbeafafd Moved functions from pdcgo32.c into util.c. William McBrine 2006-12-29 18:36:35 +00:00
  • abeaa2b011 Moved PDC_dpmi_int() to pdcutil.c. William McBrine 2006-12-29 18:19:37 +00:00
  • 8cc3a5ac11 Use the PDC_ and pdc_ prefixes for the DPMI function and struct. William McBrine 2006-12-29 17:41:53 +00:00
  • eee2182f7b Use DPMI simulate real mode interrupt for Watcom 32-bit DOS, as with DJGPP. This allows checking the flags register, which allows use of the BIOS call in PDC_check_bios_key() instead of kbhit(). If it's anything like DJGPP, it may also be more efficient in general. Stolen and modified from Angband, which stole it from DJGPP... hopefully this counts as fair use. William McBrine 2006-12-29 17:08:21 +00:00
  • 748979848d Complete export list for EMX. To Do: Test. William McBrine 2006-12-29 16:34:33 +00:00
  • 056c5acba2 Complete exports for LCC. Also, for now at least, it defaults to building the DLL. William McBrine 2006-12-29 11:53:20 +00:00
  • 02d631528e Def file for wide-character DLL. William McBrine 2006-12-29 11:22:34 +00:00
  • 9791cb79e4 Complete list of DLL exports for MSVC; changed DLLBUILD command-line option to DLL, added WIDE option. William McBrine 2006-12-29 11:21:32 +00:00
  • c56c87b597 Pass through attribute when insch()ing control characters -- same change as for addch() earlier. William McBrine 2006-12-29 08:50:51 +00:00
  • 74a0947183 Don't try to archive TODO. William McBrine 2006-12-28 11:18:44 +00:00
  • a550276a82 These items are essentially done, though they might yet be done better. William McBrine 2006-12-28 10:36:28 +00:00
  • d55eff9600 Documentation for the rest of the ncurses mouse interface. William McBrine 2006-12-28 10:35:05 +00:00
  • 1be89cc702 Added PDC_CLICK_PERIOD to curspriv.h, instead of hardwiring the delay; made it 150 instead of 100. William McBrine 2006-12-28 09:51:31 +00:00
  • 1641be924a Ignore move events from ncurses interface; extra filtering for ncurses interface (mainly, ignore modifiers if not set in SP->_trap_mbe). William McBrine 2006-12-28 09:39:55 +00:00
  • ca90743a76 Ignore button modifiers when filtering mouse events; redundant code. William McBrine 2006-12-28 09:37:35 +00:00
  • 96ec1c735b x11 was never returning BUTTON_MOVED, though it did set PDC_MOUSE_MOVED. William McBrine 2006-12-28 09:35:32 +00:00
  • b758e07c5c The rest of the ncurses mouse interface. Could use some tweaking, but basically it works. Define NCURSES_MOUSE_VERSION (preferably to 2 or more) when compiling your program (not PDCurses) to use it. Otherwise, getmouse() is nc_getmouse(), and the BUTTON_ALT etc. labels are different. Apart from that, both interfaces are active all the time, and you can mix and match, although I don't recommend it. William McBrine 2006-12-28 01:02:03 +00:00
  • 4f2b57f3e7 Draw ncurses_tests from 5.6 instead of 5.5. William McBrine 2006-12-27 20:15:35 +00:00
  • cd992297e4 Don't return selection start as a press event. (Shift-click on button 1 is still returned.) William McBrine 2006-12-25 18:28:16 +00:00
  • d1add9c532 Changed mouse handling in X11: Simpler translation table, with XCursesPasteSelection() called from XCursesButton() instead of the translation table; require shift with button 1 or 2 for select or paste when mouse events are being reported (as with ncurses), allowing passthrough of simple button 2 events. This fixes the previously unreliable button 2 behavior. William McBrine 2006-12-25 17:43:04 +00:00
  • e50b8b3051 pdcdebug -> debug; made debug man page match the style of the others in the pdcurses dir; documented traceon() and traceoff(). William McBrine 2006-12-25 14:45:51 +00:00
  • 65754acd63 Spacing -- made man page header consistent. William McBrine 2006-12-25 14:27:13 +00:00
  • f6be1200cd Make PDC_debug() always available. William McBrine 2006-12-25 14:12:18 +00:00
  • 4f4d9bc732 Comments. William McBrine 2006-12-25 14:04:52 +00:00
  • 0d22221de7 wmouse_trafo() and mouse_trafo(). William McBrine 2006-12-24 23:31:37 +00:00
  • 2442b32c6b Minor tweaks. William McBrine 2006-12-24 21:08:06 +00:00