1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: command.c |
2 | * File: command.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: command.C,v 1.15 2003/12/16 23:04:13 pcg Exp $ |
4 | * $Id: command.C,v 1.16 2003/12/17 09:00:35 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
… | |
… | |
2582 | |
2582 | |
2583 | case CSI_SD: /* 8.3.114: (1) SCROLL DOWN */ |
2583 | case CSI_SD: /* 8.3.114: (1) SCROLL DOWN */ |
2584 | arg[0] = -arg[0]; |
2584 | arg[0] = -arg[0]; |
2585 | /* FALLTHROUGH */ |
2585 | /* FALLTHROUGH */ |
2586 | case CSI_SU: /* 8.3.148: (1) SCROLL UP */ |
2586 | case CSI_SU: /* 8.3.148: (1) SCROLL UP */ |
2587 | rxvt_scroll_text(aR_ R->screen.tscroll, R->screen.bscroll, arg[0], 0); |
2587 | R->scr_scroll_text (R->screen.tscroll, R->screen.bscroll, arg[0], 0); |
2588 | break; |
2588 | break; |
2589 | |
2589 | |
2590 | case CSI_DA: /* 8.3.24: (0) DEVICE ATTRIBUTES */ |
2590 | case CSI_DA: /* 8.3.24: (0) DEVICE ATTRIBUTES */ |
2591 | R->tt_write((const unsigned char *)VT100_ANS, |
2591 | R->tt_write((const unsigned char *)VT100_ANS, |
2592 | (unsigned int)(sizeof(VT100_ANS) - 1)); |
2592 | (unsigned int)(sizeof(VT100_ANS) - 1)); |