Mercurial > emacs
comparison src/term.c @ 621:eca8812e61cd
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Fri, 24 Apr 1992 08:11:54 +0000 |
parents | 31e638e8fe93 |
children | a8d94735277e |
comparison
equal
deleted
inserted
replaced
620:88a29c720fa7 | 621:eca8812e61cd |
---|---|
1 /* terminal control module for terminals described by TERMCAP | 1 /* terminal control module for terminals described by TERMCAP |
2 Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc. | 2 Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GNU Emacs. | 4 This file is part of GNU Emacs. |
5 | 5 |
6 GNU Emacs is free software; you can redistribute it and/or modify | 6 GNU Emacs is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation; either version 1, or (at your option) | 8 the Free Software Foundation; either version 2, or (at your option) |
9 any later version. | 9 any later version. |
10 | 10 |
11 GNU Emacs is distributed in the hope that it will be useful, | 11 GNU Emacs is distributed in the hope that it will be useful, |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
463 | 463 |
464 | 464 |
465 /* Move to absolute position, specified origin 0 */ | 465 /* Move to absolute position, specified origin 0 */ |
466 | 466 |
467 cursor_to (row, col) | 467 cursor_to (row, col) |
468 int row, col; | |
468 { | 469 { |
469 if (! SCREEN_IS_TERMCAP ((updating_screen | 470 if (! SCREEN_IS_TERMCAP ((updating_screen |
470 ? updating_screen | 471 ? updating_screen |
471 : selected_screen)) | 472 : selected_screen)) |
472 && cursor_to_hook) | 473 && cursor_to_hook) |
486 } | 487 } |
487 | 488 |
488 /* Similar but don't take any account of the wasted characters. */ | 489 /* Similar but don't take any account of the wasted characters. */ |
489 | 490 |
490 raw_cursor_to (row, col) | 491 raw_cursor_to (row, col) |
492 int row, col; | |
491 { | 493 { |
492 if (! SCREEN_IS_TERMCAP ((updating_screen ? updating_screen : selected_screen))) | 494 if (! SCREEN_IS_TERMCAP ((updating_screen ? updating_screen : selected_screen))) |
493 { | 495 { |
494 (*raw_cursor_to_hook) (row, col); | 496 (*raw_cursor_to_hook) (row, col); |
495 return; | 497 return; |
1391 baud_rate = 9600; | 1393 baud_rate = 9600; |
1392 } | 1394 } |
1393 | 1395 |
1394 /* VARARGS 1 */ | 1396 /* VARARGS 1 */ |
1395 fatal (str, arg1, arg2) | 1397 fatal (str, arg1, arg2) |
1398 char *str, *arg1, *arg2; | |
1396 { | 1399 { |
1397 fprintf (stderr, "emacs: "); | 1400 fprintf (stderr, "emacs: "); |
1398 fprintf (stderr, str, arg1, arg2); | 1401 fprintf (stderr, str, arg1, arg2); |
1399 fflush (stderr); | 1402 fflush (stderr); |
1400 exit (1); | 1403 exit (1); |