tidied up magic constants
This commit is contained in:
parent
4bd1111115
commit
d981f4a3f4
1 changed files with 4 additions and 2 deletions
|
@ -39,6 +39,8 @@ const DOWN_SEQ: &str = "\x1b[B";
|
||||||
const DEFAULT_TITLE: &str = "Terminal";
|
const DEFAULT_TITLE: &str = "Terminal";
|
||||||
const DEBUG_TERMINAL_WIDTH: f32 = 300.;
|
const DEBUG_TERMINAL_WIDTH: f32 = 300.;
|
||||||
const DEBUG_TERMINAL_HEIGHT: f32 = 200.;
|
const DEBUG_TERMINAL_HEIGHT: f32 = 200.;
|
||||||
|
const DEBUG_CELL_WIDTH: f32 = 5.;
|
||||||
|
const DEBUG_LINE_HEIGHT: f32 = 5.;
|
||||||
|
|
||||||
pub mod color_translation;
|
pub mod color_translation;
|
||||||
pub mod gpui_func_tools;
|
pub mod gpui_func_tools;
|
||||||
|
@ -151,8 +153,8 @@ impl Terminal {
|
||||||
let size_info = SizeInfo::new(
|
let size_info = SizeInfo::new(
|
||||||
DEBUG_TERMINAL_WIDTH,
|
DEBUG_TERMINAL_WIDTH,
|
||||||
DEBUG_TERMINAL_HEIGHT,
|
DEBUG_TERMINAL_HEIGHT,
|
||||||
5.,
|
DEBUG_CELL_WIDTH,
|
||||||
5.,
|
DEBUG_LINE_HEIGHT,
|
||||||
0.,
|
0.,
|
||||||
0.,
|
0.,
|
||||||
false,
|
false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue