This commit is contained in:
Wez Furlong committed 2019-06-08 15:37:55 -07:00
1 parent 5bf2268292
commit 5ccff722ef
6 files changed
+11 -4

No files matched your search

+1
View File
@@ -12,6 +12,7 @@ documentation = "https://docs.rs/portable-pty"
failure = "0.1"
failure_derive = "0.1"
filedescriptor = "0.2"
log = "0.4"
libc = "0.2"
serde_derive = {version="1.0", optional=true}
serde = {version="1.0", optional=true}
+3 -1
View File
@@ -1,5 +1,7 @@
#[cfg(windows)]
use failure::{ensure, Error};
#[cfg(windows)]
use log::error;
use std::ffi::{OsStr, OsString};
#[cfg(windows)]
use std::os::windows::ffi::OsStrExt;
@@ -47,7 +49,7 @@ impl CommandBuilder {
self.envs
.push((key.as_ref().to_owned(), val.as_ref().to_owned()));
#[cfg(windows)]
eprintln!(
error!(
"ignoring env {:?}={:?} for child; FIXME: implement this!",
key.as_ref(),
val.as_ref()
+2 -1
View File
@@ -6,6 +6,7 @@ use crate::win::winpty::safe::{
use crate::{Child, MasterPty, PtySize, PtySystem, SlavePty};
use failure::{bail, Error};
use filedescriptor::FileDescriptor;
use log::debug;
use std::ffi::OsString;
use std::os::windows::ffi::OsStringExt;
use std::path::Path;
@@ -63,7 +64,7 @@ impl SlavePty for WinPtySlavePty {
fn spawn_command(&self, cmd: CommandBuilder) -> Result<Box<Child>, Error> {
let (exe, cmdline) = cmd.cmdline()?;
let cmd_os = OsString::from_wide(&cmdline);
eprintln!(
debug!(
"Running: module: {} {:?}",
Path::new(&OsString::from_wide(&exe)).display(),
cmd_os
+1
View File
@@ -20,6 +20,7 @@ filedescriptor = "0.2"
fnv = "1.0"
image = "0.21"
libc = "0.2"
log = "0.4"
memmem = "0.1"
num = "0.2"
num-traits = "0.2"
+2 -1
View File
@@ -1,4 +1,5 @@
use crate::escape::{Action, DeviceControlMode, Esc, OperatingSystemCommand, CSI};
use log::error;
use num;
use std::cell::RefCell;
use vte;
@@ -93,7 +94,7 @@ impl<'a, F: FnMut(Action)> vte::Perform for Performer<'a, F> {
fn execute(&mut self, byte: u8) {
match num::FromPrimitive::from_u8(byte) {
Some(code) => (self.callback)(Action::Control(code)),
None => eprintln!("impossible C0/C1 control code {:?} was dropped", byte),
None => error!("impossible C0/C1 control code {:?} was dropped", byte),
}
}
+2 -1
View File
@@ -9,6 +9,7 @@ use crate::image::TextureCoordinate;
use crate::surface::{Change, CursorShape, Position};
use crate::terminal::unix::UnixTty;
use failure::Fallible;
use log::error;
use std::io::{Read, Write};
use terminfo::{capability as cap, Capability as TermInfoCapability};
@@ -497,7 +498,7 @@ impl TerminfoRenderer {
}
}
Change::CursorPosition { .. } => {
eprintln!(
error!(
"unhandled CursorPosition in TerminfoRenderer::render_to: {:?}",
change
);