Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use std::io;

use crate::buffer::Cell;

use helix_view::graphics::{CursorKind, Rect};

#[cfg(feature = "crossterm")]
mod crossterm;
#[cfg(feature = "crossterm")]
pub use self::crossterm::CrosstermBackend;

mod test;
pub use self::test::TestBackend;

pub trait Backend {
    fn draw<'a, I>(&mut self, content: I) -> Result<(), io::Error>
    where
        I: Iterator<Item = (u16, u16, &'a Cell)>;
    fn hide_cursor(&mut self) -> Result<(), io::Error>;
    fn show_cursor(&mut self, kind: CursorKind) -> Result<(), io::Error>;
    fn get_cursor(&mut self) -> Result<(u16, u16), io::Error>;
    fn set_cursor(&mut self, x: u16, y: u16) -> Result<(), io::Error>;
    fn clear(&mut self) -> Result<(), io::Error>;
    fn size(&self) -> Result<Rect, io::Error>;
    fn flush(&mut self) -> Result<(), io::Error>;
}
Clone
HTTPS
SSH
Open with VS Code
Lars Hjemli Add function cgit_parse_tag()
a69061f · 2007-01-17 1534Commits
.gitignore
-rw-r--r--
61
COPYING
-rw-r--r--
18009
Makefile
-rw-r--r--
692
README
-rw-r--r--
1494
cache.c
-rw-r--r--
2190
cgit.c
-rw-r--r--
4742
cgit.css
-rw-r--r--
2821
cgit.h
-rw-r--r--
3552
git.h
-rw-r--r--
14752
html.c
-rw-r--r--
2612
parsing.c
-rw-r--r--
4212
shared.c
-rw-r--r--
3596
ui-commit.c
-rw-r--r--
4574
ui-diff.c
-rw-r--r--
2815
ui-log.c
-rw-r--r--
2391
ui-repolist.c
-rw-r--r--
1443
ui-shared.c
-rw-r--r--
3332
ui-summary.c
-rw-r--r--
1653
ui-tree.c
-rw-r--r--
1917
ui-view.c
-rw-r--r--
904
xdiff.h
-rw-r--r--
2696
README.md