diff options
| author | Roee Shapira <35409124+5c077m4n@users.noreply.github.com> | 2020-11-19 12:15:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-19 11:15:59 +0100 |
| commit | 5ddf95a16c8d1c9632ba6cef56f55fcf8bf9e4ea (patch) | |
| tree | 94a00125fb99f7cf0953e20052eb000647c9f212 /src/os_input_output.rs | |
| parent | fix(ux): disable move focus when in full screen (#49) (diff) | |
| download | sl0ppij-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/os_input_output.rs')
| -rw-r--r-- | src/os_input_output.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/os_input_output.rs b/src/os_input_output.rs index 251b8c5e..ecd18edc 100644 --- a/src/os_input_output.rs +++ b/src/os_input_output.rs @@ -58,18 +58,6 @@ pub fn set_terminal_size_using_fd(fd: RawFd, columns: u16, rows: u16) { unsafe { ioctl(fd, TIOCSWINSZ.into(), &winsize) }; } -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 handle_command_exit(mut child: Child) { let signals = ::signal_hook::iterator::Signals::new(&[::signal_hook::SIGINT]).unwrap(); 'handle_exit: loop { |
