[TD-2260]<fix> set default value for some terminal
This commit is contained in:
parent
0b869643f2
commit
d50b8e88e9
|
@ -409,7 +409,6 @@ void clearScreen(int ecmd_pos, int cursor_pos) {
|
|||
struct winsize w;
|
||||
if (ioctl(0, TIOCGWINSZ, &w) < 0 || w.ws_col == 0 || w.ws_row == 0) {
|
||||
//fprintf(stderr, "No stream device, and use default value(col 120, row 30)\n");
|
||||
//exit(EXIT_FAILURE);
|
||||
w.ws_col = 120;
|
||||
w.ws_row = 30;
|
||||
}
|
||||
|
@ -431,7 +430,6 @@ void showOnScreen(Command *cmd) {
|
|||
struct winsize w;
|
||||
if (ioctl(0, TIOCGWINSZ, &w) < 0 || w.ws_col == 0 || w.ws_row == 0) {
|
||||
//fprintf(stderr, "No stream device\n");
|
||||
//exit(EXIT_FAILURE);
|
||||
w.ws_col = 120;
|
||||
w.ws_row = 30;
|
||||
}
|
||||
|
|
|
@ -415,7 +415,6 @@ void clearScreen(int ecmd_pos, int cursor_pos) {
|
|||
struct winsize w;
|
||||
if (ioctl(0, TIOCGWINSZ, &w) < 0 || w.ws_col == 0 || w.ws_row == 0) {
|
||||
//fprintf(stderr, "No stream device, and use default value(col 120, row 30)\n");
|
||||
//exit(EXIT_FAILURE);
|
||||
w.ws_col = 120;
|
||||
w.ws_row = 30;
|
||||
}
|
||||
|
@ -437,7 +436,6 @@ void showOnScreen(Command *cmd) {
|
|||
struct winsize w;
|
||||
if (ioctl(0, TIOCGWINSZ, &w) < 0 || w.ws_col == 0 || w.ws_row == 0) {
|
||||
//fprintf(stderr, "No stream device\n");
|
||||
//exit(EXIT_FAILURE);
|
||||
w.ws_col = 120;
|
||||
w.ws_row = 30;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue