~ubuntu-branches/ubuntu/maverick/ncurses/maverick

« back to all changes in this revision

Viewing changes to ncurses/tty/lib_mvcur.c

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-06-03 09:06:07 UTC
  • mfrom: (1.1.11 upstream) (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090603090607-ywcyy23hxpnhs0dd
Tags: 5.7+20090523-1ubuntu1
* Merge from debian unstable (LP: #378259), remaining changes:
  - Use -Bsymbolic-functions for linking.
  - Don't install the upstream changelogs in the runtime library packages.
  - Install all patches into /{,usr/}lib32.
  - Use /{,usr/}lib32 instead of /emul/ia32-linux/ in amd64 architecture.

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
 */
154
154
 
155
155
#include <curses.priv.h>
156
 
#include <term.h>
157
156
#include <ctype.h>
158
157
 
159
 
MODULE_ID("$Id: lib_mvcur.c,v 1.118 2009/05/02 20:38:58 tom Exp $")
 
158
#ifndef CUR
 
159
#define CUR SP_TERMTYPE
 
160
#endif
 
161
 
 
162
MODULE_ID("$Id: lib_mvcur.c,v 1.120 2009/05/10 00:52:29 tom Exp $")
160
163
 
161
164
#define WANT_CHAR(sp, y, x) (sp)->_newscr->_line[y].text[x]     /* desired state */
162
165
#define BAUDRATE(sp)    cur_term->_baudrate     /* bits per second */
254
257
normalized_cost(NCURSES_SP_DCLx const char *const cap, int affcnt)
255
258
/* compute the effective character-count for an operation (round up) */
256
259
{
257
 
    int cost = _nc_msec_cost(cap, affcnt);
 
260
    int cost = NCURSES_SP_NAME(_nc_msec_cost) (NCURSES_SP_ARGx cap, affcnt);
258
261
    if (cost != INFINITY)
259
262
        cost = (cost + SP_PARM->_char_padding - 1) / SP_PARM->_char_padding;
260
263
    return cost;
440
443
     * SCREEN's _endwin to TRUE at window initialization time and let this be
441
444
     * called by doupdate's return-from-shellout code.
442
445
     */
443
 
    _nc_mvcur_resume();
 
446
    NCURSES_SP_NAME(_nc_mvcur_resume) (NCURSES_SP_ARG);
444
447
}
445
448
 
446
449
#if NCURSES_SP_FUNCS
920
923
 
921
924
    if (usecost != INFINITY) {
922
925
        TPUTS_TRACE("mvcur");
923
 
        tputs(buffer, 1, _nc_outch);
 
926
        NCURSES_SP_NAME(tputs) (NCURSES_SP_ARGx
 
927
                                buffer, 1, NCURSES_SP_NAME(_nc_outch));
924
928
        SP_PARM->_cursrow = ynew;
925
929
        SP_PARM->_curscol = xnew;
926
930
        return (OK);