From 6639e6f24fab269f23392b11e566ef0a29ca163b Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Sun, 3 Jul 2016 21:05:28 -0700 Subject: Move ::grid::index to ::index The grid and term modules already rely on the index types, and ansi is about to be updated with strongly typed APIs. Since Cursor, Line, and Column are fundamental to the code in several modules, namespacing them under one of them seems less correct than a module that stands by itself. --- src/term.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/term.rs') diff --git a/src/term.rs b/src/term.rs index 2c30812b..86908d33 100644 --- a/src/term.rs +++ b/src/term.rs @@ -18,7 +18,9 @@ use std::fmt; use ansi::{self, Attr}; use grid::{Grid, ClearRegion}; +use index::{Cursor, Column, Line}; use tty; + use ::Rgb; /// coerce val to be between min and max @@ -122,8 +124,6 @@ pub const DEFAULT_FG: Rgb = Rgb { r: 0xea, g: 0xea, b: 0xea}; pub const DEFAULT_BG: Rgb = Rgb { r: 0, g: 0, b: 0}; pub const TAB_SPACES: usize = 8; -use grid::index::{Cursor, Column, Line}; - pub struct Term { /// The grid grid: Grid, -- cgit