~ubuntu-branches/ubuntu/natty/ncurses/natty

« back to all changes in this revision

Viewing changes to ncurses/base/lib_initscr.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-17 09:00:42 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517090042-86fgxrr6j5jzagot
Tags: 5.6-0ubuntu1
* New upstream version.
  - Remove patches applied upstream: ncurses.upstream, signed-chars.
  - Update patches: debian-backspace.
* Build-depend on g++-multilib instead of lib{32,64}c*-dev-*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************************
2
 
 * Copyright (c) 1998-2002,2003 Free Software Foundation, Inc.              *
 
2
 * Copyright (c) 1998-2003,2005 Free Software Foundation, Inc.              *
3
3
 *                                                                          *
4
4
 * Permission is hereby granted, free of charge, to any person obtaining a  *
5
5
 * copy of this software and associated documentation files (the            *
45
45
#include <sys/termio.h>         /* needed for ISC */
46
46
#endif
47
47
 
48
 
MODULE_ID("$Id: lib_initscr.c,v 1.33 2003/12/27 19:13:51 tom Exp $")
 
48
MODULE_ID("$Id: lib_initscr.c,v 1.34 2005/10/22 20:30:38 tom Exp $")
49
49
 
50
50
NCURSES_EXPORT(WINDOW *)
51
51
initscr(void)
52
52
{
53
53
    static bool initialized = FALSE;
54
54
    NCURSES_CONST char *name;
55
 
    int value;
56
55
 
57
56
    START_TRACE();
58
57
    T((T_CALLED("initscr()")));
85
84
            exit(EXIT_FAILURE);
86
85
        }
87
86
 
88
 
        /* allow user to set maximum escape delay from the environment */
89
 
        if ((value = _nc_getenv_num("ESCDELAY")) >= 0) {
90
 
            ESCDELAY = value;
91
 
        }
92
 
 
93
87
        /* def_shell_mode - done in newterm/_nc_setupscreen */
94
88
        def_prog_mode();
95
89
    }