Files
addr2line
adler
aho_corasick
backtrace
bitflags
cfg_if
ctrlc
dirs
dirs_next
dirs_sys
dirs_sys_next
docopt
endian_type
failure
failure_derive
fd_lock
gimli
lalrpop_util
lazy_static
libc
log
memchr
memoffset
miniz_oxide
nibble_vec
nix
numtoa
object
oursh
proc_macro2
pwd
quote
radix_trie
regex
regex_syntax
retain_mut
rustc_demangle
rustyline
serde
serde_derive
smallvec
strsim
syn
synstructure
termion
unicode_segmentation
unicode_width
unicode_xid
utf8parse
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! Scrolling.

use std::fmt;

/// Scroll up.
#[derive(Copy, Clone, PartialEq, Eq)]
pub struct Up(pub u16);

impl fmt::Display for Up {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, csi!("{}S"), self.0)
    }
}

/// Scroll down.
#[derive(Copy, Clone, PartialEq, Eq)]
pub struct Down(pub u16);

impl fmt::Display for Down {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, csi!("{}T"), self.0)
    }
}