Bug the user into making the terminal larger
This commit is contained in:
parent
d2e40f9636
commit
15d0bd5bd6
|
@ -276,10 +276,11 @@ int main(int argc, char *argv[]) {
|
||||||
comm(CSI "4c" DCS "0;0;0;q??~~??~~??iTiTiT" ST, false);
|
comm(CSI "4c" DCS "0;0;0;q??~~??~~??iTiTiT" ST, false);
|
||||||
|
|
||||||
printf("-- Mouse protocol\n");
|
printf("-- Mouse protocol\n");
|
||||||
printf("Maximise the terminal window and click the rightmost column.\n");
|
while (!ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) && ws.ws_col < 223)
|
||||||
// TODO: Bug the user into resizing it wide enough, or at least making
|
comm("Your terminal needs to be at least 223 columns wide.\n"
|
||||||
// the font smaller. Or maybe just warn, and say how many columns there
|
"Press a key once you've made it wide enough.\n", true);
|
||||||
// need to be (255 - 32 + 1 = 224).
|
printf("Click the rightmost column, if it's possible.\n");
|
||||||
|
|
||||||
int mouses[] = { 1005, 1006, 1015, 1016 };
|
int mouses[] = { 1005, 1006, 1015, 1016 };
|
||||||
for (size_t i = 0; i < sizeof mouses / sizeof *mouses; i++) {
|
for (size_t i = 0; i < sizeof mouses / sizeof *mouses; i++) {
|
||||||
if (decrqm_supported)
|
if (decrqm_supported)
|
||||||
|
|
Loading…
Reference in New Issue