forked from MightyPork/crsn
fixes, graphic acceleration commands, upscaling pixels
This commit is contained in:
@@ -9,3 +9,4 @@ edition = "2018"
|
||||
[dependencies]
|
||||
crsn = { path = "../crsn" }
|
||||
libc = "0.2.79"
|
||||
log = "0.4.11"
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
use crsn::asm::data::literal::Value;
|
||||
use crsn::asm::error::CrsnError;
|
||||
use crsn::asm::instr::op::OpKind;
|
||||
@@ -134,6 +137,7 @@ impl StdioOps {
|
||||
|
||||
impl Drop for StdioOps {
|
||||
fn drop(&mut self) {
|
||||
debug!("stdin restore");
|
||||
// Un-break the terminal
|
||||
if let Some(tio) = self.old_tio.take() {
|
||||
let _ = unsafe { libc::tcsetattr(libc::STDIN_FILENO, libc::TCSANOW, &tio) };
|
||||
|
||||
Reference in New Issue
Block a user