congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Os.isatty
Code IndexAdd Tabnine to your IDE (free)

How to use
isatty
method
in
libcore.io.Os

Best Java code snippets using libcore.io.Os.isatty (Showing top 20 results out of 315)

origin: robovm/robovm

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: robovm/robovm

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: robovm/robovm

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
origin: MobiVM/robovm

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: ibinti/bugvm

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: com.mobidevelop.robovm/robovm-rt

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: com.bugvm/bugvm-rt

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: com.gluonhq/robovm-rt

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: FlexoVM/flexovm

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: MobiVM/robovm

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: com.gluonhq/robovm-rt

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: com.mobidevelop.robovm/robovm-rt

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: ibinti/bugvm

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: FlexoVM/flexovm

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: com.bugvm/bugvm-rt

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: MobiVM/robovm

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
origin: ibinti/bugvm

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
origin: FlexoVM/flexovm

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
libcore.ioOsisatty

Popular methods of Os

  • accept
  • access
  • bind
  • chmod
  • chown
  • close
  • connect
  • dup
  • dup2
  • environ
  • execv
  • execve
  • execv,
  • execve,
  • fchmod,
  • fchown,
  • fcntlFlock,
  • fcntlLong,
  • fcntlVoid,
  • fdatasync,
  • fstat,
  • fstatvfs

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now