projects
/
apps
/
madmutt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95ef9d1
)
Better curses init.
author
Pierre Habouzit
<madcoder@debian.org>
Sat, 10 Nov 2007 14:27:52 +0000
(15:27 +0100)
committer
Pierre Habouzit
<madcoder@debian.org>
Sat, 10 Nov 2007 14:27:52 +0000
(15:27 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-ui/curs_lib.c
patch
|
blob
|
history
diff --git
a/lib-ui/curs_lib.c
b/lib-ui/curs_lib.c
index
1051759
..
ac049bf
100644
(file)
--- a/
lib-ui/curs_lib.c
+++ b/
lib-ui/curs_lib.c
@@
-309,16
+309,15
@@
void mutt_show_error (void)
void curses_initialize(void)
{
- if (initscr () == NULL) {
- puts _("Error initializing terminal.");
- exit (1);
- }
+ initscr();
ci_start_color();
- keypad(stdscr, true);
- cbreak();
noecho();
- typeahead (-1); /* simulate smooth scrolling */
+ raw();
+ keypad(stdscr, true);
+ typeahead(-1);
meta(stdscr, true);
+ curs_set(0);
+ ESCDELAY = 50;
}
/*