X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=ext2ed%2Fwin.c;h=23d0da13d0bc2a6757d848d84fa0501a6806318f;hb=e8b05eb89c75b50876ffc9e23b17811bc429fe19;hp=758bc6adaa786c7aa590508a7a7228ab9fabf57c;hpb=5e941d2979aeab97929de6c0682425dead3bae74;p=tools%2Fe2fsprogs.git diff --git a/ext2ed/win.c b/ext2ed/win.c index 758bc6a..23d0da1 100644 --- a/ext2ed/win.c +++ b/ext2ed/win.c @@ -17,6 +17,7 @@ Copyright (C) 1995 Gadi Oxman */ +#include "config.h" #include #include #include @@ -30,7 +31,7 @@ Copyright (C) 1995 Gadi Oxman struct struct_pad_info show_pad_info; WINDOW *title_win,*show_win,*command_win,*mt_win1,*mt_win2,*show_pad; -/* to remember configuration after initscr +/* to remember configuration after initscr * and modify it */ struct termios termioInit, termioCurrent; @@ -56,7 +57,7 @@ void setup_show_win(void) show_pad_info.display_cols=COLS; show_pad_info.max_line=show_pad_info.display_lines-1;show_pad_info.max_col=show_pad_info.display_cols-1; show_pad_info.disable_output=0; -} +} void init_windows (void) { @@ -65,7 +66,7 @@ void init_windows (void) termioCurrent = termioInit; termioCurrent.c_lflag |= ECHO; /* set echo on */ tcsetattr(0,TCSANOW,&termioCurrent); - + if (LINES