Removed some needless comments.
This commit is contained in:
12
src/main.c
12
src/main.c
@@ -108,6 +108,7 @@ int main() {
|
|||||||
do{
|
do{
|
||||||
clear_screen();
|
clear_screen();
|
||||||
|
|
||||||
|
/* Handle terminal resize. */
|
||||||
if(resize){
|
if(resize){
|
||||||
endwin();
|
endwin();
|
||||||
refresh();
|
refresh();
|
||||||
@@ -184,17 +185,6 @@ void manage_signal(int signal){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void on_resize(int signal){
|
void on_resize(int signal){
|
||||||
/*struct winsize ws;*/
|
|
||||||
|
|
||||||
/* Request the new size of the terminal. */
|
|
||||||
/*ioctl(1, TIOCGWINSZ, &ws);*/
|
|
||||||
|
|
||||||
/* Resize ncurses's stdscr. */
|
|
||||||
/*resizeterm(ws.ws_row, ws.ws_col);*/
|
|
||||||
|
|
||||||
/* Get the new size of the window. */
|
|
||||||
/*getmaxyx(stdscr, h, w);*/
|
|
||||||
|
|
||||||
resize = 1;
|
resize = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user