aboutsummaryrefslogtreecommitdiffstats
path: root/src/layout.rs
diff options
context:
space:
mode:
authorRoee Shapira <35409124+5c077m4n@users.noreply.github.com>2020-11-19 12:15:59 +0200
committerGitHub <noreply@github.com>2020-11-19 11:15:59 +0100
commit5ddf95a16c8d1c9632ba6cef56f55fcf8bf9e4ea (patch)
tree94a00125fb99f7cf0953e20052eb000647c9f212 /src/layout.rs
parentfix(ux): disable move focus when in full screen (#49) (diff)
downloadsl0ppij-5ddf95a16c8d1c9632ba6cef56f55fcf8bf9e4ea.tar.gz
sl0ppij-5ddf95a16c8d1c9632ba6cef56f55fcf8bf9e4ea.tar.xz
sl0ppij-5ddf95a16c8d1c9632ba6cef56f55fcf8bf9e4ea.zip
fix(compatibility): some fixes for htop (#53)
* Moved all log to file functions to one module. * Moved logging to file function to utils module. * Housekeeping. * Housekeeping. * Started investigation into htop CSIs. * Used better function for scrolling. * Minor cleanup. * Cleanup and start of scroll region rotation. * Implemented scroll region rotation. * Improved performace. * New SCI found. * Typo. * Typo. * Removed logging function. * Added scroll rotation functions. * Typo. * Moved all logging function to one module. * Attempt at making htop work. * Reverted unneeded changes. * Improved log file name creation. * Ran rust fmt. * PR review edits. * PR review edits. * Used mark_for_rerender function. * Removed _ prefix from logging functions.
Diffstat (limited to 'src/layout.rs')
-rw-r--r--src/layout.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/layout.rs b/src/layout.rs
index e80c76b2..f4297bfd 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -1,18 +1,6 @@
use crate::terminal_pane::PositionAndSize;
use serde::{Deserialize, Serialize};
-fn _debug_log_to_file(message: String) {
- use std::fs::OpenOptions;
- use std::io::prelude::*;
- let mut file = OpenOptions::new()
- .append(true)
- .create(true)
- .open("/tmp/mosaic-log.txt")
- .unwrap();
- file.write_all(message.as_bytes()).unwrap();
- file.write_all("\n".as_bytes()).unwrap();
-}
-
fn split_space_to_parts_vertically(
space_to_split: &PositionAndSize,
percentages: Vec<u8>,