1 | /*---------------------------------------------------------------------------* |
1 | /*---------------------------------------------------------------------------* |
2 | * File: screen.C |
2 | * File: screen.C |
3 | *---------------------------------------------------------------------------* |
3 | *---------------------------------------------------------------------------* |
4 | * |
4 | * |
5 | * Copyright (c) 1997-2001 Geoff Wing <gcw@pobox.com> |
5 | * Copyright (c) 1997-2001 Geoff Wing <gcw@pobox.com> |
6 | * Copyright (c) 2003-2006 Marc Lehmann <pcg@goof.com> |
6 | * Copyright (c) 2003-2007 Marc Lehmann <pcg@goof.com> |
7 | * |
7 | * |
8 | * This program is free software; you can redistribute it and/or modify |
8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
10 | * the Free Software Foundation; either version 2 of the License, or |
10 | * the Free Software Foundation; either version 2 of the License, or |
11 | * (at your option) any later version. |
11 | * (at your option) any later version. |
… | |
… | |
596 | /* |
596 | /* |
597 | * Change the rendition style for following text |
597 | * Change the rendition style for following text |
598 | */ |
598 | */ |
599 | void |
599 | void |
600 | rxvt_term::scr_rendition (int set, int style) NOTHROW |
600 | rxvt_term::scr_rendition (int set, int style) NOTHROW |
601 | { |
601 | { |
602 | if (set) |
602 | if (set) |
603 | rstyle |= style; |
603 | rstyle |= style; |
604 | else if (style == ~RS_None) |
604 | else if (style == ~RS_None) |
605 | rstyle = DEFAULT_RSTYLE; |
605 | rstyle = DEFAULT_RSTYLE; |
606 | else |
606 | else |
607 | rstyle &= ~style; |
607 | rstyle &= ~style; |
608 | } |
608 | } |
609 | |
609 | |
610 | /* ------------------------------------------------------------------------- */ |
610 | /* ------------------------------------------------------------------------- */ |
611 | /* |
611 | /* |
612 | * Scroll text between <row1> and <row2> inclusive, by <count> lines |
612 | * Scroll text between <row1> and <row2> inclusive, by <count> lines |
613 | * count positive ==> scroll up |
613 | * count positive ==> scroll up |