No problem.
Here they are.
Version with 6 'windows'
One need to adjust this three integer values to ones needs (it depends on size of terminal).
I think it might be good to add some better configuration options (like for SDL or X11 version) - but I do not know is it needed.
In the attached file is a result of these changes.
Here they are.
Version with 6 'windows'
One need to adjust this three integer values to ones needs (it depends on size of terminal).
I think it might be good to add some better configuration options (like for SDL or X11 version) - but I do not know is it needed.
In the attached file is a result of these changes.
Code:
/* * For a given term number (i) set the upper left corner (x, y) and the * correct dimensions. Terminal layout: 0|2|4 * 1|3|5 */ void get_gcu_term_size(int i, int *rows, int *cols, int *y, int *x) { int rows_1st_ROW=35; int cols_1st_COL=90; int cols_2nd_COL=50; if (use_big_screen && i == 0) { *rows = LINES; *cols = COLS; *y = *x = 0; } else if (use_big_screen) { *rows = *cols = *y = *x = 0; } else if (i == 0) { *rows = rows_1st_ROW; *cols = cols_1st_COL; *y = *x = 0; } else if (i == 1) { *rows = LINES - rows_1st_ROW - 1; *cols = cols_1st_COL; *y = rows_1st_ROW + 1; *x = 0; } else if (i == 2) { *rows = rows_1st_ROW; *cols = cols_2nd_COL; *y = 0; *x = cols_1st_COL + 1; } else if (i == 3) { *rows = LINES - rows_1st_ROW -1; *cols = cols_2nd_COL; *y = rows_1st_ROW + 1; *x = cols_1st_COL + 1; } else if (i == 4) { *rows = rows_1st_ROW; *cols = COLS - cols_1st_COL - cols_2nd_COL - 1; *y = 0; *x = cols_1st_COL + cols_2nd_COL + 2; } else if (i == 5) { *rows = LINES - rows_1st_ROW -1; *cols = COLS - cols_1st_COL - cols_2nd_COL - 1; *y = rows_1st_ROW + 1; *x = cols_1st_COL + cols_2nd_COL + 2; } else { *rows = *cols = *y = *x = 0; } }
Comment