~ubuntu-branches/debian/sid/ncurses/sid-200908151543

« back to all changes in this revision

Viewing changes to test/railroad.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-24 15:13:01 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090524151301-uixgxq2zonfov2nr
Tags: 5.7+20090523-1
MergingĀ upstreamĀ versionĀ 5.7+20090523.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
/*
30
30
 * Author: Thomas E. Dickey - 2000
31
31
 *
32
 
 * $Id: railroad.c,v 1.16 2008/02/09 18:08:43 tom Exp $
 
32
 * $Id: railroad.c,v 1.17 2008/12/07 02:07:41 juergen Exp $
33
33
 *
34
34
 * A simple demo of the termcap interface.
35
35
 */
82
82
}
83
83
 
84
84
static void
85
 
ShowCursor(int flag)
 
85
MyShowCursor(int flag)
86
86
{
87
87
    if (startC != 0 && finisC != 0) {
88
88
        tputs(flag ? startC : finisC, 1, outc);
166
166
{
167
167
    Underline(0);
168
168
    StandOut(0);
169
 
    ShowCursor(1);
 
169
    MyShowCursor(1);
170
170
}
171
171
 
172
172
static void
214
214
        startC = tgetstr("ve", &ap);
215
215
        finisC = tgetstr("vi", &ap);
216
216
 
217
 
        ShowCursor(0);
 
217
        MyShowCursor(0);
218
218
 
219
219
        CATCHALL(onsig);
220
220
 
221
221
        while (*args) {
222
222
            ShowSign(*args++);
223
223
        }
224
 
        ShowCursor(1);
 
224
        MyShowCursor(1);
225
225
    }
226
226
}
227
227