diff options
author | Ted Yin <tederminant@gmail.com> | 2017-07-24 20:54:06 -0400 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-07-24 17:54:06 -0700 |
commit | 4c4c2f5f5c81e6efb580e50ea993606160809469 (patch) | |
tree | c7a1abe4b5e926e9dcf25f2c64965343ef738b05 /src/term/mod.rs | |
parent | 49c73f6d55e5a681a0e0f836cd3e9fe6af30788f (diff) | |
download | alacritty-4c4c2f5f5c81e6efb580e50ea993606160809469.tar.gz alacritty-4c4c2f5f5c81e6efb580e50ea993606160809469.zip |
add support for X input method (#691)
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r-- | src/term/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 64541b33..0a51aac3 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -490,7 +490,7 @@ impl IndexMut<CharsetIndex> for Charsets { #[derive(Default, Copy, Clone)] pub struct Cursor { /// The location of this cursor - point: Point, + pub point: Point, /// Template cell when using this cursor template: Cell, @@ -1054,6 +1054,11 @@ impl Term { &self.mode } + #[inline] + pub fn cursor(&self) -> &Cursor { + &self.cursor + } + pub fn swap_alt(&mut self) { if self.alt { let template = self.empty_cell; |