pseudoterm 0.1.1

Low-level library for creating PTYs
Documentation
  • Coverage
  • 55.56%
    10 out of 18 items documented1 out of 1 items with examples
  • Size
  • Source code size: 19.37 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jD91mZM2

pseudoterm Crates.io

Low-level library for creating PTYs and getting related properties. Aimed to be cross platform, and so far has Unix and Redox OS support.

Yet another?

I know there are lots of crates for opening PTYs, but I really wanted to make my own.

Key features of this one:

  • Low-level. You get access to the file handles directly.
  • Comes bundled with related features, like setting the terminal to raw mode.
  • Redox OS support from the start

Examples

See the examples/ directory.

Getter/Setter?????

If you've seen the docs, you'll notice there are stuff like TermiosSetter and WinsizeSetter. This is a part of the design that makes Redox OS support special. In redox, when setting the window size you need to do the following:

  • Open a file that controls the window size
  • Get the window size
  • (Close the file?)
  • (Reopen the file?)
  • Set the window size
  • Close the file

What pseudoterm does is let you get/set without opening/closing the file each time.