Commit Graph

  • 2b8f02fcc6 Synchronize the gcc makefiles; make sure the demos are stripped; remove redundant strip commands. William McBrine 2006-08-08 20:46:49 +00:00
  • 7d310dd67c I think we can do without the .rsp file now. William McBrine 2006-08-08 20:22:06 +00:00
  • 1c9e073ff1 Formatting. William McBrine 2006-08-08 19:50:40 +00:00
  • 20deb6c212 More makefile simplification. William McBrine 2006-08-08 19:45:25 +00:00
  • 3aace63004 Commonality for the "dist" target. William McBrine 2006-08-08 17:33:34 +00:00
  • 40e06f4894 Formatting. William McBrine 2006-08-07 01:34:29 +00:00
  • 62ad6931aa Use PDCLIBS rather than LIBRARIES; typo. William McBrine 2006-08-06 18:00:11 +00:00
  • b2cddc0c15 Make 'em .mif all around. (Originally I intended "version" to be sourced from scripts as well as makefiles, but it's only used for makefiles now.) William McBrine 2006-08-06 16:59:46 +00:00
  • 37e68e1cc8 wccinc -> watcom.mif -- more standard, and kind of a tribute to F.E.'s branch of PCCurses. Also combined most demos into an implicit rule. William McBrine 2006-08-06 16:41:03 +00:00
  • 1fd17435be Make PDCurses.man dependent on manext. Suggestion of Tiziano Mueller. William McBrine 2006-08-05 18:51:20 +00:00
  • b905012f4e Even more commonality. William McBrine 2006-08-03 23:22:06 +00:00
  • e54002eb80 More commonality for Watcom. William McBrine 2006-08-03 19:27:47 +00:00
  • b5371e4bef Comments. William McBrine 2006-08-03 18:15:12 +00:00
  • 0226d0b9a7 More commonality for the makefiles. William McBrine 2006-08-03 18:03:13 +00:00
  • 6c0c2b25a1 Common elements for Watcom makefiles. William McBrine 2006-08-03 17:13:37 +00:00
  • 81e58882f2 More makefile simplification -- moved common LIBOBJS etc. declarations to libobjs file. William McBrine 2006-08-03 16:26:38 +00:00
  • 2b0aa7ded1 Simplified makefiles; moved pdcdebug and pdcwin to LIBOBJS. More to do on this. William McBrine 2006-08-03 15:29:06 +00:00
  • 6baee09a57 COLOR_PAIR and PAIR_NUMBER need to be exported, for use with NOMACROS. To Do: OS/2; other functions. William McBrine 2006-08-02 19:13:39 +00:00
  • aa529c16df Need a semicolon here. William McBrine 2006-08-02 18:57:06 +00:00
  • 56cb017e9d Removed the SHELL= line. William McBrine 2006-08-02 07:56:29 +00:00
  • 3ddbeb3067 Oversight. William McBrine 2006-08-02 07:55:42 +00:00
  • 63b139543f Changed makefile targets of "pdcurses.a/lib" and "panel.a/lib" to $(LIBCURSES) and $(LIBPANEL). From a suggested patch posted to the Lynx-dev mailing list by Doug Kaufman. William McBrine 2006-08-02 06:19:23 +00:00
  • 932f0adaff Moved _getch_win_ from initscr.c to getch.c. For now, however, it's not static, because it's also referenced in */pdckbd.c. William McBrine 2006-08-01 03:16:17 +00:00
  • d8d7dde3b3 Took out pdckey.c. I think it makes more sense for these functions to be in getch.c, where most of them can be static. William McBrine 2006-07-31 23:07:41 +00:00
  • 71966b3c36 Yet more static. William McBrine 2006-07-31 22:49:07 +00:00
  • dc7b6db9ab Moved PDC_copy_win() into overlay.c and made it static. William McBrine 2006-07-31 22:28:53 +00:00
  • 76f7000209 Static filling my attic from Channel Z. William McBrine 2006-07-31 22:27:12 +00:00
  • 9bf3b463e6 More functions that don't need to be exported in the DLL. To Do: All the *.def files are incomplete/outdated. William McBrine 2006-07-31 00:29:43 +00:00
  • 82f375b183 Formatting. William McBrine 2006-07-31 00:20:18 +00:00
  • 1d057b5ffb More XC_ prefixes. Ugly, but the namespace is cleaner. Still more to do. William McBrine 2006-07-30 23:57:04 +00:00
  • fafbb6c608 Missed this one in the tabsize patch. William McBrine 2006-07-30 23:08:05 +00:00
  • 00f5d78b09 Add XC_ prefix to functions that are shared between processes. More to do in this regard. William McBrine 2006-07-30 23:03:33 +00:00
  • 36ae8c07c2 Getting nothing but static. William McBrine 2006-07-30 22:36:18 +00:00
  • b50d19ee27 More static. William McBrine 2006-07-30 22:00:25 +00:00
  • 5e0d809e1b There's no need to have the tab size settable per window, and the functions to do it have been missing since version 2.2. I'm tempted to just hardwire it at 8... However, ncurses and Solaris curses define a global for it, "TABSIZE". So, let's do that. William McBrine 2006-07-30 19:18:00 +00:00
  • 3fd75be9ef Minor tweaks. William McBrine 2006-07-30 18:57:23 +00:00
  • 56356e36be Removed checks for window resize events and references to SP->resized from Win32. William McBrine 2006-07-30 15:31:36 +00:00
  • 41e7c1b8cd ...thus obviating the need for the ifndef, though the call to resize_term() in PDC_restore_mode() (not _screen() BTW) remains meaningless in X. William McBrine 2006-07-30 07:15:48 +00:00
  • 9f98c000d2 In X, resize_term() must be called with parameters (0, 0), and only when SP->resized is set, else return ERR. William McBrine 2006-07-30 07:13:07 +00:00
  • 14a4ffef21 A small step backwards -- ifndef XCURSES the resize_term() call in PDC_restore_screen(). William McBrine 2006-07-30 06:52:01 +00:00
  • c0ba08f053 Simplified PDC_slk_calc(). William McBrine 2006-07-30 06:12:45 +00:00
  • 626d5389c4 Even better. William McBrine 2006-07-30 04:23:19 +00:00
  • c91195a025 There was essentially a redundant implementation of pair_content() within init_pair(), so use that instead. William McBrine 2006-07-30 04:15:25 +00:00
  • 5eae3b6128 Rearranged A_* and redefined chtype_attr(). William McBrine 2006-07-30 03:55:46 +00:00
  • 6f631386ba Changed insch() family to use winsch() as core instead of PDC_chins(); after a similar change to addch.c. William McBrine 2006-07-29 23:17:03 +00:00
  • e91e24058b Let's try this again. William McBrine 2006-07-29 22:08:31 +00:00
  • 2bca2b7d7d SP->shell was redundant in function, and was never set to TRUE. William McBrine 2006-07-29 22:01:20 +00:00
  • a40cc473ff malloc/memset -> calloc William McBrine 2006-07-29 06:18:24 +00:00
  • 5544d05257 Various minor reorgs. William McBrine 2006-07-29 06:00:54 +00:00
  • 0caa5ce7e2 Dueling obsolete comments. William McBrine 2006-07-29 04:25:51 +00:00
  • ff6c26ab26 Less silly. William McBrine 2006-07-28 23:58:24 +00:00
  • 1ec64c209a Moved common elements from PDC_transform_line() to doupdate(). This is also, arguably, a more logical organization. William McBrine 2006-07-28 22:06:53 +00:00
  • 600a2e587f The return value of PDC_gotoyx() was not used. William McBrine 2006-07-28 20:53:09 +00:00
  • 6e1936777f Update the cursor position from curs_set() if changing from invisible to visible. William McBrine 2006-07-28 19:56:27 +00:00
  • 6b6646ef5b Cursor settings should come after resize_term() in PDC_restore_mode(); PDC_gotoyx() will suffice, instead of mvcur(). William McBrine 2006-07-28 19:40:39 +00:00
  • f2a6be45cd The cursor position was not updated correctly in BIOS mode. Solution: always move the cursor in doupdate(), as long as it's visible. This also lets me remove the cursor update from X's PDC_transform_line(). To Do: Cursor must be updated in curs_set on an invisible -> visible transition. William McBrine 2006-07-28 19:32:07 +00:00
  • 29bab63d5d The return value of these functions is not used and not meaningful. William McBrine 2006-07-28 19:08:24 +00:00
  • 34c4f8bb76 Excess parens. William McBrine 2006-07-28 18:45:14 +00:00
  • 02ff7a10e8 Redundant tests. William McBrine 2006-07-28 11:05:10 +00:00
  • c89bd8ed53 In BIOS mode, count successive identical bytes, and make only one BIOS call for all of them. This only improves the performance where there are large identical areas, but that comes up a lot, as in screen clearing. The difference is dramatic in testcurs. (I had wanted to use the "string print" call, but apparently that's AT-only.) William McBrine 2006-07-28 09:30:49 +00:00
  • edc3d4c825 PDC_putc() and PDC_putctty() are used only in DOS. I hesitated to remove these for a long time, because, although they weren't used, they _could_ be used as part of a hypothetical implementation of terminfo functions. But, if I ever get around to that, I can always pull them back in then. William McBrine 2006-07-28 09:24:40 +00:00
  • 050396f30b The color parameter to PDC_putctty() should already have been shifted, as with PDC_putc(). William McBrine 2006-07-28 07:49:38 +00:00
  • 0f65ab6862 Comments for flash(). I should probably also note that this is significantly slower than the old version (where the old version was implemented at all), but the slowness only shows up on an extremely show machine, like an XT. William McBrine 2006-07-28 07:28:27 +00:00
  • 3a8057b83d Actually this would be better. William McBrine 2006-07-26 15:17:39 +00:00
  • ddd03b4742 Some systems gave a warning about the isupper() parameter in hotkey(). William McBrine 2006-07-26 15:09:08 +00:00
  • 1e5234dc0e PDC_get_attribute: not used. William McBrine 2006-07-25 01:24:47 +00:00
  • 181cb5fd3a Added the remaining PDC_* functions from curses.h; removed curspriv.h functions. (Only the curses.h functions are public.) To Do: Change the accompanying text. William McBrine 2006-07-25 01:19:23 +00:00
  • 16ea3f2da0 Alphabetical order for the platform list. William McBrine 2006-07-24 22:37:04 +00:00
  • 7ece180819 PDC_fix_cursor() has never been used in any released version of PDCurses. I suppose you could argue that it was _available_, but only as a private function -- the only invocation was commented out. By the same token, the only use of orig_emulation was in that same comment. Even so, I'm sort of reluctant to take this out, because it seems to have at least the potential to do something useful... mainly, perhaps, on EGA cards... but still. William McBrine 2006-07-24 20:46:20 +00:00
  • 6dbd3ccbeb Restoring the original cursor size as curs_set(1) works well, but only when the video mode hasn't been changed. Here's a compromise approach: revert to the old 6/7 cursor if PDC_resize_screen() has been called. I'm still not completely satisfied with this, but I do think it's a lot better than it was. William McBrine 2006-07-24 20:34:19 +00:00
  • 9bd5b171bd Scratch that -- the problem was that there was no check to ensure that the pnoutrefresh() window fit within the screen. I could truncate the window if it exceeded the screen size, but ncurses just returns an ERR in this situation, so for now I'll do that too. William McBrine 2006-07-24 02:10:07 +00:00
  • 802ec31b78 More off-by-one errors in pnoutrefresh(). William McBrine 2006-07-24 01:32:53 +00:00
  • 3dbaf72592 Redundant check. William McBrine 2006-07-24 01:01:56 +00:00
  • 3327a40ee3 Now the value of orig_cursor is used for curs_set(1). No more guessing the size. :-) To Do: Test, in the strangest video modes I can find. William McBrine 2006-07-23 23:42:23 +00:00
  • 073e797e2b SP->cursor was not really used. William McBrine 2006-07-23 22:58:57 +00:00
  • 5376c72cc1 visible_cursor was used only with PDC_cursor_*(). William McBrine 2006-07-23 19:32:48 +00:00
  • 09fc2ae3e7 Removed the long-obsolete PDC_cursor_on(), PDC_cursor_off() and PDC_set_cursor_mode(). Use the standard curs_set() instead. William McBrine 2006-07-23 19:10:32 +00:00
  • 9f2e384fae ...or now it will, anyway. William McBrine 2006-07-23 18:57:14 +00:00
  • 9c0ce700b2 Use the standard curs_set() instead of PDC_cursor_*(), which was never implemented for X. There's some controversy whether leaveok() is really supposed to turn off the cursor... but if it's OK to leave it anywhere, then why not leave it off the screen? Also, with this change, turning off leaveok() will always do curs_set(1), regardless of the previous state of the cursor. William McBrine 2006-07-23 18:56:28 +00:00
  • 3f127f3376 PDC_set_cursor_mode() is not used in Win32. William McBrine 2006-07-23 16:51:14 +00:00
  • 066dc94240 clear()/refresh() _after_ resize_term(). William McBrine 2006-07-23 15:09:18 +00:00
  • 502a908260 Redundant comments; added range checking to curs_set(). William McBrine 2006-07-23 14:54:17 +00:00
  • 199f4c4ce7 PDC_set_rows(): no longer used. (Use resize_term(), or in some cases PDC_resize_screen().) William McBrine 2006-07-23 13:45:52 +00:00
  • f0989e78be def_prog_mode()/def_shell_mode()/savetty() and reset_prog_mode()/reset_shell_mode()/resetty() have common cores. (The differences in resize handling appeared bogus.) William McBrine 2006-07-23 12:55:23 +00:00
  • 1582cf34db resize_term changed the saved LINES and COLS for c_pr_tty, if and only if it had already been set. IMHO this is a misfeature. William McBrine 2006-07-23 12:52:06 +00:00
  • 17e967ee3b More info in the resize test; also test width change. To Do: Fix the background. William McBrine 2006-07-23 05:00:57 +00:00
  • fda3a98158 Blank out buffer and num before the scanw() test, in case the user just hits enter or etc. William McBrine 2006-07-22 23:41:48 +00:00
  • b584792258 PDC_breakout() is now used only in pdckey.c. William McBrine 2006-07-22 22:49:27 +00:00
  • cf92c52b0b Unused code. William McBrine 2006-07-22 22:33:38 +00:00
  • 7562a49556 More junk. William McBrine 2006-07-21 17:50:27 +00:00
  • 403ecb9d31 Stuff that doesn't need to be in pdcx11.h anymore. William McBrine 2006-07-21 17:43:13 +00:00
  • 82a1145ecd X11 reorg: Combined pdcx11.c and process/x11.c into x11.c; combined process/x11common.c and process/x11curses.c into pdcx11.c. This way, "pdc" is consistently used as a prefix for files with functions in the curses process, while x11.c contains all the code for the X process. To Do: Break up x11.c along other lines? And much more. William McBrine 2006-07-21 15:28:18 +00:00
  • 136029b9c9 Forgot to commit this. William McBrine 2006-07-21 05:07:46 +00:00
  • edc95df10a Oops. William McBrine 2006-07-21 04:09:29 +00:00
  • f1e58de2e1 Added get_line_lock() and release_line_lock(); made dummy_function() static. William McBrine 2006-07-21 04:07:05 +00:00
  • 4f28970294 Continuing the gradual dismantling of the process directory. William McBrine 2006-07-21 03:45:25 +00:00
  • de47d87265 A better place and name for XCurses_display_cursor(); renamed remaining XCurses_* functions. (Now it's clearer what's in which process... although there are still a few to clear up.) William McBrine 2006-07-21 03:23:50 +00:00
  • d7665136bc Eliminated the redundant cursor updates that were added when moving CURSES_REFRESH to PDC_transform_line(). William McBrine 2006-07-21 02:58:23 +00:00
  • f27f87c011 Replaced many "ifdef PDCDEBUG ptr =" sequences with a macro. William McBrine 2006-07-19 06:46:00 +00:00
  • 3cf076176a Comments. William McBrine 2006-07-18 23:11:53 +00:00