in main(), exit if initscr() fails
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4198 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
1055c7208f
commit
e68748a6ee
|
@ -1,3 +1,7 @@
|
||||||
|
2007-12-10 David Lawrence Ramsey <pooka109@gmail.com>
|
||||||
|
|
||||||
|
* nano.c (main): Exit if initscr() fails.
|
||||||
|
|
||||||
2007-12-09 David Lawrence Ramsey <pooka109@gmail.com>
|
2007-12-09 David Lawrence Ramsey <pooka109@gmail.com>
|
||||||
|
|
||||||
* faq.html: Add minor punctuation and wording fixes, and update
|
* faq.html: Add minor punctuation and wording fixes, and update
|
||||||
|
|
|
@ -2164,8 +2164,9 @@ int main(int argc, char **argv)
|
||||||
/* Back up the old terminal settings so that they can be restored. */
|
/* Back up the old terminal settings so that they can be restored. */
|
||||||
tcgetattr(0, &oldterm);
|
tcgetattr(0, &oldterm);
|
||||||
|
|
||||||
/* Initialize curses mode. */
|
/* Initialize curses mode. If this fails, get out. */
|
||||||
initscr();
|
if (initscr() == NULL)
|
||||||
|
exit(1);
|
||||||
|
|
||||||
/* Set up the terminal state. */
|
/* Set up the terminal state. */
|
||||||
terminal_init();
|
terminal_init();
|
||||||
|
|
Loading…
Reference in New Issue